IBM BPM, V8.0.1, All platforms > Administer the IT infrastructure > Administer Business Process Choreographer > Use scripts to administer Business Process Choreographer
Archiving completed BPEL process and task instances
The archive.py administrative script moves completed top-level BPEL process instances and human task instances, including their associated data, from a Business Process Choreographer database to an archive database.
Location
The archive.py script is located in the Business Process Choreographer admin directory:
smpe_root/ProcessChoreographer/admin![]()
INSTALL_ROOT/ProcessChoreographer/admin
INSTALL_ROOT\ProcessChoreographer\admin
Running the script
The configuration script is run using the wsadmin command.
- The script must be run in connected mode to your Business Process Choreographer configuration. The source and destination servers (or clusters) and the dmgr must be running.
- If WebSphere administrative security is enabled, and your user ID does not have WebSphere system administrator authority, include the wsadmin -user and -password options to specify a user ID that has WebSphere system administrator authority.
If you are not working with the default profile, use the wsadmin -profileName profile option to specify the profile.
- If the script is already running, further invocations will be serialized.
INSTALL_ROOT/bin/wsadmin.sh –f archive.py parameters
INSTALL_ROOT/bin/wsadmin.sh –f archive.py parameters
Enter the following command:
INSTALL_ROOT\bin\wsadmin –f archive.py parameters
Parameters
You can supply the following parameters:((-fromNode fromNodeName -fromServer fromServerName) | (-fromCluster fromClusterName)) ((-toNode toNodeName -toServer toServerName) | (-toCluster toClusterName)) (-tasks | -processes) (-all | [-finished] | [-terminated] | [-failed] | [-expired]) [(-templateName templateName [-nameSpace namespace] [ -validFromUTC timestamp ])] [-kind ( todo | invocation | collaboration ) ] [-completedAfterUTC timestamp | -completedAfterLocal timestamp ] [-completedBeforeUTC timestamp | -completedBeforeLocal timestamp ] [-startedBy userId | -createdBy userId] [-slice numberOfEntities] [-limit numberOfEntities]