@PUT @Path("{taskId}/reassign") @Consumes public Response reassignTask(@PathParam("taskId") String taskId, @QueryParam("actors") List<String> actors, @QueryParam("comment") String comment) { Framework.getService(DocumentRoutingService.class).reassignTask(getContext().getCoreSession(), taskId, actors, comment); return Response.ok().status(Status.OK).build(); }
/** * @since 5.7.3 */ public String reassignTask(TaskInfo taskInfo) { try { Framework.getLocalService(DocumentRoutingService.class).reassignTask( documentManager, taskInfo.getTaskId(), taskInfo.getActors(), taskInfo.getComment()); Events.instance().raiseEvent( TaskEventNames.WORKFLOW_TASK_REASSIGNED); } catch (DocumentRouteException e) { log.error(e); facesMessages.add(StatusMessage.Severity.ERROR, messages.get("workflow.feedback.error.taskEnded")); } return null; }