Search in sources :

Example 1 with RemovePeopleAssignmentsCommand

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));
}
Also used : UserTaskInstanceDesc(org.jbpm.services.api.model.UserTaskInstanceDesc) RemovePeopleAssignmentsCommand(org.jbpm.kie.services.impl.admin.commands.RemovePeopleAssignmentsCommand)

Aggregations

RemovePeopleAssignmentsCommand (org.jbpm.kie.services.impl.admin.commands.RemovePeopleAssignmentsCommand)1 UserTaskInstanceDesc (org.jbpm.services.api.model.UserTaskInstanceDesc)1