This topic applies only to the IBM Business Process Manager Advanced configuration.

Removing unused people query results, using administrative scripts

Use the cleanupUnusedStaffQueryInstances.py administrative script to remove unused people query results from the database.

Before you begin

The following conditions must be met:
  • Run the script in the connected mode, that is, do not use the wsadmin -conntype none option.
  • At least one cluster member must be running.
  • Include the wsadmin -user and -password options to specify a user ID that has operator authority.
  • If you are not working with the default profile, use the wsadmin -profileName profile option to specify the profile.

About this task

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.

Procedure

  1. Change to the Business Process Choreographer subdirectory where the administrative script is located.
    For Linux operating systemFor UNIX operating systemEnter the following command:
    cd install_root/ProcessChoreographer/admin
    For Windows operating systemEnter the following command:
    cd install_root\ProcessChoreographer\admin
  2. Remove the unused lists of people.

    For Linux operating systemFor UNIX operating systemEnter the following command:

    install_root/bin/wsadmin.sh -f cleanupUnusedStaffQueryInstances.py 
      -cluster cluster_name 
        [-cleanupSharedWorkItems]

    For Windows operating systemEnter the following command:

    install_root\bin\wsadmin -f cleanupUnusedStaffQueryInstances.py 
      -cluster cluster_name 
        [-cleanupSharedWorkItems]
    Where:
    -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.

Results

The number of entries deleted from the database is displayed.