Docs
On this page
concept4 min readApplication: Platform

Workflow concepts

What a workflow is, how steps move a record, which workflow a record gets, and how versions apply.

A workflow is the process a record follows from creation to completion. It holds the record’s statuses, the actions users can take and the steps that run without a person. Workflows are versioned. A record runs the version that was published when it started, so a change reaches only new records. Read this before you build or change one.

What a workflow is

A workflow belongs to one table, for example Incident or ITSMRequest. In the Administration workspace, go to Workflow & service levels → Workflow design → Workflows. Every workflow has these parts.

Part What it is
Step One activity in the diagram: a status, an approval, a script, a timer or a branch. The record stores it as a workflow activity. Each type is described in Workflow activity reference.
Transition A link from one step to the next. On a User action step, each transition is a button the user can select on the form.
Starting step The step a new record starts at. A workflow without one never starts.
Workflow status The status a record shows while it waits at a step, for example Work in progress. In the designer each status is a lane.
Subflow A step that groups other steps of the same workflow into a diagram of its own.
Version A published copy of the diagram. Records run the version that was published when they started.
The Incident - Standard workflow record. It shows Checked out by, Active version and the tabs.

How a record moves

When a record is created, its workflow starts at the starting step. Steps that do not wait, such as Scriptable, If/Else and Switch, run and pass the record straight on. The record stops at the first step that waits.

Steps wait for one of three things:

  • a person, at a User action (the user selects a transition) or an Approval (approvers respond)
  • time, at a Timer
  • an outside event, at Scriptable (Async), Switch (Async) or Run action

A waiting step sets the record’s workflow status, so lists and forms show where the record is. Steps that pass straight through set no status of their own.

Most steps have a Success and an Error outcome. If a script fails, the record follows Error. An Exception step catches errors that no other path handles. A Complete step ends the workflow, and a Failure step ends it as failed.

The server checks every move before it saves it. A user can take a transition only if they hold one of its roles. If the save is refused, the record and its workflow stay as they were.

Lanes and statuses

The designer draws one lane for each workflow status. A step in a lane sets that status. A transition that crosses into another lane changes the record’s status. One that stays inside a lane does not.

Steps that never set a status, such as comments, sit in a No status band beside the lanes. How to draw lanes, steps and transitions is in Draw a workflow in the designer.

The Incident - Standard workflow in the designer, read-only, with one lane per status and a Problems list.

Subflows

A subflow keeps a large workflow readable. It is a step that opens as a diagram of its own, in a tab beside the main one.

  • A record entering the subflow starts at its Subflow Input step. Every subflow has exactly one.
  • It leaves through one of the subflow’s Subflow Return steps. Add one Return for each way the subflow can end, such as Approved and Rejected.
  • On the main diagram, the subflow step has one outcome for each Return, named after it.

Subflows can be nested up to five levels deep. The record still has one workflow instance, one history and one set of approval tasks.

Which workflow a record gets

A table can have several workflows, for example one per catalog item on ITSMRequest. Servicely chooses one when the record is created:

  1. If the record comes from a catalog item that names a workflow for the same table, that workflow runs.
  2. Otherwise Servicely reads the active workflows for the table and its parent tables, lowest Order first.
  3. The first workflow whose condition matches wins. A workflow with no condition matches every record.
  4. A matching workflow that has a condition is preferred over one that has none.

A workflow that cannot start, for example one without a starting step, is left out. Set Order so that a request raised without a catalog item gets the workflow you expect. A workflow with Order 10 is considered before one with Order 20.

The condition is on the Condition tab. It is either a query or, when Advanced is on, a script in Condition script.

Editing and versions

Only one administrator can edit a workflow at a time. You check it out in the designer, save and publish your changes, and check it in again. Checked out by on the workflow shows who has it.

A change takes effect only when you publish it. Records already running keep the version they started with. Only records created after you publish get the new version. Active version on the workflow names the published version, and the Versions tab lists every one with its summary.

To move running records onto a newer version, use Upgrade running records. The steps are in Build a workflow.

To find the version a record runs, go to Workflow & service levels → Running workflows → Workflow instances. Related record in the list shows the record each instance belongs to. Open the instance for your record. Workflow version shows the workflow name and the date and time that version was published.

Workflows and triggers

A trigger can run when a record moves along a transition: set On transition(s) on the trigger. Use this for logic that belongs to a status change, such as setting a field when work starts. See Triggers.

Last updated 3 December 2026commit 6777698daac5Chris Jones
Back to top