Package mc.core.model.system
Enum Class WfTransitionCondition
- All Implemented Interfaces:
Serializable,Comparable<WfTransitionCondition>,Constable
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.
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionsignals that the workflow should stop after the current action.APPLICATION CUSTOM CONDITIONSsignals that action terminated with error.signals that the workflow should repeat the current action.signals that the workflow should start from the beginning.signals that action finished successfully. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetConditionConstant(String customCondition) toString()static WfTransitionConditionReturns the enum constant of this class with the specified name.static WfTransitionCondition[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
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
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
signals that the workflow should stop after the current action. must be set explicit by action. default behaviour ends the workflow with success. -
REPEAT
signals that the workflow should repeat the current action. must be set explicit by action. default behaviour repeats the current action. -
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
APPLICATION CUSTOM CONDITIONS
-
-
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
-
setConditionConstant
-
toString
- Overrides:
toStringin classEnum<WfTransitionCondition>
-