Try OpenEdge Now
skip to main content
BP Server Developer's Guide
Process instance migration : Migration run : Migration commands
 

Migration commands

You can use the following commands to perform migration and undomigration operations. The specified user name and password should be of a valid BP Server account.
*instancemigration.cmd -u <user_name> -p <password> -mapid <id> -filterid <id>
*instancemigration.cmd -u <user_name> -p <password> -mapid <id>
*undomigration.cmd -u <user_name> -p <password> -migid <migration_id>
*undomigration.cmd -u <user_name> -p <password> -migid <migration_id> [-pid <source_process_instance_id>]
Note that whenever a set of process instances are migrated to another process template, a new set of process instances are created based on the original process instance data and migration map information. As a part of migration, the original set of process instances are suspended.
When you perform undomigration, the original process instance, which was suspended as a part of migration, is resumed and the newly created process instance is deleted. Therefore, for ‘undomigration,’ it is important that original process instances in the suspended state and the Migration Map used in the migration activity exist in the system. If any one of these two objects is deleted or removed, then ‘undomigration’ fails.