20.1.6 States and Transitions
Learn about states and transitions for workflows and for workflow activities.
- Workflow States and Transitions
 Learn about available workflow states and potential transitions.
- Activity States and Transitions
 Learn about available activity states and potential transitions.
Parent topic: About Workflows
20.1.6.1 Workflow States and Transitions
Learn about available workflow states and potential transitions.
Workflow States
- Active
- 
                              A workflow that is currently running. 
- Suspended
- 
                              A workflow that is currently suspended at a particular activity. A suspended workflow can be resumed again by the Workflow Administrator. 
- Completed
- 
                              A workflow that has reached an end activity and completed successfully. 
- Terminated
- 
                              A workflow that has been stopped by the Workflow Owner or Workflow Administrator or a workflow that has reached an end activity with the state attribute set to terminated. 
- Faulted
- 
                              A workflow that produced an error at one of its activities. The Workflow Administrator can retry or stop a faulted workflow. 
Workflow State Transitions
A workflow transition describes a workflow moving from one state to another. Workflow state transitions happen either by the workflow engine itself, by appropriate APIs, or as a result of a user action. For example, a workflow may transition from Active to Completed after a user approves a task.
| Initial State | Category | Possible Transitions | 
|---|---|---|
| Active | Normal | 
 | 
| Completed | Normal | None. | 
| Faulted | Exception Tip:Workflows transition to faulted if an activity cannot run successfully or if there is an error in the workflow itself due to a failure to retrieve workflow variables or a system error. Faulted workflows can be retried after modifying variables, or terminated if the user wants to end the workflow instance and no longer run the workflow. | 
 | 
| Suspended | Normal Tip:Typically, a workflow is suspended due to a Wait activity. | 
 | 
| Terminated | Exception Tip:A terminated workflow instance cannot be retried. | None. | 
Parent topic: States and Transitions
20.1.6.2 Activity States and Transitions
Learn about available activity states and potential transitions.
Activity States
- Active
- 
                              An activity that is currently running. 
- Waiting
- 
                              An activity that is currently waiting for a result. For example, an activity might be waiting on approval from a task. 
- Completed
- 
                              An activity that completed successfully. 
- Terminated
- 
                              An activity that was in active state when the workflow was stopped. 
- Faulted
- 
                              An activity that fails to run. 
Activity State Transitions
An activity transition describes an activity moving from one state to another.
| Initial State | Category | Possible Transitions | 
|---|---|---|
| Active | Normal | 
 | 
| Completed | Normal | None. | 
| Faulted | Exception | 
 | 
| Terminated | Exception | None. | 
| Waiting | Normal | 
 | 
Parent topic: States and Transitions