Search in sources :

Example 11 with CountResultDto

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

Example 12 with CountResultDto

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

Example 13 with CountResultDto

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

Example 14 with CountResultDto

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

Example 15 with CountResultDto

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

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