Record Class WorkflowPlan.StartPlan

java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.StartPlan
Enclosing class:
WorkflowPlan

public static record WorkflowPlan.StartPlan(TriggerKind on, String messageName, Set<String> watch, String when, RepeatPolicy repeat, Integer delay, DelayUnit unit, String next) extends Record
The start node's firing configuration.
  • Constructor Details

    • StartPlan

      public StartPlan(TriggerKind on, String messageName, Set<String> watch, String when, RepeatPolicy repeat, Integer delay, DelayUnit unit, String next)
      Creates an instance of a StartPlan record class.
      Parameters:
      on - the value for the on record component
      messageName - the value for the messageName record component
      watch - the value for the watch record component
      when - the value for the when record component
      repeat - the value for the repeat record component
      delay - the value for the delay record component
      unit - the value for the unit record component
      next - the value for the next record component
  • Method Details

    • watches

      public boolean watches(String field)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • on

      public TriggerKind on()
      Returns the value of the on record component.
      Returns:
      the value of the on record component
    • messageName

      public String messageName()
      Returns the value of the messageName record component.
      Returns:
      the value of the messageName record component
    • watch

      public Set<String> watch()
      Returns the value of the watch record component.
      Returns:
      the value of the watch record component
    • when

      public String when()
      Returns the value of the when record component.
      Returns:
      the value of the when record component
    • repeat

      public RepeatPolicy repeat()
      Returns the value of the repeat record component.
      Returns:
      the value of the repeat record component
    • delay

      public Integer delay()
      Returns the value of the delay record component.
      Returns:
      the value of the delay record component
    • unit

      public DelayUnit unit()
      Returns the value of the unit record component.
      Returns:
      the value of the unit record component
    • next

      public String next()
      Returns the value of the next record component.
      Returns:
      the value of the next record component