Enum Class TriggerKind

java.lang.Object
java.lang.Enum<TriggerKind>
com.axelor.meta.schema.workflows.TriggerKind
All Implemented Interfaces:
Serializable, Comparable<TriggerKind>, Constable

public enum TriggerKind extends Enum<TriggerKind>
How a workflow fires (<start on>); the bound counterpart of the stored WorkflowTrigger. MANUAL also covers programmatic runs.
  • Enum Constant Details

    • CREATE

      public static final TriggerKind CREATE
    • UPDATE

      public static final TriggerKind UPDATE
    • TIMER

      public static final TriggerKind TIMER
    • MANUAL

      public static final TriggerKind MANUAL
    • MESSAGE

      public static final TriggerKind MESSAGE
      Started by a message another workflow sent; its key names the record, in this definition's model.
  • Method Details

    • values

      public static TriggerKind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TriggerKind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      The lowercase token written in XML and JSON.
    • of

      public static TriggerKind of(String value)
      The kind a stored token names, or null for one this version does not know.
    • dispatchedOnSave

      public boolean dispatchedOnSave()
      Whether a save should look for definitions of this kind; false for kinds something else wakes. A switch with no default, so a new constant must answer.