description, name, priorityDEFAULT_DESCRIPTION, DEFAULT_NAME, DEFAULT_PRIORITY| Constructor and Description |
|---|
MVELRule()
Create a new MVEL rule.
|
MVELRule(org.mvel2.ParserContext parserContext)
Create a new MVEL rule.
|
| Modifier and Type | Method and Description |
|---|---|
MVELRule |
description(java.lang.String description)
Set rule description.
|
boolean |
evaluate(Facts facts) |
void |
execute(Facts facts) |
MVELRule |
name(java.lang.String name)
Set rule name.
|
MVELRule |
priority(int priority)
Set rule priority.
|
MVELRule |
then(java.lang.String action)
Add an action specified as an MVEL expression to the rule.
|
MVELRule |
when(java.lang.String condition)
Specify the rule's condition as MVEL expression.
|
compareTo, equals, getDescription, getName, getPriority, hashCode, setDescription, setPriority, toStringpublic MVELRule()
public MVELRule(org.mvel2.ParserContext parserContext)
parserContext - used to parse condition/action expressionspublic MVELRule name(java.lang.String name)
name - of the rulepublic MVELRule description(java.lang.String description)
description - of the rulepublic MVELRule priority(int priority)
priority - of the rulepublic MVELRule when(java.lang.String condition)
condition - of the rulepublic MVELRule then(java.lang.String action)
action - to add to the rulepublic boolean evaluate(Facts facts)
Copyright © 2020. All Rights Reserved.