Class WorkflowAction

    • 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.

        Specified by:
        _act in class AbstractWorkflowAction
        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.
      • _getWorkflowId

        protected long _getWorkflowId​(Map objectModel,
                                      String source,
                                      Parameters parameters)
        Provide the workflow id.

        Default implementation uses parameter workflowId.

        Parameters:
        objectModel - the current object model.
        source - the current source.
        parameters - the current parameters.
        Returns:
        the workflow id.
      • _getActionResult

        protected Map _getActionResult​(Redirector redirector,
                                       Map objectModel,
                                       String source,
                                       Parameters parameters)
        Provides the action result after successful workflow transition.

        Default implementation returns a empty Map.

        Parameters:
        redirector - the redirector.
        objectModel - the current object model.
        source - the current source.
        parameters - the current parameters.
        Returns:
        the action result.