🚀 New! Kestra raises $3 million to grow Learn more

This flow will launch a subflow passing parameters, waiting until the end of the flow and gathering the output of a task.

yaml
id: subflow
namespace: io.kestra.demo

description: |
  This flow will launch a subflow passing parameters as `inputs`, wait until the end of the flow and gather the output of a task.

inputs:
  - name: string
    type: STRING

tasks:
  - id: launch
    type: io.kestra.core.tasks.flows.Flow
    namespace: io.kestra.demo
    flowId: switch
    inputs:
      string: "{{ inputs.string }}"
    wait: true
    transmitFailed: true
    outputs:
      extracted: "{{ outputs.first.value ?? outputs.second1.value ?? outputs.third1.value ?? outputs.default.value }}"