Ejemplo n.º 1
0
        public virtual CountResultDto getCleanableHistoricDecisionInstanceReportCount(UriInfo uriInfo)
        {
            CleanableHistoricDecisionInstanceReportDto queryDto = new CleanableHistoricDecisionInstanceReportDto(objectMapper, uriInfo.QueryParameters);

            queryDto.ObjectMapper = objectMapper;
            CleanableHistoricDecisionInstanceReport query = queryDto.toQuery(processEngine);

            long           count  = query.count();
            CountResultDto result = new CountResultDto();

            result.Count = count;

            return(result);
        }
Ejemplo n.º 2
0
        public virtual IList <CleanableHistoricDecisionInstanceReportResultDto> getCleanableHistoricDecisionInstanceReport(UriInfo uriInfo, int?firstResult, int?maxResults)
        {
            CleanableHistoricDecisionInstanceReportDto queryDto = new CleanableHistoricDecisionInstanceReportDto(objectMapper, uriInfo.QueryParameters);
            CleanableHistoricDecisionInstanceReport    query    = queryDto.toQuery(processEngine);

            IList <CleanableHistoricDecisionInstanceReportResult> reportResult;

            if (firstResult != null || maxResults != null)
            {
                reportResult = executePaginatedQuery(query, firstResult, maxResults);
            }
            else
            {
                reportResult = query.list();
            }

            return(CleanableHistoricDecisionInstanceReportResultDto.convert(reportResult));
        }