Class EvaluateAction
java.lang.Object
org.springframework.webflow.action.AbstractAction
org.springframework.webflow.action.EvaluateAction
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,Action
An action that evaluates an expression and optionally exposes its result.
Delegates to a ResultEventFactory
to determine how to map the evaluation result to an action outcome
Event
.
- Author:
- Keith Donald, Jeremy Grelle
- See Also:
-
Field Summary
Fields inherited from class org.springframework.webflow.action.AbstractAction
logger
-
Constructor Summary
ConstructorDescriptionEvaluateAction
(Expression expression, Expression resultExpression) Create a new evaluate action.EvaluateAction
(Expression expression, Expression resultExpression, ResultEventFactory resultEventFactory) Create a new evaluate action. -
Method Summary
Modifier and TypeMethodDescriptionprotected Event
doExecute
(RequestContext context) Template hook method subclasses should override to encapsulate their specific action execution logic.toString()
Methods inherited from class org.springframework.webflow.action.AbstractAction
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, no, result, result, result, result, success, success, yes
-
Constructor Details
-
EvaluateAction
Create a new evaluate action.- Parameters:
expression
- the expression to evaluate (required)resultExpression
- the expression to evaluate the result (optional)
-
EvaluateAction
public EvaluateAction(Expression expression, Expression resultExpression, ResultEventFactory resultEventFactory) Create a new evaluate action.- Parameters:
expression
- the expression to evaluate (required)resultExpression
- the strategy for how the expression result will be exposed to the flow (optional)resultEventFactory
- the factory that will map the evaluation result to a Web Flow event (optional)
-
-
Method Details
-
doExecute
Description copied from class:AbstractAction
Template hook method subclasses should override to encapsulate their specific action execution logic.- Specified by:
doExecute
in classAbstractAction
- Parameters:
context
- the action execution context, for accessing and setting data in "flow scope" or "request scope"- Returns:
- the action result event
- Throws:
Exception
- an unrecoverable exception occured, either checked or unchecked
-
toString
-