Search in sources :

Example 1 with CountResultDto

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;
}
Also used : CountResultDto(org.camunda.bpm.engine.rest.dto.CountResultDto) ProcessEngine(org.camunda.bpm.engine.ProcessEngine) CaseExecutionQuery(org.camunda.bpm.engine.runtime.CaseExecutionQuery)

Example 2 with CountResultDto

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;
}
Also used : DecisionDefinitionQueryDto(org.camunda.bpm.engine.rest.dto.repository.DecisionDefinitionQueryDto) DecisionDefinitionQuery(org.camunda.bpm.engine.repository.DecisionDefinitionQuery) CountResultDto(org.camunda.bpm.engine.rest.dto.CountResultDto) ProcessEngine(org.camunda.bpm.engine.ProcessEngine)

Example 3 with CountResultDto

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;
}
Also used : CountResultDto(org.camunda.bpm.engine.rest.dto.CountResultDto) ExecutionQuery(org.camunda.bpm.engine.runtime.ExecutionQuery) ProcessEngine(org.camunda.bpm.engine.ProcessEngine)

Example 4 with CountResultDto

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;
}
Also used : ExternalTaskQuery(org.camunda.bpm.engine.externaltask.ExternalTaskQuery) CountResultDto(org.camunda.bpm.engine.rest.dto.CountResultDto) ProcessEngine(org.camunda.bpm.engine.ProcessEngine)

Example 5 with CountResultDto

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);
}
Also used : AuthorizationQuery(org.camunda.bpm.engine.authorization.AuthorizationQuery) CountResultDto(org.camunda.bpm.engine.rest.dto.CountResultDto)

Aggregations

CountResultDto (org.camunda.bpm.engine.rest.dto.CountResultDto)39 ProcessEngine (org.camunda.bpm.engine.ProcessEngine)14 HistoricProcessInstanceQuery (org.camunda.bpm.engine.history.HistoricProcessInstanceQuery)2 AuthorizationQuery (org.camunda.bpm.engine.authorization.AuthorizationQuery)1 BatchQuery (org.camunda.bpm.engine.batch.BatchQuery)1 BatchStatisticsQuery (org.camunda.bpm.engine.batch.BatchStatisticsQuery)1 HistoricBatchQuery (org.camunda.bpm.engine.batch.history.HistoricBatchQuery)1 ExternalTaskQuery (org.camunda.bpm.engine.externaltask.ExternalTaskQuery)1 CleanableHistoricBatchReport (org.camunda.bpm.engine.history.CleanableHistoricBatchReport)1 CleanableHistoricCaseInstanceReport (org.camunda.bpm.engine.history.CleanableHistoricCaseInstanceReport)1 CleanableHistoricDecisionInstanceReport (org.camunda.bpm.engine.history.CleanableHistoricDecisionInstanceReport)1 CleanableHistoricProcessInstanceReport (org.camunda.bpm.engine.history.CleanableHistoricProcessInstanceReport)1 HistoricActivityInstanceQuery (org.camunda.bpm.engine.history.HistoricActivityInstanceQuery)1 HistoricCaseActivityInstanceQuery (org.camunda.bpm.engine.history.HistoricCaseActivityInstanceQuery)1 HistoricCaseInstanceQuery (org.camunda.bpm.engine.history.HistoricCaseInstanceQuery)1 HistoricDecisionInstanceQuery (org.camunda.bpm.engine.history.HistoricDecisionInstanceQuery)1 HistoricDetailQuery (org.camunda.bpm.engine.history.HistoricDetailQuery)1 HistoricExternalTaskLogQuery (org.camunda.bpm.engine.history.HistoricExternalTaskLogQuery)1 HistoricIdentityLinkLogQuery (org.camunda.bpm.engine.history.HistoricIdentityLinkLogQuery)1 HistoricIncidentQuery (org.camunda.bpm.engine.history.HistoricIncidentQuery)1