Skip to Content

Workflow Creation and Design

Introduction

A workflow is a collection of operations that is used as a tool to help segregate different parts of the project. By grouping operations together in a workflow, you may find it more convenient to organize process flows in a logical manner.

For example, one workflow might include a group of operations that retrieves a product object from an application and writes the result to temporary storage, then reads from temporary storage and writes to a database, and records any errors to the operation log. Another workflow in the same project might be used to create a similar flow for the endpoint's sales order object.

Workflows cannot be executed; only the operations within them can be executed. If a workflow is configured such that one operation leads to the chain execution of all other options in a workflow, you can effectively run all operations in the workflow.

You can also execute individual operations within workflows, which may lead to execution of operations in the same or other workflows. That is, if any operations are upstream of other operations in an operation chain, within or outside the workflow, the downstream operations will be kicked off accordingly. In this way, you can effectively run all operations within a project.

This page covers creating, renaming, reordering, and designing workflows.

Create a Workflow

In a new project, the first workflow is already created and open on the design canvas by default. The new workflow shows an operation drop zone, which is a visual representation of where an operation can be placed:

To create additional workflows, click the new workflow icon add along the top of the canvas to create new workflow tabs. When you create a new workflow, its default name is New Workflow. Subsequent new workflows with default names are appended with an incremented number in parentheses:

As you create new workflows, a blank canvas with an operation drop zone is shown, ready for you to design each workflow.

Workflow Actions Menu

After a workflow is created, menu actions for that workflow are accessible from the project pane's Workflows tab (see Workflow Actions Menu in Project Pane Workflows Tab).

Each of these menu actions is available:

Menu Item
Description
deploy Deploy deploys the workflow and its dependencies (see Workflow Deployment).
configurable deploy Configurable Deploy opens the deployment screen, where you can select workflows and operations to deploy (see Workflow Deployment).
rename Rename positions the cursor on the workflow name for you to make any edits as necessary.
view dependencies View Dependencies changes the view in the project pane to display any other parts of the project that the specific workflow is dependent on (see Workflow Dependencies and Deletion).
view logs View Logs opens the operation log screen, which includes logs for any operations contained in the workflow that have been deployed and executed, as well as any operations linked from the workflow that have been deployed and executed (see Operation Logs).
delete Delete permanently deletes the workflow (see Workflow Dependencies and Deletion).

Rename a Workflow

Workflows can be renamed from these locations:

Workflow names within a project must be unique and must not contain forward slashes (/) or colons (:) to be valid.

Reorder Workflows

Workflows can be reordered from the project pane's Workflows tab (see Reorder Operations in Project Pane Workflows Tab).

Design a Workflow

Workflows are designed by placing and configuring operations on the design canvas. Other design canvas elements such as drop zones, notifications, and lines connecting linked operations and notifications help you design workflows (see Design Canvas Elements in Design Canvas).

Other project components may not visually appear on the design canvas but can be used in support of operations. These components, such as activities, scripts, project variables, schedules, and schemas, are reusable across operations and workflows.

As you add operations to a workflow, the layout renders automatically on the design canvas. Each operation is numbered sequentially and automatically organized on the design canvas, vertically stacking below the last operation on the design canvas. The numeric sequence of operations within a workflow is included within the operation title and adjusts automatically if you reorder operations. Likewise, the workflow order and numbering adjusts if workflows are reordered.

Regardless of the order of operations, each operation is at the same hierarchical level. The concept of "parent" and "child" operations applies only to operations that are chained with operation actions. (That is, if the execution of one operation leads to the execution of another operation, the first operation is said to be the parent and the second operation its child.) This relationship is visually indicated by the presence of lines connecting these operations within or outside the workflow.

It is not required for operations within a workflow to be chained with operation actions. You can, for example, create several operations in the same workflow that are not connected by operation actions at all. In this case, the execution of any of these operations does not lead to the execution of the other operations in the workflow, as they are not connected. Instead, you can choose to execute these operations individually, or connect them to operations in another workflow using operation actions.

Example 1

The example workflow below contains three operations: 1.0 Query Magento Products, 1.1 Upsert Postgres Products, and 1.2 Write Product Failure Info to Log. The operation actions connecting these operations are configured such that, if successful, operation 1.0 kicks off operation 1.1; if operation 1.0 fails, operation 1.2 is kicked off. If operation 1.1 is kicked off and is successful, the chain execution is complete; if operation 1.1 is kicked off and fails, operation 1.2 is kicked off.

operation chain script

Example 2

If the operations in the same workflow used in Example 1 were reordered, the same result would be produced. In this case, even though 1.2 Query Magento Products appears as the last operation in the workflow, as long as it is executed first, the other operations in the chain are kicked off accordingly as a result of the configured operation actions.

operation chain script reorder

Example 3

If the operations in the same workflow used in Examples 1 and 2 had their operation actions removed, this would break the chain of operations. You could execute operations 1.0, 1.1, or 1.2 individually, but the execution of any of these would not lead to the execution of any of the others.

operation chain script reorder no chain