Blueprints

Executes flow on flow trigger with ExecutionFlow condition

Source

yaml
id: flow-condition-executionflow
namespace: company.team

tasks:
  - id: hello
    type: io.kestra.plugin.core.log.Log
    message: task of the triggered flow

triggers:
  - id: flow_trigger
    type: io.kestra.plugin.core.trigger.Flow
    conditions:
      - type: io.kestra.plugin.core.condition.ExecutionFlow
        flowId: system_flow
        namespace: system.prod
    states:
      - RUNNING

About this blueprint

Trigger

This flow trigger executes the flow based on the ExecutionFlow condition. When the flow with flowId and namespace assigned in the ExecutionFlow enters the state specified under the states attribute, this flow will get triggered. In this case, when the flow system_flow in the namespace system.prod defined in the ExecutionFlow condition enters the RUNNING state as defined in the states attribute, this flow will get triggered. With ExecutionFlow condition, you can enforce the condition on flow trigger that is based on another flow.

Log

Flow

Execution Flow

More Related Blueprints

New to Kestra?

Use blueprints to kickstart your first workflows.

Get started with Kestra