IBM BPM, V8.0.1, All platforms > Reference > Commands and scripts > Business Process Choreographer administrative scripts
queryNumberOfFailedMessages.py administrative script
Use the queryNumberOfFailedMessages.py administrative script to determine whether there are any failed messages for BPEL processes or human tasks, and, if there are, to retry processing them.
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 queryNumberOfFailedMessages.py administrative script is in the Business Process Choreographer admin directory.
Syntax
-f queryNumberOfFailedMessages.py [ ([-node nodeName] -server serverName) | (-cluster clusterName) ] [ -bfm | -htm ]
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.
- -bfm | -htm
- These keywords are optional and mutually exclusive. The default, if neither option is specified is to replay failed messages for both BPEL processes and human tasks. If you only want to replay the messages for BPEL processes, specify the -bfm option. If you only want to replay messages for human tasks, specify the -htm option.
Business Process Choreographer administrative scripts
Related tasks:
Querying and replaying failed messages, using administrative scripts