Use the BPMCheckOrphanTokens command to detect the possibility of orphaned tokens before installing a new snapshot and identify whether to delete or move each token.
In a network deployment environment, you must run this command on the node containing the application cluster member that handles Process Server applications. Do not run this command from the deployment manager profile.
In a network deployment environment, you must run this command on the node containing the application cluster member that handles Process Server applications. Do not run this command from the deployment manager profile.
Start the wsadmin scripting client from the install_root/profiles/deployment_manager_profile/bin directory.
BPMCheckOrphanTokens
-processAppAcronym process_application_acronym
-sourceSnapshotName snapshot_name | -sourceSnapshotAcronym snapshot_acronym
-targetSnapshotName snapshot_name | -targetSnapshotAcronym snapshot_acronym
-outputFile file_path
[-overwrite]
The following example illustrates how to establish a SOAP connection to the Process Center server and then generate an orphaned token policy file for a process application with acronym OTA.
wsadmin -conntype SOAP -port 8880 -host ProcessCenterServer01.mycompany.com -user admin ID -password administrator password -lang jython wsadmin>AdminTask.BPMCheckOrphanTokens('[-processAppAcronym OTA -sourceSnapshotName "Version A" -targetSnapshotName "Version B" -outputFile C:\TokenPolicyFile_OTA.xml]')
wsadmin -conntype SOAP -port 8880 -host ProcessCenterServer01.mycompany.com -user admin ID -password administrator password -lang jython wsadmin>AdminTask.BPMCheckOrphanTokens('[-processAppAcronym OTA -sourceSnapshotAcronym "Version A" -targetSnapshotAcronym "Version B" -outputFile C:\TokenPolicyFile_OTA.xml]')
wsadmin -conntype SOAP -port 8880 -host ProcessCenterServer01.mycompany.com -user admin ID -password administrator password -lang jython wsadmin>AdminTask.BPMCheckOrphanTokens('[-processAppAcronym OTA -sourceSnapshotAcronym "Version A" -targetSnapshotName "Version B" -outputFile C:\TokenPolicyFile_OTA.xml]')