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

Flow that is triggered based on the execution of another flow.

yaml
id: trigger-flow
namespace: io.kestra.demo
description: Flow that is triggered based on the execution of another flow.

inputs:
  - name: from-parent
    type: STRING

tasks:
  - id: only-listener
    type: io.kestra.core.tasks.debugs.Return
    format: "childs: {{inputs['from-parent']}}"

triggers:
  - id: listen-flow
    type: io.kestra.core.models.triggers.types.Flow
    inputs:
      from-parent: '{{ outputs.only.value }}'
    conditions:
      - type: io.kestra.core.models.conditions.types.ExecutionStatusCondition
        in:
          - SUCCESS
      - type: io.kestra.core.models.conditions.types.ExecutionFlowCondition
        namespace: io.kestra.demo
        flowId: multiplecondition-flow-a