public interface EvaluationCondition
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRuleName() |
boolean |
isTrue(ValueObject inputVO,
java.util.Map outputVO,
boolean genOutput,
boolean stopOnFirstMatch)
Evaluate the condition against the facts (the inputVO).
|
void |
setRuleName(java.lang.String ruleName) |
boolean isTrue(ValueObject inputVO, java.util.Map outputVO, boolean genOutput, boolean stopOnFirstMatch)
inputVO
- - Set of facts to evaluate againstoutputVO
- - Map that will contain output if genOutput == truegenOutput
- - Flag indicating if output is to be generated during evaluationstopOnFirstMatch
- - 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 truejava.lang.String getRuleName()
void setRuleName(java.lang.String ruleName)