OBLYTECH Logo
OBLYTECH Logo

Execution plans and automation level for catalog requests

An execution plan is the ordered set of tasks that carries a catalog item from approval through to delivery. Each plan holds task templates, each of which can be assigned to a fulfilment group, and tasks can be conditioned, skipped, approved or rolled back. The steps below cover the build, choosing plans by script and recording the automation level.

How an execution plan fits a catalog request

An execution plan sets out how a catalog item is procured, configured and installed. It runs as a straight sequence of one or more tasks. A corporate standard PC is a good example: buy it from a supplier, configure it to the requester’s specification, then deliver it.

A plan is not tied to one catalog item. Several PC models can share the same plan, so a mature catalog seldom needs a fresh plan for each item. The trade-off is flexibility. Plans cannot be drawn in a graphical editor and are less flexible than workflows, so they suit processes built in code or loaded by import. For a visual, branching request process a workflow is usually the better tool. The wider design choices sit in the request fulfilment and service catalog guide, and the basics of catalog items are in the catalog item explainer.

Creating the plan record and attaching it to items

Create the plan from All > Service Catalog > Catalog Administration > Execution Plans by selecting New. You need the admin role. Enter a name and a short description, set the delivery information, and submit.

Two delivery values sit on the plan itself: Total delivery time and On Calendar. They produce the estimated delivery date for the request, so settle them before you build the tasks.

To attach the plan, open the catalog item, choose the plan in the Execution Plan field and update the record. You can do this later, but doing it now gives you access to the item’s variables while you build the tasks.

Defining task templates

Each task template is a row in the Execution Plan Tasks list. When an item is requested, the platform turns each template into a real catalog task with its own catalog task number. Take an executive desktop plan with four templates: obtain managerial approval, order hardware, install standard applications and deliver to the requester. One request for that item produces four numbered tasks under one requested item.

The fields on each template control who gets the work, in what order, and what the person sees:

Field What it controls
Name Becomes the name of the created task
Fulfillment group The group that receives the task; leave empty to skip automatic group assignment
Assigned to A named individual; leave empty to skip automatic assignment
Delivery plan The parent plan that owns the task
Order The sequence number; leave gaps such as 100, 200 and 300 so later tasks can slot in
Delivery time Expected duration, which feeds the plan’s total
Condition Decides whether the task runs
Short description Copied to the created task’s short description
Instructions Copied to the created task’s description
SLA Normally left empty, because service level management now handles this

Attach catalog item variables where a task needs them. Open the task, switch to Plan view if the form is not already in it, and edit the Available Variables list. Pick the variables in the slushbucket and save. For where those answers are stored, see the catalog variables table guide.

Making a task conditional

A task with no condition runs on each order of an item linked to its plan. A condition changes that. The usual example is an IT lab delivery step that should not run when the request is already in the lab’s city. Ordering hardware that is already on site is another case: the order task is skipped and the plan moves on.

A skipped task still gets a record, marked as skipped and not processed. Its state is Closed Skipped, and on a requested items list it shows as a grey box. For how requested items move between states, see request fulfilment flows and requested item states.

When a field-based condition is not enough, add the Condition script field to the Execution Plan Task form. A script that returns true runs the task; one that returns false skips it. Attach the variable the script reads to the same task, or the script has nothing to read. If a template has both a condition and a condition script, both must be true before the task runs. When a task seems to ignore its script, check the variable attachment first, because the script has nothing to read without it.

Approval tasks and rollback

An approval task is a special type of task. Create one with New and then Approval in the Execution Plan Tasks list. Its Upon reject field has two settings:

  • Cancel all future tasks is the default. It cancels the remaining tasks and also cancels the parent request item.
  • Go to a previous task opens a Rejection goto field, where you pick the step the plan returns to.

Choose approvers in the Approved By list, or use an approval script to select them.

A rollback resets the intermediate tasks to pending and adds a note to the task it returns to, recording that a rollback happened and why. When you audit a rolled-back request, note that the approval record does not roll back, so the history keeps the original decision. Other plans in the same request are left untouched.

Fulfilment groups and delivery estimates

Any existing user group can take fulfilment tasks. For catalog work it is often cleaner to create a group under Service Catalog, Catalog Policy, Fulfillment Groups. Those groups take the catalog type and the catalog and itil roles, and otherwise behave like normal groups.

Total delivery time adds up the delivery times of the tasks in the plan. By default the estimate counts elapsed time, so a five-day plan submitted on a Friday is due the following Wednesday, because weekends count too. To estimate in working days, set the On Calendar field.

The calendar conversion is easy to misread. On a Monday-to-Friday, 9-to-5 calendar the platform treats a working day as eight hours, but a task’s delivery time day is still 24 hours. A one-day task becomes three working days. A two-day task becomes eight days in total: six working days of eight hours, plus the two weekend days that the run crosses. The calendar is used to help estimate delivery, and it is not linked to SLAs on execution tasks.

Choosing the plan with a script

Each catalog item has a default execution plan, used when the item is ordered. A script can override that default for a specific request. A common reason is a remote requester who needs a different delivery route. The script returns the sys_id of the plan to use. If it returns an invalid value, such as an undefined value or a plan that cannot be found, the item keeps the plan it already had.

The simplest form sets the plan by its display value. A location-based version reads the requested-for user’s location, looks up the alternate plan by name, assigns it and returns it; otherwise it returns the normal plan. The location-based version described here returns two names that are never declared, so declare every variable yourself before reusing the logic.

Plan selection happens before the catalog tasks exist, so a plan script has limits:

  • It cannot work with catalog tasks, which are created after the plan is selected.
  • Total delivery time and due date are not yet calculated, although the request is available through the request object.
  • Approvals have not been generated yet.

To add a plan script, open Maintain Items under All > Service Catalog, select the item, add the execution plan script field (often labelled Delivery Plan Script), enter the script and update the form. It then runs each time that item is requested. Approval scripts use the same syntax as approval rules; one example returns the requester’s manager, so approval follows the reporting line. For the wider item-building steps, see the catalog builder guide.

Recording the fulfilment automation level

Each catalog item carries a fulfilment automation level with four options: Unspecified, Manual, Semi-automated and Fully automated. The admin or catalog admin role can set it. The field does not change how the platform routes or processes the item. It tells the ITSM Success Dashboard which bucket the item sits in on the catalog item fulfilment automation distribution indicator. For the wider automation picture in this area, see request fulfilment automation opportunities.

To set it, open the Success Dashboard tab from All > Success Dashboard > Getting Started, find the Catalog item fulfilment level card and choose Configure. Open each catalog item, set the field and update. Items marked Fully automated raise the percentage of fully automated catalog items on that card, and the Configure view shows the full distribution as a pie chart.

In practice, check the plan for manual tasks before marking an item fully automated, because the field does not change how the item is processed. The dashboard also needs its Performance Analytics jobs active to collect daily and historical data. If figures look stale, run the UpdateFormulasSD script to recalculate them.

Frequently asked questions

Can one execution plan serve several catalog items?

Yes. A plan is not specific to any one item, so several models can share a single plan.

What happens to an approval when a plan is rolled back?

The approval record keeps the original decision. The intermediate tasks in that plan reset to pending, and other plans in the same request are not affected.

Does the automation level change how a request is routed?

No. The field feeds the ITSM Success Dashboard and nothing else. Routing stays with the plan, its tasks and any scripts.

Can a script choose a different plan for one request?

Yes. A plan script can override the default plan for a specific catalog item and runs each time that item is requested. It cannot touch catalog tasks, because those do not exist yet at that point.