Workflow stages
Summarize
Summary of Workflow stages
Workflow stages in ServiceNow provide a way to visually indicate the progress of a workflow by updating a designated stage field on the associated record. Different tables use different fields for stages—for example, the Incident table uses the Incident state field, while the Service Catalog uses a Stage field. The workflow engine updates this field during execution to reflect the current stage based on workflow activities, helping users track progress directly in records and list views.
Show less
Key Features
- Stage Field Selection: Workflows update a chosen stage field defined in workflow properties. The available fields depend on the workflow’s table and must generally be choice list fields.
- Stage Values Sources: Stage values are derived from choice lists of the stage column, default stages defined per table, workflow-specific stages, and existing record stage values.
- Automatic Stage Handling for Requested Item Table: For workflows using the Requested Item [screqitem] table, the Stage field is fixed and automatically updated based on activity states like In progress, Pending, Completed, or Request Cancelled.
- Stage State Display: The stage field reflects the state of the current workflow activity (active, pending, completed, canceled) and displays appropriate labels and icons.
- Workflow Stage Sets: Stage sets allow grouping and reusing common sets of workflow stages across multiple workflows and tables, enabling consistent stage management and easier imports/exports of stage values.
- Custom Stage Management: Customers can add, modify, and translate default stages for tables and individual workflows to tailor the progress indicators to their processes.
Practical Application for ServiceNow Customers
By using workflow stages, you can enhance visibility into workflow progress across your processes directly on records and lists. This helps your teams quickly identify the current state of a workflow, improving tracking, reporting, and user communication. For workflows involving request items, stage updates happen automatically, ensuring consistent status indicators.
When creating workflows on tables other than Requested Item, you need to specify the stage field in workflow properties to enable stage tracking. Leveraging stage sets allows you to standardize stages across workflows and tables, simplifying management and ensuring consistency.
Overall, workflow stages provide a flexible and visual method to communicate workflow status, enabling better operational insight and user experience in ServiceNow workflows.
Workflows can indicate workflow progress by updating any field designated as a stage field.
For example, the Incident [incident] table has an Incident state field that indicates progress, but the service catalog uses the Stage field.
To indicate the workflow's progress through the possible stage values, the interface updates the Stage field selected in the workflow properties. Available fields depend on the table used by the workflow. If the field provides a choice list, then the choices are available as stage values for the workflow. If the field is a workflow field, it displays an icon to indicate the workflow's progress, as with the Service Catalog's Stage field.
After stages are added to the workflow, they can be assigned to each workflow activity. If an activity with an assigned stage is encountered when the workflow runs, the workflow engine assigns the stage to the record associated with the workflow context.
- If an activity is active, then the stage is shown with the state of In progress.
- If an activity is in the Pending or Completed state, the stage reflects this state.
- If an activity is canceled, Request Cancelled appears in the Stage field. The "Cancelled" label set in the wf_stage table is a reserved word, and does not display in the Stage field.
How stage values are derived
Stage values are derived from various sources in the interface.
- Choices for Stage column: Choices defined for the column selected as the Stage column for the workflow.
- Default stages for table: Stages defined in the Stage Default [wf_stage_default] table for the table selected.
- Workflow-specific stages: Applied only to the workflow for which they were defined in the Workflow Stage [wf_stage] table.
- Stage values in existing records: Values from the designated Stage column in the table assigned to the workflow are inherited from existing records.
If the stage field for a workflow is the table column named Stage, then the progress of the workflow appears in any list view containing the Stage column.
Stage values shown in the list views are accompanied by the state, based on the workflow activities being executed. If an activity has a stage specified for it, and the activity is currently active in the workflow, then the stage is shown with a state of In progress. Similarly, if the activity is in the Pending or Completed state, the stage reflects this state.
Example
- Waiting for Approval
- Fulfillment
- Delivery
- Request Cancelled
- Completed
- Waiting for Approval
- Fulfillment
- Delivery
- Request Cancelled
- Completed