Search in sources :

Example 1 with UpdateTaskCommand

use of org.jbpm.kie.services.impl.admin.commands.UpdateTaskCommand in project jbpm by kiegroup.

the class UserTaskServiceImpl method updateTask.

@Override
public void updateTask(String deploymentId, Long taskId, String userId, UserTaskInstanceDesc userTask, Map<String, Object> inputData, Map<String, Object> outputData) {
    UserTaskInstanceDesc task = dataService.getTaskById(taskId);
    validateTask(deploymentId, taskId, task);
    UpdateTaskCommand command = new UpdateTaskCommand(taskId, userId, userTask, inputData, outputData);
    execute(task.getDeploymentId(), ProcessInstanceIdContext.get(task.getProcessInstanceId()), command);
}
Also used : UpdateTaskCommand(org.jbpm.kie.services.impl.admin.commands.UpdateTaskCommand) UserTaskInstanceDesc(org.jbpm.services.api.model.UserTaskInstanceDesc)

Aggregations

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