Package com.aquima.interactions.rule
Interface ICondition
- All Superinterfaces:
IExpression
,Serializable
- All Known Implementing Classes:
BooleanCondition
,Condition
The condition interface is used for expression objects that evaluate to a boolean value, and hence can be used as a
condition.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ICondition
An inline field for a FALSE condition.static final ICondition
An inline field for a TRUE condition. -
Method Summary
Modifier and TypeMethodDescriptionevaluateConditionWith
(InferenceContext context, BooleanValue unknownValue) Evaluate method that will ensure the result is a boolean value, and use the default value passed if the expression did not yield any result.Methods inherited from interface com.aquima.interactions.rule.IExpression
evaluateWith, getDataType, getExpression, getScopeObjects, isMultivalue
-
Field Details
-
TRUE
An inline field for a TRUE condition. -
FALSE
An inline field for a FALSE condition.
-
-
Method Details
-
evaluateConditionWith
Evaluate method that will ensure the result is a boolean value, and use the default value passed if the expression did not yield any result.- Parameters:
context
- The context that should be used to evaluate the expression with.unknownValue
- The default value that should be returned when the expression does not yield a result.- Returns:
- Boolean value containing the result of the expression evaluation, or the default value.
- Throws:
RuleEngineException
- This exception is thrown when the expression could not be evaluated.
-