Terminating a task instance

Why and when to perform this task

Sometimes it is necessary for someone with administrator rights to terminate a task instance that is known to be in an unrecoverable state. For example, when an application is invoked and fails and does not return to a dormant state.

It is recommended that you terminate a task instance only in exceptional situations. The task instance is terminated immediately.

Steps for this task

  1. Retrieve the task instance to be terminated.
    Task taskInstance = task.getTask(tkiid);
  2. Terminate the task instance.
    TKIID tkiid = taskInstance.getID();
    task.terminate(tkiid);

    The task instance is terminated immediately without waiting for any outstanding tasks.


Terms of use | | Broken links

Last updated: Tue Dec 06 04:14:42 2005

(c) Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)