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