[Contents] [Prev] [Next] [Index] [Report an Error]


Work Item Life Cycle

Internally, every component can be in one of four states: nonstarted, processing, complete, and cancelled. Only the complete state is visible outside a component.

A component completes its task when it terminates the task in a normal condition; the meaning of normal depends on the component. A terminated task could have succeeded in performing its job or not, but in any case the component can be cancelled. A workflow cannot be cancelled after it has completed the task, because it ceases to exist when it communicates its completion to the workflow engine. Figure 7 summarizes the mechanism represented as a state machine in Unified Modeling Language (UML) notation.


Figure 7: Work Item Life Cycle Represented as a State Machine in UML Notation
 

When a component cancels, it has to undo anything that may affect the external world, such as directory operations or e-mails. Cancellation ensures that the whole workflow will be cancelled and that all work items are cancelled in the reverse order of their execution.


[Contents] [Prev] [Next] [Index] [Report an Error]