use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.
the class CaseExecutionRestServiceImpl method queryCaseExecutionsCount.
public CountResultDto queryCaseExecutionsCount(CaseExecutionQueryDto queryDto) {
ProcessEngine engine = getProcessEngine();
queryDto.setObjectMapper(getObjectMapper());
CaseExecutionQuery 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 DecisionDefinitionRestServiceImpl method getDecisionDefinitionsCount.
@Override
public CountResultDto getDecisionDefinitionsCount(UriInfo uriInfo) {
DecisionDefinitionQueryDto queryDto = new DecisionDefinitionQueryDto(getObjectMapper(), uriInfo.getQueryParameters());
ProcessEngine engine = getProcessEngine();
DecisionDefinitionQuery 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 ExecutionRestServiceImpl method queryExecutionsCount.
@Override
public CountResultDto queryExecutionsCount(ExecutionQueryDto queryDto) {
ProcessEngine engine = getProcessEngine();
queryDto.setObjectMapper(getObjectMapper());
ExecutionQuery 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 ExternalTaskRestServiceImpl method queryExternalTasksCount.
@Override
public CountResultDto queryExternalTasksCount(ExternalTaskQueryDto queryDto) {
ProcessEngine engine = getProcessEngine();
queryDto.setObjectMapper(getObjectMapper());
ExternalTaskQuery 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 AuthorizationRestServiceImpl method getAuthorizationCount.
protected CountResultDto getAuthorizationCount(AuthorizationQueryDto queryDto) {
AuthorizationQuery query = queryDto.toQuery(getProcessEngine());
long count = query.count();
return new CountResultDto(count);
}
Aggregations