use of org.camunda.bpm.engine.history.DurationReportResult in project camunda-bpm-platform by camunda.
the class ReportResultDto method fromReportResult.
public static ReportResultDto fromReportResult(ReportResult reportResult) {
ReportResultDto dto = null;
if (reportResult instanceof DurationReportResult) {
DurationReportResult durationReport = (DurationReportResult) reportResult;
dto = DurationReportResultDto.fromDurationReportResult(durationReport);
}
dto.period = reportResult.getPeriod();
dto.periodUnit = reportResult.getPeriodUnit().toString();
return dto;
}
Aggregations