public class RuleBookRuleWithFactTypeBuilder<T,U>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ThenRuleBuilder<T,U> |
then(java.util.function.BiConsumer<NameValueReferableTypeConvertibleMap<T>,Result<U>> action)
Adds a 'then' action Consumer that provides both facts and the result to the Rule.
|
ThenRuleBuilder<T,U> |
then(java.util.function.Consumer<NameValueReferableTypeConvertibleMap<T>> action)
Adds a 'then' action Consumer that provides facts to the Rule.
|
UsingRuleBuilder<T,U> |
using(java.lang.String... factNames)
Restricts the facts supplied to the subsequent 'then' based on the fact names supplied.
|
WhenRuleBuilder<T,U> |
when(java.util.function.Predicate<NameValueReferableTypeConvertibleMap<T>> condition)
Specifies the condition for the Rule.
|
public WhenRuleBuilder<T,U> when(java.util.function.Predicate<NameValueReferableTypeConvertibleMap<T>> condition)
condition
- the condition for the Rulepublic UsingRuleBuilder<T,U> using(java.lang.String... factNames)
factNames
- the names of the facts to restrict to the subsequent 'then' actionpublic ThenRuleBuilder<T,U> then(java.util.function.Consumer<NameValueReferableTypeConvertibleMap<T>> action)
action
- the 'then' action to be addedpublic ThenRuleBuilder<T,U> then(java.util.function.BiConsumer<NameValueReferableTypeConvertibleMap<T>,Result<U>> action)
action
- the 'then' action to be added