public class InitializeContentWorkflowAction extends InitializeWorkflowAction
The following parameters are supported:
Modifier and Type | Field and Description |
---|---|
private static String |
__CONTENT_TYPE_KEY
Constant for storing the content type to use into the transient variables map.
|
private static String |
REQUEST_PARAMETER_PREFIX |
_workflowProvider
manager
EMPTY_MAP
Constructor and Description |
---|
InitializeContentWorkflowAction() |
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<String,Object> |
_getInputs(Redirector redirector,
Map objectModel,
String source,
Parameters parameters)
Provide the inputs to use.
|
protected Map<String,Object> |
_getParameters(Map objectModel)
Return a map of parameters needed by the workflow that will create the content
|
protected String |
_getWorkflowName(Map objectModel,
String source,
Parameters parameters)
Provides the workflow name to use.
|
protected Map |
_processWorkflowException(Redirector redirector,
Map objectModel,
String source,
Parameters parameters,
long actionId,
com.opensymphony.workflow.WorkflowException e)
Called when the current action has thrown a
WorkflowException . |
_getActionResult, _getExceptionContext
_getActionId, _getFailConditions, _getWorkflowErrors, _getWorkflowWarns, _processInvalidActionException, act, initialize
service
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private static final String __CONTENT_TYPE_KEY
private static final String REQUEST_PARAMETER_PREFIX
public InitializeContentWorkflowAction()
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 InitializeWorkflowAction
redirector
- 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 Map<String,Object> _getInputs(Redirector redirector, Map objectModel, String source, Parameters parameters) throws Exception
AbstractWorkflowAction
Default implementation provide the redirector.
_getInputs
in class AbstractWorkflowAction
redirector
- the redirector.objectModel
- the current object model.source
- the current source.parameters
- the current parameters.Exception
- if an error occurs.protected String _getWorkflowName(Map objectModel, String source, Parameters parameters)
InitializeWorkflowAction
_getWorkflowName
in class InitializeWorkflowAction
objectModel
- the current object model.source
- the current source.parameters
- the current parameters.protected Map<String,Object> _getParameters(Map objectModel)
objectModel
- The cocoon object modelprotected Map _processWorkflowException(Redirector redirector, Map objectModel, String source, Parameters parameters, long actionId, com.opensymphony.workflow.WorkflowException e) throws Exception
AbstractWorkflowAction
WorkflowException
.Default implementation throw an exception.
_processWorkflowException
in class AbstractWorkflowAction
redirector
- the redirector.objectModel
- the current object model.source
- the current source.parameters
- the current parameters.actionId
- the invalid action id.e
- the workflow exception.Exception
- in order to stop the current pipeline.