Class SpelExpressionGuard<S,E>
java.lang.Object
org.springframework.statemachine.guard.SpelExpressionGuard<S,E>
- All Implemented Interfaces:
Guard<S,
E>
Guard
which uses Spring SpEL expression for condition evaluation.-
Constructor Summary
ConstructorDescriptionSpelExpressionGuard
(org.springframework.expression.Expression expression) Instantiates a new spel expression guard. -
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate
(StateContext<S, E> context) Evaluate a guard condition.
-
Constructor Details
-
SpelExpressionGuard
public SpelExpressionGuard(org.springframework.expression.Expression expression) Instantiates a new spel expression guard.- Parameters:
expression
- the expression
-
-
Method Details