Create and run workflows

Itential Platform includes Studio for defining and building automations that can be used by applications in the system. Studio provides a clean, modern interface for arranging and connecting tasks and transitions on a canvas to create flow-based workflows.

Studio canvas showing a workflow with tasks and transitions

Terminology

The following terms apply to Studio and workflow design in Itential Platform.

TermDescription
AutomationA collection of tasks in a logical order, beginning and ending with terminator tasks (start/end). Also known as a workflow.
JobAn instance of an automation. It takes a snapshot of the associated automation when created.
MetricsMeasurements of job execution statistics for automations and tasks.
QueueTasks live in queues where operators with the appropriate permissions can locate available, claimed, scheduled, and completed tasks.
SchedulerThe process within Itential Platform that scans for automated tasks to be invoked.
TaskA functional block within an automation. Automated tasks (green) are configured with a run window and execute automatically. Manual tasks (blue) can return multiple values and are assigned to groups to restrict who can work them.
TransitionsConnections between tasks that define the direction of workflow execution. Transitions can be success (green), error (red), or failure (red), and follow either a standard (solid line) or revert (dashed line) route. Use revert transitions when moving backwards in the workflow.
VariableA value that can change depending on the data passed between applications on the network.

Workflows in Studio

To start building an automation, select Studio (formerly Studio) from the Itential Platform homepage. From the Studio landing page, you can search for an existing automation or create a new one.

Searching for workflows

To find an existing workflow, click the search icon (magnifying glass) in the Studio top toolbar. From the Workflows tab of the Collection dialog, browse or search for an existing workflow and click it to open its canvas.

Workflows Collection dialog showing workflow cards with metadata

Creating workflows

1

Open the Create dialog

Click the plus (+) icon on the Studio homepage.

2

Select Automation

Select Automation from the type dropdown and enter a name for the new automation.

3

Create

Click Create. The workflow opens in the canvas.

4

Build the workflow

The new canvas opens with Start and End tasks displayed. Add more tasks from the Task Palette by drag and drop:

  • The Task Palette appears on the left side of the canvas. It can be moved or closed to free up canvas space. Click Show Task Palette in the task toolbar to reopen it.
  • Search for a task by typing in the Filter Tasks field.
  • Drag the desired task from the search results onto the canvas.
  • To add a transition, hover over the border of a task until the border highlights, then press and hold the mouse button and drag toward the destination task. Release the mouse when the transition snaps to the destination task.
Workflow canvas showing task and toolbar layout for the new canvas
LabelUI elementFunction
1Actions ToolbarCreate a new automation, go to Studio homepage, search, import, and open Projects.
2Search BarFind available automations in the system.
3Task ToolbarUndo, redo, show task palette, recent tasks, search, and spread tasks on canvas.
4Automation Title BarValidate workflow, save automation, start job, and open secondary actions menu (edit details, duplicate, export, delete).
5Task SearchSearch and filter available tasks.
6Task PaletteList of available tasks for the automation.
7Applications MenuApplications that comprise the Studio suite.
8Sidebar ControlShrink or expand the sidebar navigation.

Canvas task types

An automation in the canvas consists of four task types: automatic tasks (green), manual tasks (grey), start/end terminators (grey and black), and operational tasks (purple).

Arrows represent transitions and show the direction of the workflow. Studio also supports optional role-based access control (RBAC) by restricting task ownership to authorized groups. Only group members are authorized to work tasks.

Canvas showing automatic, manual, operational, and terminator task types

Transitions are identified by two properties: the exit status of the leading task, and the direction of the transition (standard or revert). Different transitions allow automations to correct anomalies, repeat parts of an automation, skip tasks, manually intervene, or follow the planned execution path.

A complete workflow showing success, failure, and revert transitions

Automation lifecycle

Job status

Upon start, a job is set to running status. Running jobs can move into cancelled, completed, or error states.

Job lifecycle diagram showing transitions between running, cancelled, completed, and error states

Task status

When a job starts, its tasks are set to an incomplete status. From incomplete, tasks move into running or scheduled states. A running task can move to completed, cancelled, or error states.

Task lifecycle diagram showing incomplete, running, scheduled, completed, cancelled, and error states

Variable types

In Studio, variables hold values that can be referenced by devices and applications. Three variable types can be used in a reference task on the canvas.

Static variables are hard-coded and maintain the same value for the entire automation run. They cannot be changed programmatically and are used for settings that should not change once a workflow has started.

Job variables allow you to use changeable values in the configuration and execution of a job. You create a variable, give it a name and a value, and reference it by name throughout the workflow. Job variables can be passed as inputs each time a workflow is executed, and any task can update their value mid-run. Use task variables instead of job variables whenever possible.

Task variables are values produced by a previously executed task in the workflow. They provide reference information for a subsequent task — you choose a prior task, take its output, and use that as the input for the selected task.

Actors in workflow management

In the context of workflow management, actors execute tasks within a workflow. Setting up an authorization layer ensures tasks are carried out with the appropriate user context and are not executed by unauthorized individuals.

Assigning actors

When editing an automatic task, you can select the actor — the user that executes the task in a job. By default, the actor is the Itential user, but any platform user can serve as an actor. Available options are Itential (default), Job Initiator (the user that started the job), or any prior manual task user in the workflow.

When an automatic task runs, it calls the method, writes to an audit trail, and is authorized as if that user had called the method via the Northbound API. If the task calls an external system API, Itential Platform uses the actor’s credentials in that API call.

Users from manual tasks inside a prior child job are not available as actors. If an actor is selected from a manual task branch that does not run, the automation engine falls back to the Itential user.

Actor selection in a task showing Itential, Job Initiator, and prior manual task options

Transitions and task states

Transitions connect tasks to each other and control the order of task execution. A transition has two properties: a binding value corresponding to a possible finish state of its leading task, and a direction determining whether execution moves forward or backward.

Task finish states

Finish stateDescription
SuccessThe task executed without error, or matched an evaluation expression.
ErrorThe task encountered errors during execution.
FailureThe task failed to match an evaluation expression, or returned as undefined (as seen with the evaluation and query tasks respectively).

The table above assumes automatic tasks. When using actionable tasks, finish states are determined and set manually by the end user.

Transition binding values

The binding value of a transition corresponds to one of the finish states. Success transitions are green, error transitions are red, and failure transitions are purple. After a task is assigned a finish state, the workflow follows any transitions with a matching binding value.

Example: A workflow uses stringConcat to combine two strings. If no errors occur, the workflow advances to the evaluation task. If the combined strings match the evaluation expression, the workflow ends via the success transition. Otherwise, the workflow moves to runShellCommand via the failure transition.

Workflow showing three paths: success to End, failure to runShellCommand, and error handling

Transition direction

DirectionDescription
StandardMoves workflow execution forward toward the End task. Drawn with a solid line.
RevertMoves workflow execution backward to a revert point. All tasks from the revert point forward are reset. Drawn with a dashed line.

Example: A workflow uses getTime to get the current time. On success, a standard transition advances to ViewData. If the user wants to re-run the workflow, the revert failure transition on ViewData returns execution to getTime.

Workflow showing a standard success transition to ViewData and a revert failure transition back to getTime

Adding transitions

1

Select the source task

Click the task you want to transition from. The task highlights with a dashed border.

Task highlighted with a dashed border, ready to create a transition
2

Drag the transition

Click within the dashed border and drag toward the destination task. Transition direction is automatic — it is standard unless you are dragging to an earlier point in the workflow.

3

Set the binding value

While dragging, press S for success, E for error, or F for failure to assign a binding value.

4

Connect to destination

When the transition snaps to the destination task, release the mouse button.

Transition being dragged from one task to another on the canvas

Changing a binding value

To change the binding value of an existing transition, click the transition to select it (it becomes bold), then press S, E, or F to assign a new binding value. Alternatively, right-click the transition and select a binding value from the context menu.

Task status symbols (Ops Manager)

Task status symbols on the canvas are used by Operations Manager to track task status in a job instance.

SymbolMeaning
Green check markTask completed successfully.
Red exclamation markTask has errored.
Blue circular arrowsTask is currently running (manual task).

Studio supports searching automation content through the Canvas Search function. The search icon is located at the top left of the main canvas.

Canvas search icon in the top left of the Studio canvas

Canvas Search can also be accessed by right-clicking the canvas and selecting Show Canvas Search, or by pressing the keyboard shortcut Q.

Context menu showing the Show Canvas Search option

Clicking the search icon reveals the Search Palette, which lists all tasks currently on the canvas.

Search Palette showing a list of tasks on the canvas

Enter a search term in the Search your canvas field. The function queries task summary and description, looking for three words before and three words after the search term. Search options include app, description, id, job variable, name, and summary. Matching terms are highlighted at the bottom of each relevant task. To clear a search, delete the search term.

When a search matches a task that appears in multiple places, all instances are listed and each is brought into focus on the canvas, making them easier to find in complex workflows.

Multiple matching tasks highlighted on the canvas from a search

Clicking a task in the search list selects and centers it on the canvas.

A task selected and centered on the canvas from the search list

Double-clicking a task in the search list selects, centers, and opens it.

A task opened after double-clicking it in the search list

If multiple results match within the same task, an icon showing the count of Other Results Not Shown appears (up to +4). In the example below, a search on “stub” matched the Task Summary first, with additional matches hidden behind a +1 icon. Hover over the icon to see the additional details.

Search result showing a +1 icon indicating additional matches within the same task

Using reference view

Reference View is an interface tool that allows you to see the flow of data through a workflow before making changes. Use it to understand what a task is connected to and how any changes will affect other tasks.

Enable reference view

Click a task and press R, or right-click the task and select View References from the context menu.

Context menu on a Stub task showing the View References option

When Reference View is enabled, all prior tasks (those providing variable inputs to the selected task) and subsequent tasks (those using its output) are shown in a custom node template. All other tasks and transitions are reduced in opacity.

While in Reference View, you can interact with the canvas normally, except for actions that would change a task’s references — these trigger a notification suggesting you exit Reference View first.

Reference view visualizations

The origin task (the one you selected) is outlined with four gray floating corner accents. Prior tasks are highlighted in orange, indicating data flowing into the origin task. Subsequent tasks are highlighted in blue, indicating where data is going.

Example: Below, the Stub task is the origin task. It is pulling data from the New Variable and Modify tasks (orange). It is passing data to the Evaluation task and another Stub task (blue).

Reference View showing origin Stub task with orange prior tasks and blue subsequent tasks

When you attempt an action that would change references — such as deleting the origin task — delete options in the context menu are disabled and a warning notification appears in the upper-right corner of the canvas.

Reference View warning notification when attempting to delete the origin task