use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.
the class HistoricExternalTaskLogRestServiceImpl method queryHistoricExternalTaskLogsCount.
@Override
public CountResultDto queryHistoricExternalTaskLogsCount(HistoricExternalTaskLogQueryDto queryDto) {
queryDto.setObjectMapper(objectMapper);
HistoricExternalTaskLogQuery 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 HistoricIdentityLinkLogRestServiceImpl method getHistoricIdentityLinksCount.
@Override
public CountResultDto getHistoricIdentityLinksCount(UriInfo uriInfo) {
HistoricIdentityLinkLogQueryDto queryDto = new HistoricIdentityLinkLogQueryDto(objectMapper, uriInfo.getQueryParameters());
HistoricIdentityLinkLogQuery 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 HistoricIncidentRestServiceImpl method getHistoricIncidentsCount.
@Override
public CountResultDto getHistoricIncidentsCount(UriInfo uriInfo) {
HistoricIncidentQueryDto queryDto = new HistoricIncidentQueryDto(objectMapper, uriInfo.getQueryParameters());
HistoricIncidentQuery 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 JobDefinitionRestServiceImpl method queryJobDefinitionsCount.
public CountResultDto queryJobDefinitionsCount(JobDefinitionQueryDto queryDto) {
queryDto.setObjectMapper(getObjectMapper());
JobDefinitionQuery query = queryDto.toQuery(getProcessEngine());
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 HistoricProcessInstanceRestServiceImpl method queryHistoricProcessInstancesCount.
@Override
public CountResultDto queryHistoricProcessInstancesCount(HistoricProcessInstanceQueryDto queryDto) {
queryDto.setObjectMapper(objectMapper);
HistoricProcessInstanceQuery query = queryDto.toQuery(processEngine);
long count = query.count();
CountResultDto result = new CountResultDto();
result.setCount(count);
return result;
}
Aggregations