use of org.jbpm.kie.services.impl.admin.commands.CancelTaskDeadlineCommand in project jbpm by kiegroup.
the class UserTaskAdminServiceImpl method cancelNotification.
@Override
public void cancelNotification(String deploymentId, long taskId, long notificationId) throws TaskNotFoundException {
UserTaskInstanceDesc task = runtimeDataService.getTaskById(taskId);
validateTask(deploymentId, taskId, task);
userTaskService.execute(task.getDeploymentId(), ProcessInstanceIdContext.get(task.getProcessInstanceId()), new CancelTaskDeadlineCommand(identityProvider.getName(), taskId, notificationId));
}
use of org.jbpm.kie.services.impl.admin.commands.CancelTaskDeadlineCommand in project jbpm by kiegroup.
the class UserTaskAdminServiceImpl method cancelReassignment.
@Override
public void cancelReassignment(String deploymentId, long taskId, long reassignmentId) throws TaskNotFoundException {
UserTaskInstanceDesc task = runtimeDataService.getTaskById(taskId);
validateTask(deploymentId, taskId, task);
userTaskService.execute(task.getDeploymentId(), ProcessInstanceIdContext.get(task.getProcessInstanceId()), new CancelTaskDeadlineCommand(identityProvider.getName(), taskId, reassignmentId));
}
Aggregations