This topic applies only to the IBM Business Automation Workflow Advanced
configuration.

deleteInvalidTaskTemplate.py administrative script

Use the deleteInvalidTaskTemplate.py administrative script to delete, from the database, human task templates that are no longer valid.

The deleteInvalidTaskTemplate.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 was 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.

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 deleteInvalidTaskTemplate.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

For Linux operating systemFor UNIX operating systeminstall_root/bin/wsadmin.sh 
For Windows operating systeminstall_root\bin\wsadmin

-f deleteInvalidTaskTemplate.py
     -cluster cluster_name
     -templateName templateName
     -validFromUTC timestamp
     -nameSpace nameSpace

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
The name of the template to be deleted.
-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
-nameSpace nameSpace
The target namespace of the task template.