Enum Class ExecutionFlag

java.lang.Object
java.lang.Enum<ExecutionFlag>
org.kuali.rice.krms.api.engine.ExecutionFlag
All Implemented Interfaces:
Serializable, Comparable<ExecutionFlag>, Constable

public enum ExecutionFlag extends Enum<ExecutionFlag>
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:
  • Enum Constant Details

    • LOG_EXECUTION

      public static final ExecutionFlag LOG_EXECUTION
      Indicates that the engine should perform default logging by recording each ResultEvent in the EngineResults. Default value is false.
      See Also:
    • CONTEXT_MUST_EXIST

      public static final ExecutionFlag 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

      public static final ExecutionFlag 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

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