Search in sources :

Example 1 with AddPeopleAssignmentsCommand

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

Aggregations

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