public class EvaluateAction extends AbstractAction
Delegates to a ResultEventFactory
to determine how to map the evaluation result to an action outcome
Event
.
Expression
,
ResultEventFactory
logger
Constructor and Description |
---|
EvaluateAction(Expression expression,
Expression resultExpression)
Create a new evaluate action.
|
EvaluateAction(Expression expression,
Expression resultExpression,
ResultEventFactory resultEventFactory)
Create a new evaluate action.
|
Modifier and Type | Method and Description |
---|---|
protected Event |
doExecute(RequestContext context)
Template hook method subclasses should override to encapsulate their specific action execution logic.
|
java.lang.String |
toString() |
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, no, result, result, result, result, success, success, yes
public EvaluateAction(Expression expression, Expression resultExpression)
expression
- the expression to evaluate (required)resultExpression
- the expression to evaluate the result (optional)public EvaluateAction(Expression expression, Expression resultExpression, ResultEventFactory resultEventFactory)
expression
- the expression to evaluate (required)resultExpression
- the result expression to evaluate (optional)resultEventFactory
- the factory that will map the evaluation result to a Web Flow event (optional)protected Event doExecute(RequestContext context) throws java.lang.Exception
AbstractAction
doExecute
in class AbstractAction
context
- the action execution context, for accessing and setting data in "flow scope" or "request scope"java.lang.Exception
- an unrecoverable exception occured, either checked or uncheckedpublic java.lang.String toString()
toString
in class java.lang.Object