use of org.camunda.bpm.engine.rest.dto.history.HistoricDecisionInstanceStatisticsDto in project camunda-bpm-platform by camunda.
the class HistoricDecisionStatisticsRestServiceImpl method getDecisionStatistics.
@Override
public List<HistoricDecisionInstanceStatisticsDto> getDecisionStatistics(String decisionRequirementsDefinitionId, String decisionInstanceId) {
List<HistoricDecisionInstanceStatisticsDto> result = new ArrayList<HistoricDecisionInstanceStatisticsDto>();
HistoricDecisionInstanceStatisticsQuery statisticsQuery = processEngine.getHistoryService().createHistoricDecisionInstanceStatisticsQuery(decisionRequirementsDefinitionId);
if (decisionInstanceId != null) {
statisticsQuery.decisionInstanceId(decisionInstanceId);
}
for (HistoricDecisionInstanceStatistics stats : statisticsQuery.list()) {
result.add(HistoricDecisionInstanceStatisticsDto.fromDecisionDefinitionStatistics(stats));
}
return result;
}
Aggregations