Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5301

Creates a helper to act on the workflow

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.9
    • None
    • None
    • None

          /**
           * Do a workflow action on a content.
           * @param content The content to act on
           * @param actionId The id of the workflow action to do
           * @param inputs The parameters to transmit to the workflow functions. The special key AbstractWorkflowComponent.CONTEXT_PARAMETERS_KEY will be filled with the parent context if null (this means that if your are in a request dispatched, you will automatically get the js parameters).
           * @return The results of the functions
           * @throws WorkflowException If an error occured while doing the action on the workflow
           * @throws AmetysRepositoryException If cannot get the workflow identifier of the content
           */
          public Map<String, Object> doAction(WorkflowAwareContent content, int actionId, Map<String, Object> inputs) throws AmetysRepositoryException, WorkflowException;
      

      Who wants a method to also create contents? or at least to create the inputs in such a case

          [CMS-5301] Creates a helper to act on the workflow

          There are no comments yet on this issue.

            Unassigned Unassigned
            raphael Raphaƫl Franchet
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: