Workflow Elements

Tasks and workflows have several elements in common. When applicable, the task definition for these sections is linked to rather than duplicated.

A workflow is comprised of the following elements:

  • A single, optional input section (identical to the input section within tasks).
  • Any number of workflow execution elements, which include the following:
    • A private declaration (identical to private declarations within tasks).
    • A call statement, which invokes tasks or subworkflows.
    • A scatter statement, which enables parallelized of workflow execution elements across collections.
    • A conditional (if) statement, which enables conditional execution of workflow execution elements.
  • A single, optional output section (identical to the output section within tasks).
  • A single, optional meta section (identical to the meta section within tasks).
  • A single, optional parameter_meta section (identical to the parameter_meta section within tasks).

There is no enforced order for workflow elements.