use of org.camunda.bpm.engine.rest.dto.history.HistoricCaseActivityStatisticsDto in project camunda-bpm-platform by camunda.
the class HistoricCaseDefinitionRestServiceImpl method getHistoricCaseActivityStatistics.
public List<HistoricCaseActivityStatisticsDto> getHistoricCaseActivityStatistics(String caseDefinitionId) {
HistoryService historyService = processEngine.getHistoryService();
List<HistoricCaseActivityStatistics> statistics = historyService.createHistoricCaseActivityStatisticsQuery(caseDefinitionId).list();
List<HistoricCaseActivityStatisticsDto> result = new ArrayList<HistoricCaseActivityStatisticsDto>();
for (HistoricCaseActivityStatistics currentStatistics : statistics) {
result.add(HistoricCaseActivityStatisticsDto.fromHistoricCaseActivityStatistics(currentStatistics));
}
return result;
}
Aggregations