Package com.axelor.meta.schema.workflows
Enum Class TriggerKind
- All Implemented Interfaces:
Serializable,Comparable<TriggerKind>,Constable
How a workflow fires (
<start on>); the bound counterpart of the stored WorkflowTrigger. MANUAL also covers programmatic runs.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether a save should look for definitions of this kind; false for kinds something else wakes.getValue()The lowercase token written in XML and JSON.static TriggerKindThe kind a stored token names, or null for one this version does not know.static TriggerKindReturns the enum constant of this class with the specified name.static TriggerKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE
-
UPDATE
-
TIMER
-
MANUAL
-
MESSAGE
Started by a message another workflow sent; its key names the record, in this definition's model.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
The lowercase token written in XML and JSON. -
of
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.
-