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


Running the script

The configuration script is run using the wsadmin command.

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]