Deleting completed task instances
deleteCompletedTaskInstances.py administrative
script to selectively delete from the Business Process Choreographer
database or Business Process Archive database any top-level task instances
that have reached an end state of finished, terminated, expired, or
failed.
Before you begin
- Run the script in connected mode,
that is, do not use the wsadmin
-conntype noneoption. - At least one cluster member must be running.
- Include the wsadmin
-userand-passwordoptions to specify a user ID that has operator authority. - If you are not working with the default
profile, use the wsadmin
-profileName profileoption to specify the profile.
About this task
A top-level task instance is considered completed if it is in one of the following end states: finished, terminated, expired, or failed. You specify criteria to selectively delete top-level task instances and all their associated data, such as instance custom properties, escalation instances, subtask instances, and follow-on task instances, from the database.
Sometimes follow-on task instances form a chain of follow-on tasks; where all but the last task instance are in the forwarded state and the last task instance in the chain is in some other state. In this case, a top-level task instance that is in the forwarded state is considered to be completed if the last task instance in the chain is in one of the following end states: finished, terminated, expired, or failed.
Normally,
an inline task instance is not considered to be a top-level task instance,
and cannot be deleted using the deleteCompletedTaskInstances.py script
because the inline task instance belongs to a BPEL process, which
means you must use deleteCompletedProcessInstances.py to
delete the completed process instance that the inline task belongs
to. However, any inline invocation task instance that was created
using the Human Task Manager API or the Service Component Architecture
(SCA) API is treated as a top-level task instance, and can be deleted
using the deleteCompletedTaskInstances.py script.

Enter the following
command:
Enter the following command:
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15