IBM BPM, V8.0.1, All platforms > Reference > Commands and scripts > Business Process Choreographer administrative scripts
refreshStaffQuery.py administrative script
Use the refreshStaffQuery.py administrative script to refresh people queries, because the query results are static.
Prerequisites
The following conditions must be met:
- Run the script in the connected mode, that is, the application server must be running.
- If Business Process Choreographer is configured on a cluster, then at least one cluster member must be running.
- If WebSphere administrative security is enabled, and your user ID does not have operator authority, 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.
Location
The refreshStaffQuery.py administrative script is in the Business Process Choreographer admin directory..
Syntax
-f refreshStaffQuery.py [ ([-node nodeName] -server serverName) | (-cluster clusterName) ] [-processTemplate templateName | (-taskTemplate templateName [-nameSpace nameSpace]) | -userlist username{, username}...]
Parameters
- -node nodeName
- The name of the node where Business Process Choreographer is configured. This is optional when specifying the server name. The default is the local node.
- -server serverName
- The name of the server where Business Process Choreographer is configured. This is required if a cluster is not specified.
- -cluster clusterName
- The name of the cluster where Business Process Choreographer is configured. This is required if Business Process Choreographer is configured on a cluster.
- -processTemplate templateName
- The name of the process template. People assignments that belong to this process template are refreshed.
- -taskTemplate templateName
- The name of the task template. People assignments that belong to this task template are refreshed. The refresh is not performed for the default user, but for the staff queries that model task roles.
If the refresh fails, then the queries for the fallback user are not refreshed, for example, for the process administrators.
- -nameSpace nameSpace
- The target namespace of the task template.
- -userlist userName
- A comma-separated list of user names. People assignments that contain the specified names are refreshed. The user list can be surrounded by quotation marks. If the quotation marks are omitted the user list must not contain blanks between the user names.
Business Process Choreographer administrative scripts
Related tasks:
Refreshing people query results, using administrative scripts