Interface EvaluationCondition

All Known Implementing Classes:
AbstractCondition

public interface EvaluationCondition
Interface for a condition that can be evaluated against facts. Condition evaluates to TRUE or FALSE For example, for an EqualCondition the condition might look like this: role[*].Role Name EQUAL "MyRole2" And the facts might contain: role[MyRole1].Role Name = MyRole1 role[MyRole2].Role Name = MyRole2 role[MyRole3].Role Name = MyRole3
  • Method Details

    • isTrue

      boolean isTrue(ValueObject inputVO, Map<String,Object> outputVO, boolean genOutput, boolean stopOnFirstMatch)
      Evaluate the condition against the facts (the inputVO).
      Parameters:
      inputVO - - Set of facts to evaluate against
      outputVO - - Map that will contain output if genOutput == true
      genOutput - - Flag indicating if output is to be generated during evaluation
      stopOnFirstMatch - - Flag indicating if we should stop on first match. I.e. short-circuit If true then second condition in an AND will not be evaluated if first condition is false and second condition in an OR will not be evaluated if first condition is true If false then second condition in an AND will be evaluated even if first condition is false and second condition in an OR will be evaluated even if first condition is true
      Returns:
      - true if a match is found, false if not
    • getRuleName

      String getRuleName()
    • setRuleName

      void setRuleName(String ruleName)
    • convertToString

      String convertToString()