The Workflow YAML
contains all the information about the Workflow. Its name, description, runner, etc. It also includes a list of the Workflow’s Steps, and each step has a name, action, inputs, and a connection.
YAML
format representation which looks like this:
YAML
. These attributes are present in the Workflow YAML
file:
name
- Name of the Workflow.
type
- Can be either a Flow or Subflow Workflow.
Workflow_type
- The Workflow type represents how the Workflow will be used: on_demand
, event
or scheduled
active
- True while the Workflow is running, false otherwise.
desc
- Description of the Workflow.
connections
- The Workflow’s connection, in the following format: connection-type:connection-name
.
workflow
- The workflow representation. Workflow is built by sections
that contains a name
and steps
steps
- There are two types of steps: Action and Text. Each type contains different attributes: Action
action
- The full name of the action.
id
- ID of the step.
name
- Name of the step.
desc
- Description of the step.
inputs
- The Action’s inputs, in the following format:input-field-name:value
connections
- The connection of the step, in the following format: connection-type: connection-name
.
steps
- Flow Control actions such as internal.for
iterates over all the steps
and executes them.
transitions
- Flow control actions such as internal.if
contains the transitions
field built as following:
steps
branches will execute depending on the evaluated condition, which is provided on the if
action.
Text
text
- Free text. (this is unrelated to the steps attribute.)
counting_steps
- The number of steps in the Workflow.