use of org.camunda.bpm.engine.rest.dto.history.CleanableHistoricProcessInstanceReportDto in project camunda-bpm-platform by camunda.
the class HistoricProcessDefinitionRestServiceImpl method getCleanableHistoricProcessInstanceReport.
@Override
public List<CleanableHistoricProcessInstanceReportResultDto> getCleanableHistoricProcessInstanceReport(UriInfo uriInfo, Integer firstResult, Integer maxResults) {
CleanableHistoricProcessInstanceReportDto queryDto = new CleanableHistoricProcessInstanceReportDto(objectMapper, uriInfo.getQueryParameters());
CleanableHistoricProcessInstanceReport query = queryDto.toQuery(processEngine);
List<CleanableHistoricProcessInstanceReportResult> reportResult;
if (firstResult != null || maxResults != null) {
reportResult = executePaginatedQuery(query, firstResult, maxResults);
} else {
reportResult = query.list();
}
return CleanableHistoricProcessInstanceReportResultDto.convert(reportResult);
}
use of org.camunda.bpm.engine.rest.dto.history.CleanableHistoricProcessInstanceReportDto in project camunda-bpm-platform by camunda.
the class HistoricProcessDefinitionRestServiceImpl method getCleanableHistoricProcessInstanceReportCount.
@Override
public CountResultDto getCleanableHistoricProcessInstanceReportCount(UriInfo uriInfo) {
CleanableHistoricProcessInstanceReportDto queryDto = new CleanableHistoricProcessInstanceReportDto(objectMapper, uriInfo.getQueryParameters());
queryDto.setObjectMapper(objectMapper);
CleanableHistoricProcessInstanceReport query = queryDto.toQuery(processEngine);
long count = query.count();
CountResultDto result = new CountResultDto();
result.setCount(count);
return result;
}
Aggregations