public class WorkflowAction extends AbstractWorkflowAction
The following parameters are supported:
Map returned is empty on successful transition
and throw an exception on error._workflowProvidermanagerEMPTY_MAP| Constructor and Description |
|---|
WorkflowAction() |
| Modifier and Type | Method and Description |
|---|---|
protected Map |
_act(Redirector redirector,
Map objectModel,
String source,
Parameters parameters,
int actionId,
Map inputs)
Initialize or act on a workflow instance.
|
protected Map |
_getActionResult(Redirector redirector,
Map objectModel,
String source,
Parameters parameters)
Provides the action result after successful workflow transition.
|
protected String |
_getExceptionContext(Map objectModel,
String source,
Parameters parameters)
Provides the exception context for a more friendly error message.
|
protected long |
_getWorkflowId(Map objectModel,
String source,
Parameters parameters)
Provide the workflow id.
|
_getActionId, _getFailConditions, _getInputs, _getWorkflowErrors, _getWorkflowWarns, _processInvalidActionException, _processWorkflowException, act, initializeserviceenableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic WorkflowAction()
protected Map _act(Redirector redirector, Map objectModel, String source, Parameters parameters, int actionId, Map inputs) throws com.opensymphony.workflow.InvalidInputException, com.opensymphony.workflow.WorkflowException
AbstractWorkflowAction_act in class AbstractWorkflowActionredirector - the redirector.objectModel - the current object model.source - the current source.parameters - the current parameters.actionId - the action id to use.inputs - the inputs to usecom.opensymphony.workflow.InvalidInputException - if the action id is not valid.com.opensymphony.workflow.WorkflowException - if the action failed.protected long _getWorkflowId(Map objectModel, String source, Parameters parameters)
Default implementation uses parameter workflowId.
objectModel - the current object model.source - the current source.parameters - the current parameters.protected Map _getActionResult(Redirector redirector, Map objectModel, String source, Parameters parameters)
Default implementation returns a empty Map.
redirector - the redirector.objectModel - the current object model.source - the current source.parameters - the current parameters.protected String _getExceptionContext(Map objectModel, String source, Parameters parameters)
AbstractWorkflowAction_getExceptionContext in class AbstractWorkflowActionobjectModel - the current object model.source - the current source.parameters - the current parameters.