IBM BPM, V8.0.1, All platforms > Reference > Commands and scripts > Business Process Choreographer administrative scripts
migrateProcessInstances.py administrative script
Use the migrateProcessInstances.py administrative script to migrate running instances.
Use the migrateProcessInstances.py script to migrate instances of a specific process template version to the latest version, or a specified version. Instances that are in an end state (finished, terminated, compensated, or failed) are not migrated. Only instances of the specified template with the same version as the specified "valid from" value are migrated. If you prefer to write a script to migrate instances, an MBean interface is available.
Prerequisites
The following conditions must be met:
- Run the script in the connected mode, that is, the application server must be running.
- If Business Process Choreographer is configured on a cluster, then at least one cluster member must be running.
- If WebSphere administrative security is enabled, and your user ID does not have administrator authority, include the wsadmin -user and -password options to specify a user ID that has administrator authority.
If you are not working with the default profile, use the wsadmin -profileName profile option to specify the profile.
Location
The migrateProcessInstances.py administrative script is in the Business Process Choreographer admin directory.
Syntax
-f migrateProcessInstances.py [([-node node_name] -server server_name ) | ( -cluster cluster_name )] ( -templateName template_name) (-sourceValidFromUTC timestamp ) [(-targetValidFromUTC timestamp )] [(-slice slice_size
Parameters
- -node nodeName
- The name of the node where Business Process Choreographer is configured. This is optional when specifying the server name. The default is the local node.
- -server serverName
- The name of the server where Business Process Choreographer is configured. This is required if a cluster is not specified.
- -cluster clusterName
- The name of the cluster where Business Process Choreographer is configured. This is required if Business Process Choreographer is configured on a cluster.
- -templateName template_name
- The name of the process template to be migrated.
- -sourceValidFromUTC timestamp
- The timestamp specifies which version of the named template will have its instances migrated.
The timestamp string specifies the date from which the template is valid, in Coordinated Universal Time (UTC), and must have the following format: 'yyyy-mm-ddThh:mm:ss' (year, month, day, T, hours, minutes, seconds).
For example, 2009-01-31T13:40:50. In the administrative console this date is displayed in local time of the server, so make sure that you take the server time zone into account.
- -targetValidFromUTC timestamp
- This optionally specifies which version of the named process template the instances will be migrated to. If this parameter is not specified, the latest available version of the template will be used. The timestamp string has the same format as for the sourceValidFromUTC parameter.
- -slice slice_size
- This parameter is optional. The value slice_size specifies how many process instances are migrated in one transaction. The default value is 10.
Business Process Choreographer administrative scripts
Related tasks:
Migrating BPEL process instances in bulk