Search in sources :

Example 1 with ListTaskNotificationsCommand

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

Aggregations

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