use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.
the class HistoricTaskInstanceRestServiceImpl method queryHistoricTaskInstancesCount.
@Override
public CountResultDto queryHistoricTaskInstancesCount(HistoricTaskInstanceQueryDto queryDto) {
queryDto.setObjectMapper(objectMapper);
HistoricTaskInstanceQuery 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.CountResultDto in project camunda-bpm-platform by camunda.
the class UserOperationLogRestServiceImpl method queryUserOperationCount.
@Override
public CountResultDto queryUserOperationCount(UriInfo uriInfo) {
UserOperationLogQueryDto queryDto = new UserOperationLogQueryDto(objectMapper, uriInfo.getQueryParameters());
UserOperationLogQuery query = queryDto.toQuery(processEngine);
return new CountResultDto(query.count());
}
use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.
the class BatchRestServiceImpl method getStatisticsCount.
public CountResultDto getStatisticsCount(UriInfo uriInfo) {
BatchStatisticsQueryDto queryDto = new BatchStatisticsQueryDto(getObjectMapper(), uriInfo.getQueryParameters());
BatchStatisticsQuery query = queryDto.toQuery(getProcessEngine());
long count = query.count();
return new CountResultDto(count);
}
use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.
the class CaseDefinitionRestServiceImpl method getCaseDefinitionsCount.
@Override
public CountResultDto getCaseDefinitionsCount(UriInfo uriInfo) {
CaseDefinitionQueryDto queryDto = new CaseDefinitionQueryDto(getObjectMapper(), uriInfo.getQueryParameters());
ProcessEngine engine = getProcessEngine();
CaseDefinitionQuery query = queryDto.toQuery(engine);
long count = query.count();
CountResultDto result = new CountResultDto();
result.setCount(count);
return result;
}
Aggregations