connect
search

Creating a workflow definition using the canvas editor

The canvas editor allows users to create workflow definitions by using a visual designer, where components can be added using drag and drop actions and further be configured after being placed on the diagram.

To create a workflow definition using the canvas editor:

  1. Open the Workflows menu and select Manager. The Workflow Manager page is displayed. The Workflow Manager
  2. Click New workflow definition. The Workflow Manager

The workflow will be displayed in canvas editing mode by default for new users.

The Workflow Manager

You can open the code editor by clicking Switch to code editing. Switch to code editing To go back to the canvas editor, click Switch to canvas editing. Switch to canvas editing

Canvas actions

When using the canvas editor, the user has access to multiple actions displayed on the canvas top bar.

The top bar

  • Undo/Redo – you can undo or redo an action.
  • Switch layout orientation – you can switch the layout from horizontal to vertical and the other way around.
  • Fit and center diagram – zooms the diagram to fit all of the components that are placed within it.
  • 100% zoom – will default the zoom to 100%.
  • Zoom out/in
  • Shortcuts – displays a modal with a list of keyboard shortcuts that can be used in canvas editing mode.

Searching for components

  • On the left side of the page, the Components section is displayed. This section is collapsable.
    • Use the search bar to find components by name or expand and scroll through the available components.

Component Types

The following types of components can be used in a workflow definition:

  • Media Tasks – Tasks that alter a media item in a specific way or that can transition a media item from one status to another.
  • Media Triggers – System events that trigger Ingest workflows.
  • Logical Components.
  • Workflow Tasks – Tasks that are used to create dependencies between multiple workflows, used for more complex scenarios.

Adding, moving, and deleting components from the diagram

  • Once you find the component that you want to use, drag and drop it on the canvas.
  • The canvas displays the drop areas where you can place a component. This can be either:
    • Before a component that is placed on the canvas. Drag and drop before a component
    • After a component that is placed on the canvas. Drag and drop after a component
    • On the failsafe path of a component that is placed on the canvas. Failsafe component
    • If there is no drop point visible on the diagram when hovering, this means that a component can not be placed at that location.
  • Once a component has been placed on the diagram, the component can be moved to another position by clicking on the drag handle. Move component
Note

Moving complex components, such as Choice and Parallel steps and their branches might impact the structure of the diagram. This action is reversible using the Undo function.

  • Once a component has been placed on the diagram, the component can be deleted by clicking on the Delete button. This action is reversible using the Undo function.
Note

Any component that has been removed from the diagram by a user during their browsing session can be retrieved from the Recently deleted section using a drag & drop action. This will place back the component and its configuration on the specified position on the diagram.

The Recently deleted section

Configuring components

Each component on the canvas can be configured from at least one point of view. To access a component configuration:

  1. Click on the component on the canvas. Selected component
  2. The right sidebar will be loaded with the selected component’s configuration. The Component details section

In the following section, we offer details about the types of configurations you might encounter during the process of building an Ignition workflow definition.

Inputs


Most tasks that are added to the canvas will have one or more inputs that will need to be configured.

To configure each input you have to:

  1. Check the input value type – each input will have a value associated with it, which is marked by a corresponding symbol. The Input paramaters
  2. Type in the input, using static values or outputs that are available from previous steps. Note that all input fields support suggestions from the list of outputs of all previous steps. The list of Input paramaters
Note

Any component that is missing configuration, such as missing an input value, will be marked as such on the diagram.

Component with missing configuration

Outputs


Each task can return one or more outputs during execution. Users are able to see what each Task can output, by expanding the Output section in the sidebar.

The Component details section for outputs

The list can be accessed in an expanded view as well by clicking on the Expand button. Workflow variables

Choice branches


Choice branches have the following structure:

  • One or more conditional branches, with an editable conditional statement.
  • A default choice branch, which will always be taken if no other condition is met. As such, it does not have an editable conditional statement.

To edit a conditional statement:

  1. Choose the conditional branch that will be edited and click on its name. A modal is displayed. The Conditional branch
  2. Enter a name for the conditional branch so other users can understand what the branch does during executions of the workflow.
  3. Create a conditional statement using the builder that is available in the user interface. The Edit condition rule modal

Besides editing conditional branches, you can also:

  • Reorder branches in the sidebar using drag and drop: Reorder branches
  • Delete a branch using the context menu: Delete branches
  • Set a non-default branch as the default branch using the context menu. Nothe that this will clear any configuration that was made on the new default branch and transform the old default one into a not configured conditional branch. Set default branches

Parallel branches


Parallel branches have the following structure:

  • Two or more branches.
  • A converging step where all parallel branches will merge.
Warning

All components placed on a Parallel step must converge in the converging step, either directly or indirectly.

To edit a parallel branch, you have to:

  1. Place the first component on the branch, starting with replacing the placeholder value. Parallel branches

  2. Continue placing other components on the branch, either before or after the first component.

The parallel branches will be displayed in the Component details section, marked by the first step in each branch. To add a new branch, click +Add Branch.

List of parallel branches

About the Workflow ManagerCreating a workflow definition using the code editor