public interface Decision<T,U> extends Rule<T>
| Modifier and Type | Method and Description |
|---|---|
U |
getResult()
The
getResult() method returns the stored result from the Decision
The value may be null. |
void |
setResult(Result<U> result)
The
setResult() method initializes the stored result; useful for aggregation/chaining of a result. |
Decision<T,U> |
then(java.util.function.BiFunction<FactMap<T>,Result<U>,RuleState> action)
The then method specifies the action taken if
when() evaluates to true. |
Decision<T,U> then(java.util.function.BiFunction<FactMap<T>,Result<U>,RuleState> action)
when() evaluates to true.
The execution of this 'then' takes precedence over then(Function) if both exist.action - the action to be performedRule objectU getResult()
getResult() method returns the stored result from the Decision
The value may be null.