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