Class FlowTriggerService

java.lang.Object
io.kestra.executor.FlowTriggerService

@Singleton public class FlowTriggerService extends Object
  • 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 with computeExecutionsFromFlowTriggerPreconditions(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 with computeExecutionsFromFlowTriggerConditions(Execution, Flow).