End Workflow

End Workflow activity

This activity terminates a running branch. The branch can terminate in a completed state or with an error.

For example,

Example: Your workflow handles documents for your human resources department, and you have an Employment Status field for each employee in the "HR" template. In your workflow, you use a Conditional Parallel activity to determine how HR documents should be handled, but if an employee's status is set to "No Longer Employed," you do not need to continue routing the documents. You could use the End Workflow activity to stop routing the documents.

To set up this activity:

  1. Drag the activity from the toolbox pane and drop it in the Designer pane.
  2. In the properties pane, type a name and description of the activity.
    The name and description editors
  3. In the Workflow to End property box, leave Current workflow selected.
  4. In the Workflow Status property box, select the type of cause for the workflow ending.
    • Completed: Ends the workflow normally.
    • Terminated: Ends the workflow with an error logged. You can view that error in the instance report.
  5. In the Reason property box, type the reason why the workflow ended. When viewing the message that appears in Messages in the instance report, this description can help you determine why the instance ended. Click token (>) to add a token.

You may want to disable activities if you only want to test specific sections of your workflow. To disable activities:

  1. Select an activity in the designer pane to highlight it.
  2. In the Description property box, clear Enable.