use of org.camunda.bpm.engine.rest.dto.history.CleanableHistoricDecisionInstanceReportDto in project camunda-bpm-platform by camunda.
the class HistoricDecisionDefinitionRestServiceImpl method getCleanableHistoricDecisionInstanceReportCount.
@Override
public CountResultDto getCleanableHistoricDecisionInstanceReportCount(UriInfo uriInfo) {
CleanableHistoricDecisionInstanceReportDto queryDto = new CleanableHistoricDecisionInstanceReportDto(objectMapper, uriInfo.getQueryParameters());
queryDto.setObjectMapper(objectMapper);
CleanableHistoricDecisionInstanceReport 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.CleanableHistoricDecisionInstanceReportDto in project camunda-bpm-platform by camunda.
the class HistoricDecisionDefinitionRestServiceImpl method getCleanableHistoricDecisionInstanceReport.
@Override
public List<CleanableHistoricDecisionInstanceReportResultDto> getCleanableHistoricDecisionInstanceReport(UriInfo uriInfo, Integer firstResult, Integer maxResults) {
CleanableHistoricDecisionInstanceReportDto queryDto = new CleanableHistoricDecisionInstanceReportDto(objectMapper, uriInfo.getQueryParameters());
CleanableHistoricDecisionInstanceReport query = queryDto.toQuery(processEngine);
List<CleanableHistoricDecisionInstanceReportResult> reportResult;
if (firstResult != null || maxResults != null) {
reportResult = executePaginatedQuery(query, firstResult, maxResults);
} else {
reportResult = query.list();
}
return CleanableHistoricDecisionInstanceReportResultDto.convert(reportResult);
}
Aggregations