public virtual CountResultDto getCleanableHistoricProcessInstanceReportCount(UriInfo uriInfo) { CleanableHistoricProcessInstanceReportDto queryDto = new CleanableHistoricProcessInstanceReportDto(objectMapper, uriInfo.QueryParameters); queryDto.ObjectMapper = objectMapper; CleanableHistoricProcessInstanceReport query = queryDto.toQuery(processEngine); long count = query.count(); CountResultDto result = new CountResultDto(); result.Count = count; return(result); }
public virtual IList <CleanableHistoricProcessInstanceReportResultDto> getCleanableHistoricProcessInstanceReport(UriInfo uriInfo, int?firstResult, int?maxResults) { CleanableHistoricProcessInstanceReportDto queryDto = new CleanableHistoricProcessInstanceReportDto(objectMapper, uriInfo.QueryParameters); CleanableHistoricProcessInstanceReport query = queryDto.toQuery(processEngine); IList <CleanableHistoricProcessInstanceReportResult> reportResult; if (firstResult != null || maxResults != null) { reportResult = executePaginatedQuery(query, firstResult, maxResults); } else { reportResult = query.list(); } return(CleanableHistoricProcessInstanceReportResultDto.convert(reportResult)); }