OBLYTECH Logo
OBLYTECH Logo

Request Fulfilment Flows and Requested Item States Explained

A request fulfilment flow is the sequence that takes a catalog order from approval through to closure. Each ordered item becomes a requested item (RITM) with its own state, which moves from Open to Work in Progress or Pending, then to a closed state.

What one catalog order creates

A catalog order creates one request record, and each ordered line becomes its own requested item on that request. Take a single order for one laptop, two monitors and one keyboard.

Record Identifier What it covers
Request REQ0000001 The whole order, listed as 3 requested items (4 units in total)
Requested item RITM0000001 1 laptop
Requested item RITM0000002 2 monitors
Requested item RITM0000003 1 keyboard

Choosing how the fulfilment process runs

A fulfilment process is built from a Workflow Studio flow, a workflow or an execution plan.

The base system ships two catalog workflows: Service Catalog Request for simple orders and Service Catalog Item Request for more complex ones. Either can be edited in the Graphical Workflow Editor, or new ones can be created. For the catalog item side of this set-up, see what a catalog item is. A new workflow is built by creating it, defining its activities, publishing it, and then pointing the catalog item at it. Activities can run scripts, send notifications or request approvals.

Catalog tasks that need catalog variables must be created from the parent workflow. A catalog workflow cannot read variables from catalog tasks created inside a subflow, so plan the parent workflow around this before splitting it up. Under domain separation, select the domain-specific workflow in the Workflow field on the catalog item.

If a catalog item is deleted while its requests are running, the workflow stage field shows “Catalog item removed”. If the workflow context is deleted, it shows “Workflow context removed”.

Building a step-based fulfilment flow

Owners define fulfilment steps in Catalog Builder while creating an item. They associate the item with a Workflow Studio flow that supports service fulfilment steps. Steps run one after another, or are grouped to run in parallel. The three base step types are Task, Custom approval and Manager approval.

Step type Fields the owner completes
Task Short description, Description, Assignment group, Assigned to, Priority, When to run, Sequence, Condition
Custom approval Users, Groups, Approval type, When to run, Sequence, Condition
Manager approval When to run, Sequence, Condition

For a custom approval, “All approve” requires all assigned users and groups to approve, while “Anyone approves” needs one. Sequence is set to “With previous step” to group a step with the one before it, or “After previous step” to place it after. To hand an approval to someone else, see approval delegation. The Sequence field cannot be edited on the first step. Condition uses the questions already on the catalog item.

To register a step-based flow, create a Workflow Studio flow with the Service Catalog trigger and call the Service Fulfillment Steps base flow subflow from it. Then add a Service Fulfillment Flow Registry record under Service Catalog, Catalog Administration, Service Fulfillment Steps Registry, with Active enabled. The subflow returns “completed” when all steps finish, or “failed” when a step cannot run because of a configuration problem, such as a missing subflow.

Adding a new service fulfilment step type

If a new step needs input from the owner, such as an email address and message body for a notification, extend the Service Fulfillment Step [sc_service_fulfillment_step] table with those fields. A step that needs no input, such as a department head approval, can use the base table. An extended table needs ACLs similar to the base table, canCreate, canUpdate and canRead enabled, and a Domain master attribute set to service_fulfillment_stage so the step inherits the catalog item’s domain.

A record producer stores the owner’s input. It must keep the Service Fulfillment Steps – Properties variable set, map a variable to each extra column, select Allow edit and set Save Options to “Save in Destination”. The step’s subflow is built by copying Template: Service Fulfillment Steps. It receives the requested item, a step data record whose state must be set to canceled, failed or completed before the subflow ends, and the step itself, which the subflow must not update.

The step is wired up in Service Catalog, Catalog Administration, Service Fulfillment Step Configurations.

Field What it controls
Order Position in the Steps list; the lowest order is shown beside the list
Hide Hides the step type without changing existing steps
Producer The record producer that creates the step instance
Service fulfillment subflow The subflow triggered during fulfilment
Dynamic title Step text, which can include a data store field such as the approval title in Custom approval

How requested item states reach the universal request

Requested item state mapping keeps the universal request in step with its items. The worked example: a requested item moving from Open to Work in Progress changes the universal request from New to In Progress.

In the default mapping, Work in Progress and Pending both map to In Progress. Closed Complete, Closed Skipped and Closed Incomplete all map to Closed.

Closing an item without sending it back to the universal request queue, or to another department, has two outcomes. If Needs resolution review is selected on the universal request, the item closes in the chosen state and the universal request state reason becomes “Confirm response”. If it is not selected, which is the default, the request closes as the mapping sets. The mapping is maintained at Universal Request, Administration, State Mapping, and requires the admin role.

How closure rolls up

Closure depends on three levels: catalog tasks, requested items and the request. These rules apply to execution flows.

Closing level Condition Result
Requested item All catalog tasks Closed Complete Closed Complete
Requested item At least one task Closed Incomplete Closed Incomplete
Requested item All tasks Closed Skipped Closed Skipped
Request All requested items Closed Complete Closed Complete
Request At least one item Closed Incomplete Closed Incomplete
Request All items Closed Skipped Closed Skipped

Fulfilment actions in Flow Designer

Users with the flow_designer or admin role can add three core actions to a flow. For the wider concept behind these actions, see the Action (Flow Designer) explainer.

Submit Catalog Item Request creates a requested item on a Service Catalog Request. Its inputs include Catalog Item, Quantity, Special Instructions, Delivery Address and Requested For. Catalog variables of type list collector, lookup multiple choice and lookup select box are not supported. Its options are Don’t fail on error, Wait for Completion and Enable timeout. Its outputs are an Error Message, the Requested Item document ID, and a Status of 0 (success), 1 (error) or 2 (timeout). Complex string variables are stored as JSON, so escape quotation marks in string data pills with the String Replace transform function.

Create Catalog Task creates a record in the Catalog Task [sc_task] table, or in another Task-extension table such as Incident Task [incident_task], linked to a requested item. When Wait is true, the flow pauses until the task is no longer active.

Get Catalog Variables returns the values of selected variables at the moment it runs. To react to later changes, add a Wait For Condition action with a changes operator and run it again.

Monitoring open requested items

The Open Requested Item State Monitor dashboard sits in the Request Management Platform Analytics Solutions set, which ServiceNow deprecated starting in the Xanadu release in favour of the Request dashboard. On a Xanadu or later instance, check which dashboard is available before building monitoring around it. Where it is still present, it splits open items by Pending, Work in Progress or all open. Open items are records on the Requested Item [sc_req_item] table opened on or before today and not closed. It also counts items not updated in 5 or 30 days, as percentages of open items, along with average age and average re-assignments. Breakdowns are by Age, Assignment Group, Stage and State. For general dashboard set-up, see dashboard layout, widgets and filters.

The legacy Requested Item dashboard is deprecated from the Xanadu release. To see its ‘Basic requested items indicators’ widget, a user needs the pa_viewer role.

Delegating requests

The Requested For variable lets someone order for another person. After submission, the Requested For variable value is copied to the Requested For field on the requested item. If that field is not on the RITM form, add it to the form first, because the copy depends on the field being there. Later edits to either value do not update the other. Delegated access allows requests for users without access to the catalog item, and two-step checkout does not support delegated requests.

Frequently asked questions

Why do Work in Progress and Pending look the same on the universal request?

Both map to In Progress in the default mapping.

If one catalog task is incomplete, what happens?

It closes its requested item as Closed Incomplete, and that in turn closes the request as Closed Incomplete.

Why does a flow show stale catalog variable values?

Get Catalog Variables reads values only at run time. Add a Wait For Condition with a changes operator and run the action again after the change.

What does Catalog item removed mean?

The catalog item was deleted while requests for it were still running.