use of org.jbpm.kie.services.impl.admin.commands.ListTaskNotificationsCommand in project jbpm by kiegroup.
the class UserTaskAdminServiceImpl method getTaskNotifications.
@Override
public Collection<TaskNotification> getTaskNotifications(String deploymentId, long taskId, boolean activeOnly) throws TaskNotFoundException {
UserTaskInstanceDesc task = runtimeDataService.getTaskById(taskId);
validateTask(deploymentId, taskId, task);
return userTaskService.execute(task.getDeploymentId(), ProcessInstanceIdContext.get(task.getProcessInstanceId()), new ListTaskNotificationsCommand(identityProvider.getName(), taskId, activeOnly));
}
Aggregations