Workflow properties
Summarize
Summary of Workflow properties
Workflow properties in ServiceNow allow you to configure key settings such as the application scope, start conditions, schedule, inputs, stages, and runtime metrics for workflows. You can also view metadata including the workflow author, version, and history. These properties ensure workflows run under the right conditions, on the correct tables, and provide insights into their execution performance.
Show less
Key Features
- Name and Table: Assign a unique name and specify the table the workflow operates on. Selecting 'Global' runs the workflow across all tables in the scope.
- Conditions: Define precise triggers for when a workflow should start based on record conditions. Options include running workflows only if no others have matched or using scripts to start workflows.
- Inputs: Manage input variables for activities within the workflow, including data types and default values.
- Activities: Configure activity pinning to control automatic updates of custom activities and set a maximum activity count to prevent infinite loops.
- Application Scope: View and restrict workflows to specific application scopes or allow access across all scopes.
- Schedule: Create schedules using user-specified or relative durations, specifying expected run times and time zones.
- Stages: For workflows on tables with stages, customize stage names, order, duration, rendering, and values to track progress.
- Estimated Runtime (ERT): Enable and configure estimated run times to monitor workflow performance, detect deviations, and identify errors. The system tracks actual runs versus estimates to improve accuracy.
Practical Benefits
By configuring workflow properties, ServiceNow customers can precisely control when and how workflows execute, ensure proper application and data scope, and monitor workflow efficiency. Scheduling and stage settings enhance visibility into workflow progress, while estimated runtime metrics help proactively identify and troubleshoot performance issues. Activity pinning protects customizations from unintended updates, maintaining workflow stability.
In the properties of a workflow, you can configure settings such as its application scope, start conditions, schedule, inputs, stages, and run time metrics. You can also view information such as the workflow author, version, and history.
- Name
- Table
- Description
- If condition matches
- Condition
- General
- Conditions
- Inputs
- Activities
- Application
- Schedule
- Stages
- Estimated Runtime
General
| Field | Description |
|---|---|
| Name | A name to identify the workflow. |
| Table | The table for the workflow to run on. Workflows that run on specific tables
can still interact with other tables. Select Global
[global] to run the workflow on all tables. Note: The list shows
only tables and database views that are in the same scope as the workflow. Also,
all users who edit the workflow must have access to the necessary tables and
domains. |
| Checked out | [Read-only] When the workflow was checked out. Automatically set by the Checkout action in the workflow menu. |
| Checked out by | [Read-only] The user who has this workflow checked out. This value is automatically set by the Checkout action in the workflow menu. |
| Published | [Read-only] Check box to indicate whether the workflow has been published. Automatically set by the Publish action in the workflow menu. |
| Description | The purpose of the workflow. |
Conditions
| Field | Description |
|---|---|
| If condition matches | When the condition evaluates to true, the workflow launches an active context:
|
| Condition | A condition builder for specifying workflow conditions that trigger the behavior selected from the If condition matches list. |
| Order | Numeric value that determines the order of the workflow, relative to other workflows. Workflows are evaluated in order from the lowest order number to the highest. A workflow runs if it is the first to match conditions. |
Inputs
| Field | Description |
|---|---|
| Label | Displayed column label. Localized depending on user locale. |
| Reference | Input field from another table. |
| Type | Data type. For example, integer or string. |
| Default value | Value used if you do not provide a value. |
Activities
| Field | Description |
|---|---|
| Activity pinning | List of options that control updates to custom activities at the workflow
level. Pinning protects custom activities from being updated automatically when
downloaded from the ServiceNow Store. For more information, see Workflow activity pinning.
The possible options are:
|
| Max activity count | The maximum number of activities performed by the workflow. This value is used to prevent infinite loops and is set to 100 by default. When the stated maximum count is reached, the workflow is canceled. If this field is blank, the maximum count is set to -1, and the workflow is canceled. |
Application
| Field | Description |
|---|---|
| Application | [Read-only] Scope of this activity. For more information, see Application Scope. |
| Accessible from | Scope restrictions for this workflow. Possible settings are:
For more information see Workflow scope. |
Schedule
| Field | Description |
|---|---|
| Delivery based on | The schedule type for this workflow. Possible types are:
|
| Expected time | User-defined interval. This field is visible when the schedule type is User-specified duration. |
| Schedule | Preconfigured schedule that determines when this workflow runs. |
| Timezone | Time zone for this instance. |
Stages
| Field | Description |
|---|---|
| Stage | Displays the workflow stage progress on the selected table. Optionally, select Stage rendering and Stage order schemes to customize the appearance of the stage field. The default values cover typical scenarios. |
| Stage rendering | The renderer to use when displaying stage icons on a form or list view. For more information about renderers, see Workflow stage renderers. |
| Stage order | The order of workflow stages when you view a workflow field in a list. Select Computed to let the workflow engine compute the stage order from the order of execution in the workflow. Select User Specified to use the Order field from that Workflow stages. |
| Name | The name of the stage as it appears in workflow fields.. |
| Duration | Time allocated for the specific stage. |
| Order | The order of workflow stages when you view a workflow field in a list. Select Computed to let the workflow engine compute the stage order from the order of execution in the workflow. Select User Specified to use the Order field from that Workflow stages. |
| Value | The value of the stage when it is referenced from elsewhere in the system, such as in a script. |
Estimated Runtime
| Field | Description |
|---|---|
| Requires ERT | Check box to indicate that this workflow requires an estimated runtime
configuration. You can use the ERT calculations to determine if workflows are running longer or shorter than expected and to identify errors in workflow processing. By default, new workflows require an ERT. |
| Estimated Run Time | The initial estimate for the workflow's run time. |
| Number of data points | [Read only] The number of times the system has compared the estimated run time to an actual run time result. |
| Outlier Percentage Threshold for ERT | [Required] The percentage deviation from the estimated run time that identifies an outlier workflow run time. The system uses a default value of 20. For more information, see Outlying workflow run times. |