Package org.rossonet.ext.rules.jexl
Class JexlRule
- java.lang.Object
-
- org.rossonet.ext.rules.core.BasicRule
-
- org.rossonet.ext.rules.jexl.JexlRule
-
-
Field Summary
-
Fields inherited from class org.rossonet.ext.rules.core.BasicRule
description, name, priority
-
Fields inherited from interface org.rossonet.ext.rules.api.Rule
DEFAULT_DESCRIPTION, DEFAULT_NAME, DEFAULT_PRIORITY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JexlRuledescription(java.lang.String description)booleanevaluate(Facts facts)This method implements the rule's condition(s).voidexecute(Facts facts)This method implements the rule's action(s).JexlRulename(java.lang.String name)JexlRulepriority(int priority)JexlRulethen(java.lang.String action)JexlRulewhen(java.lang.String condition)-
Methods inherited from class org.rossonet.ext.rules.core.BasicRule
compareTo, equals, getDescription, getName, getPriority, hashCode, setDescription, setPriority, toString
-
-
-
-
Method Detail
-
description
public JexlRule description(java.lang.String description)
-
evaluate
public boolean evaluate(Facts facts)
Description copied from class:BasicRuleThis method implements the rule's condition(s). Implementations should handle any runtime exception and return true/false accordingly
-
execute
public void execute(Facts facts) throws java.lang.Exception
Description copied from class:BasicRuleThis method implements the rule's action(s).
-
name
public JexlRule name(java.lang.String name)
-
priority
public JexlRule priority(int priority)
-
then
public JexlRule then(java.lang.String action)
-
when
public JexlRule when(java.lang.String condition)
-
-