Package org.kuali.rice.krms.api.engine
Enum Class ExecutionFlag
- All Implemented Interfaces:
Serializable,Comparable<ExecutionFlag>,Constable
Defines various possible flags that can be used to control how the rules
engine executes and performs it's evaluation of rules. These flags are
meant to be set to either true or false. This is done using the
ExecutionOptions that are passed to the engine at execution time.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the selection criteria which is passed to the engine at the time of execution must be able to select a valid context in order for engine execution to proceed.Instructs the engine to evaluate all propositions.Indicates that the engine should perform default logging by recording eachResultEventin theEngineResults. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the default value for the flag if it has not been explicitly set.static ExecutionFlagReturns the enum constant of this class with the specified name.static ExecutionFlag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOG_EXECUTION
Indicates that the engine should perform default logging by recording eachResultEventin theEngineResults. Default value is false.- See Also:
-
CONTEXT_MUST_EXIST
Indicates that the selection criteria which is passed to the engine at the time of execution must be able to select a valid context in order for engine execution to proceed. Default value is false, when false the engine will simply not execute if no valid context can be located for the specified selection criteria.- See Also:
-
EVALUATE_ALL_PROPOSITIONS
Instructs the engine to evaluate all propositions. If this value is set to false, the engine may skip (aka short circuit) propositions that do not influence the overall outcome of the proposition tree.
-
-
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
-
getDefaultValue
public boolean getDefaultValue()Returns the default value for the flag if it has not been explicitly set.- Returns:
- the default value for the flag
-