Enum Class FunctionType

java.lang.Object
java.lang.Enum<FunctionType>
com.yworkflow.definition.model.FunctionType
All Implemented Interfaces:
Serializable, Comparable<FunctionType>, Constable

public enum FunctionType extends Enum<FunctionType>
Enumeration of function types that define when and where workflow functions are executed. FunctionType provides a comprehensive set of execution points throughout the workflow lifecycle, allowing for fine-grained control over when custom business logic is executed.
Since:
1.0
See Also:
  • Enum Constant Details

    • PreState

      public static final FunctionType PreState
      Function executed before entering a state.
    • PostState

      public static final FunctionType PostState
      Function executed after leaving a state.
    • PreStateTransition

      public static final FunctionType PreStateTransition
      Function executed before a state transition.
    • PostStateTransition

      public static final FunctionType PostStateTransition
      Function executed after a state transition.
    • PreInitialTransition

      public static final FunctionType PreInitialTransition
      Function executed before an initial transition.
    • PostInitialTransition

      public static final FunctionType PostInitialTransition
      Function executed after an initial transition.
    • PreGlobalTransition

      public static final FunctionType PreGlobalTransition
      Function executed before a global transition.
    • PostGlobalTransition

      public static final FunctionType PostGlobalTransition
      Function executed after a global transition.
    • PreCommonTransition

      public static final FunctionType PreCommonTransition
      Function executed before a common transition.
    • PostCommonTransition

      public static final FunctionType PostCommonTransition
      Function executed after a common transition.
    • PreConditionalResult

      public static final FunctionType PreConditionalResult
      Function executed before a conditional result.
    • PostConditionalResult

      public static final FunctionType PostConditionalResult
      Function executed after a conditional result.
    • PreDefaultResult

      public static final FunctionType PreDefaultResult
      Function executed before a default result.
    • PostDefaultResult

      public static final FunctionType PostDefaultResult
      Function executed after a default result.
    • Trigger

      public static final FunctionType Trigger
      Function executed in response to a trigger event.
  • Method Details

    • values

      public static FunctionType[] 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 FunctionType 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