As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
List<Task> tasks = taskService.createTaskQuery().taskAssignee(userName).list(); //no, that "9" is not hard coded. tasks.get(9).getId() // 36033 tasks.get(9).getExecutionId // 33107 Task task = historyService.createHistoricTaskInstanceQuery().taskId(36033).singleResult(); task.getExecutionId // 36028