use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.
the class VariableInstanceRestServiceImpl method queryVariableInstancesCount.
@Override
public CountResultDto queryVariableInstancesCount(VariableInstanceQueryDto queryDto) {
ProcessEngine engine = getProcessEngine();
queryDto.setObjectMapper(getObjectMapper());
VariableInstanceQuery query = queryDto.toQuery(engine);
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 HistoricActivityInstanceRestServiceImpl method queryHistoricActivityInstancesCount.
@Override
public CountResultDto queryHistoricActivityInstancesCount(HistoricActivityInstanceQueryDto queryDto) {
queryDto.setObjectMapper(objectMapper);
HistoricActivityInstanceQuery 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 HistoricBatchRestServiceImpl method getHistoricBatchesCount.
@Override
public CountResultDto getHistoricBatchesCount(UriInfo uriInfo) {
HistoricBatchQueryDto queryDto = new HistoricBatchQueryDto(objectMapper, uriInfo.getQueryParameters());
HistoricBatchQuery query = queryDto.toQuery(processEngine);
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 HistoricBatchRestServiceImpl method getCleanableHistoricBatchesReportCount.
@Override
public CountResultDto getCleanableHistoricBatchesReportCount(UriInfo uriInfo) {
CleanableHistoricBatchReportDto queryDto = new CleanableHistoricBatchReportDto(objectMapper, uriInfo.getQueryParameters());
queryDto.setObjectMapper(objectMapper);
CleanableHistoricBatchReport 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 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