BPMMigrateInstances command
Use the BPMMigrateInstances command to run an instance migration.
This utility migrates process instances in the same way that
the Migrate Inflight Data command does.
Restriction: Orphaned
token policy files cannot be supplied this way. You must use the Migrate
Inflight Data command from the Process Admin Console instead.
The BPMMigrateInstances command is run using the AdminTask object of the wsadmin scripting client.
Prerequisites
The following conditions must be met:
- Run the command in the connected mode, that is, do not use the wsadmin -conntype none option.
- In a network deployment environment, an application cluster member runs the Process Server and Process Center applications. Therefore, you must run this command on the node that contains that application cluster member. Do not run the command from the deployment manager profile.
When you migrate a large number of process instances using
the BPMMigrateInstances command, it is possible
that you could encounter timeout exceptions if the migration time
exceeds 120 seconds. These exceptions are captured by first failure
data capture (FFDC) and logged to the SystemOut.log file. You can
prevent timeout exceptions from occurring by increasing the timeout
value for both the SOAP connector connection and the server transaction
service. To increase the timeout value for the SOAP connector connection,
read the instructions in the topic Connection timeout when running a wsadmin script.
To increase the timeout value for the server transaction service,
complete the following steps:
- In the tree view of the IBM Process Server administrative console, select Servers > All servers.
- In the Middleware Servers pane, click the link on the name of the middleware server. For example, SingleClusterMember1.
- Expand Container services and click the Transaction service link.
- In the Total transaction lifetime timeout field, specify a larger value.
- Click Apply and then click the Save link to save the changes to the master configuration.
Note: If you are using a SOAP connection, the command can
take longer to complete than the specified SOAP timeout value. Although
the command continues to run until it is finished, you might see the
exception java.net.SocketTimeoutException: Read timed out.
To prevent this exception, set a higher value for the com.ibm.SOAP.requestTimeout property
in the profile_root/properties/soap.client.props file.
Location
Start the wsadmin scripting client from the install_root/profiles/node_profile/bin directory.
Syntax
BPMMigrateInstances
-containerAcronym process_application_acronym
-sourceContainerSnapshotName snapshot_name | -sourceContainerSnapshotAcronym snapshot_acronym
-targetContainerSnapshotName snapshot_name | -targetContainerSnapshotAcronym snapshot_acronym
Parameters
- -containerAcronym process_application_acronym
- A required parameter that identifies the process application that
is to be migrated. For example, the BillingDispute process application
might have an acronym of BILLDISP.Tip: If you do not know the acronym for a required parameter, use the BPMShowProcessApplication command to list the details of a process application, including acronyms.
- -sourceContainerSnapshotName snapshot_name
- This parameter provides the snapshot name from which instances will be migrated (the old version). You must specify either this parameter or -sourceContainerSnapshotAcronym.
- -sourceContainerSnapshotAcronym snapshot_acronym
- This parameter identifies the snapshot from which instances will be migrated (the old version). You must specify either this parameter or -sourceContainerSnapshotName.
- -targetContainerSnapshotName snapshot_name
- This parameter provides the snapshot name to which instances will be migrated (the new version). You must specify either this parameter or -targetContainerSnapshotAcronym.
- -targetContainerSnapshotAcronym snapshot_acronym
- This parameter identifies the snapshot name to which instances will be migrated (the new version). You must specify either this parameter or -targetContainerSnapshotName.
Example
The following example illustrates how to establish a SOAP connection to the Process Center server and then migrate process instances.
Important: In a network deployment environment, use the port
configured for the application cluster member that runs the Process
Server or Process Center applications. To determine the correct port
number, see the WebSphere administrative console Ports collection
page (click and find the value for
SOAP_CONNECTOR_ADDRESS).
wsadmin -conntype SOAP -port 8880 -host ProcessCenterServer01.mycompany.com -user admin ID -password administrator password -lang jython wsadmin>AdminTask.BPMMigrateInstances(’[-containerAcronym HSS -sourceContainerSnapshotName "v1" -targetContainerSnapshotName "v2"]’)
The following example uses -sourceContainerSnapshotAcronym and -targetContainerSnapshotAcronym.
wsadmin -conntype SOAP -port 8880 -host ProcessCenterServer01.mycompany.com -user admin ID -password administrator password -lang jython wsadmin>AdminTask.BPMMigrateInstances(’[-containerAcronym HSS -sourceContainerSnapshotAcronym "V1" -targetContainerSnapshotAcronym "V2"]’)
The following example uses -sourceContainerSnapshotName and -targetContainerSnapshotAcronym.
wsadmin -conntype SOAP -port 8880 -host ProcessCenterServer01.mycompany.com -user admin ID -password administrator password -lang jython wsadmin>AdminTask.BPMMigrateInstances(’[-containerAcronym HSS -sourceContainerSnapshotName "v1" -targetContainerSnapshotAcronym "V2"]’)