public class InitializeWorkflowAction extends AbstractWorkflowAction
The following parameters are supported:
Map returned contains the workflow id on successful creation
(workflowId key) and throw an exception on error._workflowProvidermanagerEMPTY_MAP| Constructor and Description |
|---|
InitializeWorkflowAction() |
| 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,
long workflowId)
Provides the action result after successful workflow instance
creation.
|
protected String |
_getExceptionContext(Map objectModel,
String source,
Parameters parameters)
Provides the exception context for a more friendly error message.
|
protected String |
_getWorkflowName(Map objectModel,
String source,
Parameters parameters)
Provides the workflow name to use.
|
_getActionId, _getFailConditions, _getInputs, _getWorkflowErrors, _getWorkflowWarns, _processInvalidActionException, _processWorkflowException, act, initializeserviceenableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic InitializeWorkflowAction()
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 String _getWorkflowName(Map objectModel, String source, Parameters parameters)
objectModel - the current object model.source - the current source.parameters - the current parameters.protected Map _getActionResult(Redirector redirector, Map objectModel, String source, Parameters parameters, long workflowId)
Default implementation provides a singleton Map with
workflowId key and workflow id value.
redirector - the redirector.objectModel - the current object model.source - the current source.parameters - the current parameters.workflowId - the workflow instance id.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.