BPMExtractMigrationPolicy command
When you are installing a snapshot on an offline Process Server, use the BPMExtractMigrationPolicy command in connected mode from a Workflow Center server to extract the information used to migrate instances from other snapshots to the newly installed snapshot.
The BPMExtractMigrationPolicy command is run using the AdminTask object of the wsadmin scripting client.
Prerequisites
- Run the command in the connected mode; that is,
do not use the wsadmin
-conntype noneoption. In a network deployment environment, you must run this command on the node containing the application cluster member that handles Workflow Server applications. Do not run this command from the deployment manager profile.
- 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 profile_root/bin directory.
Syntax
BPMExtractMigrationPolicy
-containerAcronym process_application_acronym
-containerSourceSnapshotAcronym snapshot_acronym
-containerTargetSnapshotAcronym snapthot_acronym
-outputFile output_file_path
Parameters
- -containerAcronym String
- A required parameter that identifies the process application or toolkit using its acronym. For example, the BillingDispute process application might have an acronym of BILLDISP.
- -containerSourceSnapshotAcronym String
- A required parameter that identifies the snapshot that contains the instances that you want to migrate.
- -containerTargetSnapshotAcronym String
- A required parameter that identifies the snapshot that you want to move the instances to.
- -outputFile String
- A required parameter that identifies the absolute path and file name of the file that contains the information used to migrate instances from the source snapshot to the target snapshot. The file name must be unique and have the .xml extension.
Example
The following example illustrates how to extract the migration policy information for the BillingDispute process application.
Important: In a network deployment environment,
use the port configured for the application cluster member that runs
the Workflow Center or Workflow Server 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 -password admin -lang jython
wsadmin>AdminTask.BPMExtractMigrationPolicy('[-containerAcronym BILLDISP -containerSourceSnapshotAcronym SS2.0.1 -containerTargetSnapshotAcronym SS2.0.2 -outputFile C:\myProcessApps\SS2.0.1_to_SS2.0.2.xml]')