Administering workflow contexts

The workflow context performs the activities and transitions defined in the workflow with the new record as current.

Workflow in ServiceNow names a running workflow a Workflow Context. The Workflow Context maintains the state of the overall process in the Workflow Context record. The Workflow Context maintains the state of the individual activities as they execute in a series of related lists. These lists maintain the state of currently executing activities, the result of finished activities, and the execution path the workflow took through the process model.

The Workflow Context canvas provides a visual representation of the execution path the workflow took through the process model. The state of each activity (finished, executing, cancelled, error) is represented using the color palette. The executed paths are represented in the color blue; the non-executed paths are represented in grey. Active and historic workflow contexts, as well as the activities within them, can be viewed using the Live Workflows section of the Workflow application menu.

Viewing a workflow context

Workflow contexts can be found in two places:
  • From the Workflow Context related link on the form of the task being powered by the workflow.
  • By navigating to Workflow > All Contexts and selecting an active context.

Displaying workflow progress

Two related links on the Workflow Context form allow you to view the progress of a workflow in different formats.
  • Show Timeline displays the workflow context as a timeline.
  • Show Workflow displays the workflow context in the graphical workflow editor.

Graphical interface

To view the workflow context in the graphical workflow editor interface, click the Show Workflow link from either the workflow context record or the current record.
Figure 1. Show workflow
In the top right hand corner are two controls:
Refresh icon Refreshes the workflow context.
Color key icon Displays a key of the colors used in the workflow to denote the state of activities and transitions:
Workflow state