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
Core
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.
More Related Blueprints