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

deleteInvalidProcessTemplate.py script

Use the deleteInvalidProcessTemplate.py administrative script to delete, from the database, process templates and task templates that are no longer valid.

The deleteInvalidProcessTemplate.py script removes from the database those templates, and all objects that belong to them, that are not contained in any corresponding valid application in the WebSphere® configuration repository. This situation can occur if deploying an application was canceled or the application not stored in the configuration repository by the user. These templates usually have no impact. They are not shown in Business Process Choreographer Explorer.

You cannot use this script to remove templates of valid applications from the database. This condition is checked and a ConfigurationError exception is thrown if the corresponding application is valid.

The deleteInvalidProcessTemplate.py administrative script is run using the wsadmin scripting client.

Prerequisites

The following conditions must be met:
  • Run the script in the connected mode, that is, do not use the wsadmin -conntype none option.
  • You must have either operator or deployer authority.
  • At least one cluster member must be running.
  • If you are not working with the default profile, use the wsadmin -profileName profile option to specify the profile.

Location

The deleteInvalidProcessTemplate.py administrative script is in the Business Process Choreographer admin directory.
For Windows operating systeminstall_root\ProcessChoreographer\admin
For Linux operating systemFor UNIX operating systeminstall_root/ProcessChoreographer/admin

Syntax

-f deleteInvalidProcessTemplate.py
         -cluster cluster_name
         -templateName templateName
         -validFromUTC timestamp

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.
-templateName templateName
Optionally, specifies the name of the task template whose instances will be deleted. If you specify this option, you must also specify the nameSpace parameter. If there are multiple task templates with the same name but with different validFromUTC dates the instances for all task templates with that name are deleted unless you use the validFromUTC parameter to specify a particular template.
-validFromUTC timestamp
The date and time from which the template is valid in Coordinated Universal Time (UTC). The string must have the following format: yyyy-MM-ddThh:mm:ss (year, month, day, T, hours, minutes, seconds). For example, 2005-01-31T13:40:50