Package io.kestra.executor
Class FlowTriggerService
java.lang.Object
io.kestra.executor.FlowTriggerService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static class -
Constructor Summary
ConstructorsConstructorDescriptionFlowTriggerService(io.kestra.core.services.ConditionService conditionService, io.kestra.core.runners.RunContextFactory runContextFactory, io.kestra.core.services.FlowService flowService) -
Method Summary
Modifier and TypeMethodDescriptionList<io.kestra.core.models.executions.Execution> computeExecutionsFromFlowTriggerConditions(io.kestra.core.models.executions.Execution execution, io.kestra.core.models.flows.Flow flow) This method computes executions to trigger from flow triggers from a given execution.List<io.kestra.core.models.executions.Execution> computeExecutionsFromFlowTriggerPreconditions(io.kestra.core.models.executions.Execution execution, io.kestra.core.models.flows.Flow flow, io.kestra.core.models.triggers.multipleflows.MultipleConditionStorageInterface multipleConditionStorage) This method computes executions to trigger from flow triggers from a given execution.Stream<io.kestra.plugin.core.trigger.Flow> flowTriggers(io.kestra.core.models.flows.Flow flow) withFlowTriggersOnly(Stream<io.kestra.core.models.flows.FlowWithSource> allFlows)
-
Constructor Details
-
FlowTriggerService
public FlowTriggerService(io.kestra.core.services.ConditionService conditionService, io.kestra.core.runners.RunContextFactory runContextFactory, io.kestra.core.services.FlowService flowService)
-
-
Method Details
-
withFlowTriggersOnly
public Stream<FlowTriggerService.FlowWithFlowTrigger> withFlowTriggersOnly(Stream<io.kestra.core.models.flows.FlowWithSource> allFlows) -
flowTriggers
public Stream<io.kestra.plugin.core.trigger.Flow> flowTriggers(io.kestra.core.models.flows.Flow flow) -
computeExecutionsFromFlowTriggerConditions
public List<io.kestra.core.models.executions.Execution> computeExecutionsFromFlowTriggerConditions(io.kestra.core.models.executions.Execution execution, io.kestra.core.models.flows.Flow flow) This method computes executions to trigger from flow triggers from a given execution. It only computes those depending on standard (non-multiple / non-preconditions) conditions, so it must be used in conjunction withcomputeExecutionsFromFlowTriggerPreconditions(Execution, Flow, MultipleConditionStorageInterface). -
computeExecutionsFromFlowTriggerPreconditions
public List<io.kestra.core.models.executions.Execution> computeExecutionsFromFlowTriggerPreconditions(io.kestra.core.models.executions.Execution execution, io.kestra.core.models.flows.Flow flow, io.kestra.core.models.triggers.multipleflows.MultipleConditionStorageInterface multipleConditionStorage) This method computes executions to trigger from flow triggers from a given execution. It only computes those depending on multiple conditions and preconditions, so it must be used in conjunction withcomputeExecutionsFromFlowTriggerConditions(Execution, Flow).
-