connect
search

Workflow tasks

Workflow tasks are the tasks used to create dependencies between multiple workflows in more complex scenarios.

Wait For Workflow task

Overview

The Wait For Workflow task is used to search for one or more workflow executions using a filter and wait for the executions to complete before proceeding to the next step.

Input

  • workflow: Workflow - the type of workflow that the step will be waiting for
  • filter : string - the search filter that will be used to return the workflow executions (together with the workflow input); can accept workflow execution runtime variables, such as inputs or outputs from previous steps
  • failOnAnyFailedWorkflow : boolean - default True, will determine if the Wait for Workflow step will fail (or not) if ANY workflow that has been identified in the step has failed
  • waitTimerSeconds : number - default 60 seconds, min 60 seconds, max 4 days (in seconds), the timer that the Wait for Workflow Task will start with, the timer will be reset to its value if a new workflow has been found

Output

The Wait for Workflow task outputs can be referenced in workflows (for example in a Choice condition) using the following naming convention:

$.nameOfStep.property

Where:

  • nameOfStep - the name that we give to the Baton Task in the Workflow Definition
  • property - a property of the Baton Task output.

Example: $.WaitForWorkflow.workflowExecutionIds

  • workflowExecutionIds: Object - the IDs of the workflow executions identified using the workflow and the filter inputs.
  • workflowExecutionOutputs: Object - a collection of outputs from all steps of all workflow executions identified using the workflow and the filter inputs.
Logical ComponentsExporting a workflow definition