Search in sources :

Example 36 with CountResultDto

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

Example 37 with CountResultDto

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

Example 38 with CountResultDto

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

Example 39 with CountResultDto

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

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