Enum Class WfTransitionCondition

java.lang.Object
java.lang.Enum<WfTransitionCondition>
mc.core.model.system.WfTransitionCondition
All Implemented Interfaces:
Serializable, Comparable<WfTransitionCondition>, Constable

public enum WfTransitionCondition extends Enum<WfTransitionCondition>
Transition conditions are for dynamic workflow transition control. WfTransitionCondition defines the system predefined conditions:
CONDITION_SUCCESS, CONDITION_ERROR, CONDITION_BREAK, CONDITION_REPEAT, CONDITION_RESTART.
Custom conditions can be added by derived action classes. The condition identifier string given to the constructor of a custom WfTransitionCondition must match the string configured with the WfTransitionType.

Created on 04.11.2004
Remodeled for mc4 on 19.12.2005

  • Enum Constant Details

    • SUCCESS

      public static final WfTransitionCondition SUCCESS
      signals that action finished successfully. default condition if no Exception is thrown by action. can also be set explicit by action. default behaviour continues with next configured action, if any.
    • ERROR

      public static final WfTransitionCondition ERROR
      signals that action terminated with error. default condition if Exception (ActionExecutionException or CriticalException) is thrown by action. can also be set explicit by action. default behaviour aborts the workflow with error.
    • BREAK

      public static final WfTransitionCondition BREAK
      signals that the workflow should stop after the current action. must be set explicit by action. default behaviour ends the workflow with success.
    • REPEAT

      public static final WfTransitionCondition REPEAT
      signals that the workflow should repeat the current action. must be set explicit by action. default behaviour repeats the current action.
    • RESTART

      public static final WfTransitionCondition RESTART
      signals that the workflow should start from the beginning. must be set explicit by action. default behaviour sets the initial action as the next action.
    • CUSTOM

      public static final WfTransitionCondition CUSTOM
      APPLICATION CUSTOM CONDITIONS
  • Method Details

    • values

      public static WfTransitionCondition[] 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 WfTransitionCondition 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
    • setConditionConstant

      public void setConditionConstant(String customCondition)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<WfTransitionCondition>