protected internal virtual IList <ReportResultDto> getReportResultAsJson(UriInfo uriInfo) { IList <ReportResult> reports = queryHistoricProcessInstanceReport(uriInfo); IList <ReportResultDto> result = new List <ReportResultDto>(); foreach (ReportResult report in reports) { result.Add(ReportResultDto.fromReportResult(report)); } return(result); }
protected internal virtual IList <ReportResultDto> generateDurationDto <T1>(IList <T1> results) where T1 : org.camunda.bpm.engine.history.ReportResult { IList <ReportResultDto> dtoList = new List <ReportResultDto>(); foreach (ReportResult result in results) { dtoList.Add(ReportResultDto.fromReportResult(result)); } return(dtoList); }