use of org.jbpm.kie.services.impl.admin.commands.AddPeopleAssignmentsCommand in project jbpm by kiegroup.
the class UserTaskAdminServiceImpl method addPeopleAssignment.
/*
* Internal methods
*/
protected void addPeopleAssignment(String deploymentId, long taskId, boolean removeExisting, int type, OrganizationalEntity... orgEntities) throws TaskNotFoundException {
UserTaskInstanceDesc task = runtimeDataService.getTaskById(taskId);
validateTask(deploymentId, taskId, task);
userTaskService.execute(task.getDeploymentId(), ProcessInstanceIdContext.get(task.getProcessInstanceId()), new AddPeopleAssignmentsCommand(identityProvider.getName(), taskId, type, orgEntities, removeExisting));
}
Aggregations