description, name, priorityDEFAULT_DESCRIPTION, DEFAULT_NAME, DEFAULT_PRIORITY| Constructor and Description |
|---|
SpELRule()
Create a new SpEL rule.
|
SpELRule(org.springframework.expression.BeanResolver beanResolver)
Create a new SpEL rule.
|
SpELRule(org.springframework.expression.ParserContext parserContext)
Create a new SpEL rule.
|
SpELRule(org.springframework.expression.ParserContext parserContext,
org.springframework.expression.BeanResolver beanResolver)
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 |
when(java.lang.String condition)
Specify the rule's condition as SpEL expression.
|
compareTo, equals, getDescription, getName, getPriority, hashCode, setDescription, setPriority, toStringpublic SpELRule()
public SpELRule(org.springframework.expression.ParserContext parserContext)
parserContext - used when parsing expressionspublic SpELRule(org.springframework.expression.BeanResolver beanResolver)
beanResolver - used to resolve bean references in expressionspublic SpELRule(org.springframework.expression.ParserContext parserContext,
org.springframework.expression.BeanResolver beanResolver)
parserContext - used when parsing expressionsbeanResolver - used to resolve bean references in expressionspublic 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 then(java.lang.String action)
action - to add to the rulepublic boolean evaluate(Facts facts)
Copyright © 2020. All Rights Reserved.