Use this command to delete business process definition (BPD) instance data for a process application snapshot on IBM® Process Server.
Using this command deletes the BPD instance and its associated tasks for the instances that are specified by the command parameters. It also logs data to a standard systemout.log file to track which process applications were selected for deleting instance data.
To run this command, you must be in the tw_admins group. Also, you can run this command only in the connected mode. 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.
You should check the SystemOut.log file for exceptions if the cleanup service adjusted your transactionSlice. Adjusting the number of instances to be deleted in a transaction can improve the cleanup operation time.
The following examples show how to use the BPMProcessInstancesCleanup command.
Jython example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin -lang jython
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym PA435 -containerSnapshotAcronym V1 -instanceStatus FAILED -outputFile C:\US58626\log1.txt]')
Jacl example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin
$AdminTask BPMProcessInstancesCleanup {-containerAcronym PA435 -containerSnapshotAcronym V1 -instanceStatus FAILED -outputFile C:\US58626\log1.txt}
Jython example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin -lang jython
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -instanceID [4 5 1001 1002]]')
Jacl example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin
$AdminTask BPMProcessInstancesCleanup {-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus FAILED -instanceID 1;2;1000;1003}
Jython example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin -lang jython
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedAfterLocal 2012-01-01T00:00:00 -endedBeforeLocal 2012-02-31T21:37:06]')
Jacl example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin
$AdminTask BPMProcessInstancesCleanup {-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedAfterLocal 2012-01-01T00:00:00 -endedBeforeLocal 2012-02-31T21:37:06}
Jython example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin -lang jython
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedBeforeLocal 2012-01-02T21:37:06]')
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedBeforeLocal 2012-05-02]')
Jacl example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin
$AdminTask BPMProcessInstancesCleanup {-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedBeforeLocal 2012-01-02T21:37:06}
$AdminTask BPMProcessInstancesCleanup {-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedBeforeLocal 2012-05-02}
Jython example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin -lang jython
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedAfterLocal 2012-05-31T21:38:00]')
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedAfterLocal 2012-07-31]')
Jacl example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin
$AdminTask BPMProcessInstancesCleanup {-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedAfterLocal 2012-05-31T21:38:00}
$AdminTask BPMProcessInstancesCleanup {-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedAfterLocal 2012-07-31}
Jython example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin -lang jython
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedAfterLocal 2012-01-01T00:00:00 -endedBeforeLocal 2012-02-31T21:37:06 -instanceID [53 54 55]]')
Jacl example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin
$AdminTask BPMProcessInstancesCleanup {-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedAfterLocal 2012-01-01T00:00:00 -endedBeforeLocal 2012-02-31T21:37:06 -instanceID 53;54;55}
Jython example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin -lang jython
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedAfterLocal 2012-05-20T00:00:00 -instanceID [53 54 55 56 57 58]]')
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedBeforeLocal 2012-05-31T21:37:06 -instanceID [53 54 55 56 57 58]]')
Jacl example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin
$AdminTask BPMProcessInstancesCleanup {-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedAfterLocal 2012-05-20T00:00:00 -instanceID 53;54;55;56}
$AdminTask BPMProcessInstancesCleanup {-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -endedBeforeLocal 2012-05-31T21:37:06 -instanceID 53;54;55;56}
Jython example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin -lang jython
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -maximumDuration 60]')
Jacl example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin
$AdminTask BPMProcessInstancesCleanup {-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -maximumDuration 60}
Jython example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin -lang jython
AdminTask.BPMProcessInstancesCleanup('[-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -transactionSlice 20]')
Jacl example
wsadmin -conntype SOAP -port 8880 -host ProcessServer01.mycompany.com -user admin -password admin
$AdminTask BPMProcessInstancesCleanup {-containerAcronym BILLDISP -containerSnapshotAcronym SS2.0.1 -instanceStatus ALL -transactionSlice 20}