IBM BPM, V8.0.1, All platforms > Get started with IBM BPM > Key concepts > BPEL processes and human tasks > Human tasks overview > Lifecycle of human tasks

State transition diagrams for to-do tasks

To-do tasks are created automatically by a client application or calling component. They support people when they perform work as part of a BPEL process (inline tasks), or implement a web service that is publicly available (stand-alone task). During the lifecycle of a to-do task, certain interactions are possible only in certain task states, and these interactions, in turn, influence the state of the task.

The state transitions that occur during the lifecycle of the task also depend on whether the task has single ownership or parallel ownership.


To-do tasks with single ownership

The following diagram shows the state transitions that can occur during the lifecycle of to-do tasks that have a single owner. For stand-alone to-do tasks, it assumes that the autonomy attribute of the task is set to peer.

After the task is created, it is put into the inactive state. In this state you can update task properties or set custom properties, for example, to change the duration until the task is due, expires, or is deleted. To work on a to-do task, it must be started.

After the task is started, it is put into the ready state. In this state the task waits for one of the potential owners to claim it and perform the work associated with this task. In this state, the following exceptional events can occur:

In the normal task flow, one of the potential owners claims the task, and becomes the owner. The task is put into the claimed state and the owner and the editors can work on it. When tasks are in the claimed state, task owners can take the following actions:

In the claimed state, the following exceptional events can occur:

When the work is finished on a task, the owner completes the task. The task is then put into the finished state if it completes successfully, or the failed state if an error occurs.

The failed, terminated, finished, and expired states are end states in which work cannot be performed. If the task template specifies automatic deletion, the task is either deleted immediately, or after the deletion timer expires. Without automatic deletion, the task remains in its end state until it is explicitly deleted. When the parent task is deleted, its subtasks and follow-on tasks are also deleted.

The forwarded state indicates that work is still required on the follow-on task. Automatic deletion of the parent task applies as soon as the follow-on task reaches an end state. Without automatic deletion, both the parent and the follow-on task remain in their states until the parent task is explicitly deleted. When the parent task is deleted, the follow-on task is also deleted.

Some additional rules apply to inline to-do tasks. Inline tasks are an integral part of the BPEL process and thus their lifecycle is controlled by the process lifecycle:


To-do tasks with parallel ownership

The following diagram shows the state transitions that can occur during the lifecycle of to-do tasks with parallel ownership.

The parent task cannot be claimed or manually completed. The parent task goes into the running state and stays there until its completion condition becomes true, or expiration is reached.

Lifecycle of human tasks


Related concepts:
To-do tasks and collaboration tasks with parallel ownership
Changes to the expiration, deletion, and due times for tasks at run time


Related information:
Lifecycle of stand-alone human tasks that are invoked by a BPEL process