Class MultipleCondition
java.lang.Object
io.kestra.core.models.conditions.Condition
io.kestra.core.models.conditions.types.MultipleCondition
- All Implemented Interfaces:
Rethrow.PredicateChecked<ConditionContext,InternalException>
@Plugin(examples=@Example(full=true,title="A flow that is waiting for 2 flows that is successful in 1 days",code={"triggers:"," - id: multiple-listen-flow"," type: io.kestra.core.models.triggers.types.Flow"," conditions:"," - type: io.kestra.core.models.conditions.types.ExecutionStatusCondition"," in:"," - SUCCESS"," - id: multiple"," type: io.kestra.core.models.conditions.types.MultipleCondition"," window: P1D"," windowAdvance: P0D"," conditions:"," flow-a:"," type: io.kestra.core.models.conditions.types.ExecutionFlowCondition"," namespace: io.kestra.demo"," flowId: multiplecondition-flow-a"," flow-b:"," type: io.kestra.core.models.conditions.types.ExecutionFlowCondition"," namespace: io.kestra.demo"," flowId: multiplecondition-flow-b"}))
public class MultipleCondition
extends Condition
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @NotNull @NotBlank @Pattern(regexp="^[a-zA-Z0-9][a-zA-Z0-9_-]*") String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleantest(ConditionContext conditionContext) This conditions will only validate previously calculated value onFlowService#multipleFlowTrigger(Stream, Flow, Execution, MultipleConditionStorageInterface)} and save onMultipleConditionStorageInterfaceby the executor.
-
Field Details
-
id
@NotNull @NotBlank @Pattern(regexp="^[a-zA-Z0-9][a-zA-Z0-9_-]*") @PluginProperty protected @NotNull @NotBlank @Pattern(regexp="^[a-zA-Z0-9][a-zA-Z0-9_-]*") String id
-
-
Constructor Details
-
MultipleCondition
public MultipleCondition()
-
-
Method Details
-
test
This conditions will only validate previously calculated value onFlowService#multipleFlowTrigger(Stream, Flow, Execution, MultipleConditionStorageInterface)} and save onMultipleConditionStorageInterfaceby the executor. The real validation is done here.- Throws:
InternalException
-