Log in to the Target Company: Ensure you're logged into the company where you wish to migrate the process. This step helps in acquiring the authentication token, verifying whether the user has the requisite permissions for creating or modifying components.
For example: The user want to migrate the some process from a company abc.senpiper.com
xyz.senpiper.com
Source company will be xyz.senpiper.com and Target company will be abc.senpiper.com
Group Creation: If a group for the process to be migrated isn't already present in target company, create one.
Fetch the auth token for the source company: This is the company from which the process will be migrated.
Get the Form details: get the Group ID and form ID of the form to be migrated.
Initiate the GET API Call: To fetch all dependencies of the chosen form, use the following endpoint:
Endpoint:Source company URL/api/core/process/migration/metadata
Review the Response: The API response will detail all the dependencies linked to the selected form. It will provide a clear overview of components such as linked entity migrations (e.g., master schemas, HTML templates), workflows, and alarms.
Note: The provided example showcases the response structure with elements like sourceDetails for authentication and company information, entityMigrationDtos for details on form migrations and their linked entities, workflowMigrationDto for workflow details, and alarmMigrationDtos for alarm details.
The user has to mention the migration mode (CREATE/UPDATE/USE EXISTING) against each entity and migrate the data using POST API.
Endpoint:Source company URL/api/core/process/migration