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.
HistoryService historyService = processEngine.getHistoryService(); NativeHistoricTaskInstanceQuery taskQuery = historyService.createNativeHistoricTaskInstanceQuery(); ManagementService managementService = processEngine.getManagementService(); taskQuery.sql("SELECT * FROM " + managementService.getTableName(HistoricTaskInstance.class) + " WHERE start_time_>=#{startTime} AND end_time_<=#{endTime}"); taskQuery.parameter("startTime", startTime).parameter("endTime", endTime); List<HistoricTaskInstance> tasksCompleted = taskQuery.list();