-
Improvement
-
Resolution: Fixed
-
Major
-
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