Class InitializeContentWorkflowAction

    • Method Detail

      • _act

        protected Map _act​(Redirector redirector,
                           Map objectModel,
                           String source,
                           Parameters parameters,
                           int actionId,
                           Map inputs)
                    throws com.opensymphony.workflow.InvalidInputException,
                           com.opensymphony.workflow.WorkflowException
        Description copied from class: AbstractWorkflowAction
        Initialize or act on a workflow instance.

        Overrides:
        _act in class InitializeWorkflowAction
        Parameters:
        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 use
        Returns:
        the action result.
        Throws:
        com.opensymphony.workflow.InvalidInputException - if the action id is not valid.
        com.opensymphony.workflow.WorkflowException - if the action failed.
      • _getParameters

        protected Map<String,​Object_getParameters​(Map objectModel)
        Return a map of parameters needed by the workflow that will create the content
        Parameters:
        objectModel - The cocoon object model
        Returns:
        the map with parameters
      • _processWorkflowException

        protected Map _processWorkflowException​(Redirector redirector,
                                                Map objectModel,
                                                String source,
                                                Parameters parameters,
                                                long actionId,
                                                com.opensymphony.workflow.WorkflowException e)
                                         throws Exception
        Description copied from class: AbstractWorkflowAction
        Called when the current action has thrown a WorkflowException.

        Default implementation throw an exception.

        Overrides:
        _processWorkflowException in class AbstractWorkflowAction
        Parameters:
        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.
        Returns:
        the action result.
        Throws:
        Exception - in order to stop the current pipeline.