Search in sources :

Example 1 with ReportResultDto

use of org.camunda.bpm.engine.rest.dto.history.ReportResultDto in project camunda-bpm-platform by camunda.

the class HistoricProcessInstanceRestServiceImpl method getReportResultAsJson.

protected List<ReportResultDto> getReportResultAsJson(UriInfo uriInfo) {
    List<ReportResult> reports = queryHistoricProcessInstanceReport(uriInfo);
    List<ReportResultDto> result = new ArrayList<ReportResultDto>();
    for (ReportResult report : reports) {
        result.add(ReportResultDto.fromReportResult(report));
    }
    return result;
}
Also used : ReportResultDto(org.camunda.bpm.engine.rest.dto.history.ReportResultDto) ArrayList(java.util.ArrayList) ReportResult(org.camunda.bpm.engine.history.ReportResult)

Aggregations

ArrayList (java.util.ArrayList)1 ReportResult (org.camunda.bpm.engine.history.ReportResult)1 ReportResultDto (org.camunda.bpm.engine.rest.dto.history.ReportResultDto)1