cleanupUnusedStaffQueryInstances.py administrative script
Use the cleanupUnusedStaffQueryInstances.py administrative
script to remove from the database unused results from people queries.
Business Process Choreographer maintains lists of user names in the runtime database for people queries that have been evaluated. Although the BPEL process instances and human tasks that used the people queries have finished, the lists of user names are maintained in the database until the corresponding process application is undeployed.
If the size of the database is affecting performance, you can remove the unused lists of people that are cached in the database tables.
Prerequisites
The following conditions must be met:- Run the script in the connected mode, that is,
do not use the wsadmin
-conntype noneoption. - At least one cluster member must be running.
- Include the wsadmin
-userand-passwordoptions to specify a user ID that has operator authority. - If you are not working with the default
profile, use the wsadmin
-profileName profileoption to specify the profile.
Location
The cleanupUnusedStaffQueryInstances.py administrative
script is in the Business Process Choreographer admin directory.
install_root\ProcessChoreographer\admin

install_root/ProcessChoreographer/adminSyntax

install_root/bin/wsadmin.sh
install_root\bin\wsadmin
-f cleanupUnusedStaffQueryInstances.py
-cluster cluster_name
[-cleanupSharedWorkItems]
Parameters
- -f
- This parameter specifies the script file to run.
- -cluster clusterName
- The name of the cluster where Business Process Choreographer is configured. In a multicluster setup, you must specify the application cluster because that is where Business Process Choreographer is configured.
- -cleanupSharedWorkItems
- Specify this optional parameter if you also want the script to delete unused shared work items.
- -server serverName
- The name of the server where Business Process Choreographer is configured. Required if the cluster name is not specified.
If you notice any performance issues when you use the cleanupUnusedStaffQueryInstances.py script, see Using cleanupUnusedStaffQueryInstances.py results in delayed deletion of unused query results.
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15