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  | 
_workflowProvidermanagerEMPTY_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, initializeserviceenableLogging, getLogger, setupLogger, setupLogger, setupLoggerprivate 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 InitializeWorkflowActionredirector - 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
AbstractWorkflowActionDefault implementation provide the redirector.
_getInputs in class AbstractWorkflowActionredirector - 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 InitializeWorkflowActionobjectModel - 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
AbstractWorkflowActionWorkflowException.Default implementation throw an exception.
_processWorkflowException in class AbstractWorkflowActionredirector - 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.