Class Trigger

java.lang.Object
io.kestra.core.models.triggers.TriggerContext
io.kestra.core.models.triggers.Trigger
All Implemented Interfaces:
TenantInterface

public class Trigger extends TriggerContext
  • Constructor Details

    • Trigger

      public Trigger()
  • Method Details

    • uid

      public String uid()
      Overrides:
      uid in class TriggerContext
    • uid

      public static String uid(Trigger trigger)
    • uid

      public static String uid(Execution execution)
    • uid

      public static String uid(Flow flow, AbstractTrigger abstractTrigger)
    • of

      public static Trigger of(Flow flow, AbstractTrigger abstractTrigger)
      Create a new Trigger with no execution information and no evaluation lock.
    • of

      public static Trigger of(TriggerContext triggerContext)
      Create a new Trigger with no execution information and no evaluation lock.
    • of

      public static Trigger of(TriggerContext triggerContext, Execution execution)
      Create a new Trigger with execution information. This is used to lock the trigger while an execution is running, it will also erase the evaluation lock.
    • of

      public static Trigger of(Execution execution, ZonedDateTime date)
      Create a new Trigger with execution information. This is used to update the trigger with the execution information, it will also erase the trigger date.
    • of

      public static Trigger of(TriggerContext triggerContext, ZonedDateTime evaluateRunningDate)
      Create a new Trigger with an evaluate running date. This is used to lock the trigger evaluation.
    • resetExecution

      public Trigger resetExecution()