use of org.camunda.bpm.engine.rest.dto.history.batch.CleanableHistoricBatchReportDto in project camunda-bpm-platform by camunda.
the class HistoricBatchRestServiceImpl method getCleanableHistoricBatchesReportCount.
@Override
public CountResultDto getCleanableHistoricBatchesReportCount(UriInfo uriInfo) {
CleanableHistoricBatchReportDto queryDto = new CleanableHistoricBatchReportDto(objectMapper, uriInfo.getQueryParameters());
queryDto.setObjectMapper(objectMapper);
CleanableHistoricBatchReport query = queryDto.toQuery(processEngine);
long count = query.count();
CountResultDto result = new CountResultDto();
result.setCount(count);
return result;
}
use of org.camunda.bpm.engine.rest.dto.history.batch.CleanableHistoricBatchReportDto in project camunda-bpm-platform by camunda.
the class HistoricBatchRestServiceImpl method getCleanableHistoricBatchesReport.
@SuppressWarnings("unchecked")
@Override
public List<CleanableHistoricBatchReportResultDto> getCleanableHistoricBatchesReport(UriInfo uriInfo, Integer firstResult, Integer maxResults) {
CleanableHistoricBatchReportDto queryDto = new CleanableHistoricBatchReportDto(objectMapper, uriInfo.getQueryParameters());
CleanableHistoricBatchReport query = queryDto.toQuery(processEngine);
List<CleanableHistoricBatchReportResult> reportResult;
if (firstResult != null || maxResults != null) {
reportResult = (List<CleanableHistoricBatchReportResult>) executePaginatedQuery(query, firstResult, maxResults);
} else {
reportResult = query.list();
}
return CleanableHistoricBatchReportResultDto.convert(reportResult);
}
Aggregations