Search in sources :

Example 16 with CountResultDto

use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.

the class HistoricVariableInstanceRestServiceImpl method queryHistoricVariableInstancesCount.

@Override
public CountResultDto queryHistoricVariableInstancesCount(HistoricVariableInstanceQueryDto queryDto) {
    queryDto.setObjectMapper(objectMapper);
    HistoricVariableInstanceQuery query = queryDto.toQuery(processEngine);
    long count = query.count();
    CountResultDto result = new CountResultDto();
    result.setCount(count);
    return result;
}
Also used : HistoricVariableInstanceQuery(org.camunda.bpm.engine.history.HistoricVariableInstanceQuery) CountResultDto(org.camunda.bpm.engine.rest.dto.CountResultDto)

Example 17 with CountResultDto

use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.

the class HistoricCaseActivityInstanceRestServiceImpl method queryHistoricCaseActivityInstancesCount.

public CountResultDto queryHistoricCaseActivityInstancesCount(HistoricCaseActivityInstanceQueryDto queryDto) {
    HistoricCaseActivityInstanceQuery query = queryDto.toQuery(processEngine);
    long count = query.count();
    return new CountResultDto(count);
}
Also used : CountResultDto(org.camunda.bpm.engine.rest.dto.CountResultDto) HistoricCaseActivityInstanceQuery(org.camunda.bpm.engine.history.HistoricCaseActivityInstanceQuery)

Example 18 with CountResultDto

use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.

the class HistoricCaseInstanceRestServiceImpl method queryHistoricCaseInstancesCount.

public CountResultDto queryHistoricCaseInstancesCount(HistoricCaseInstanceQueryDto queryDto) {
    HistoricCaseInstanceQuery query = queryDto.toQuery(processEngine);
    long count = query.count();
    return new CountResultDto(count);
}
Also used : CountResultDto(org.camunda.bpm.engine.rest.dto.CountResultDto) HistoricCaseInstanceQuery(org.camunda.bpm.engine.history.HistoricCaseInstanceQuery)

Example 19 with CountResultDto

use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.

the class HistoricDecisionInstanceRestServiceImpl method queryHistoricDecisionInstancesCount.

public CountResultDto queryHistoricDecisionInstancesCount(HistoricDecisionInstanceQueryDto queryDto) {
    HistoricDecisionInstanceQuery query = queryDto.toQuery(processEngine);
    long count = query.count();
    return new CountResultDto(count);
}
Also used : CountResultDto(org.camunda.bpm.engine.rest.dto.CountResultDto) HistoricDecisionInstanceQuery(org.camunda.bpm.engine.history.HistoricDecisionInstanceQuery)

Example 20 with CountResultDto

use of org.camunda.bpm.engine.rest.dto.CountResultDto in project camunda-bpm-platform by camunda.

the class HistoricDetailRestServiceImpl method getHistoricDetailsCount.

@Override
public CountResultDto getHistoricDetailsCount(UriInfo uriInfo) {
    HistoricDetailQueryDto queryDto = new HistoricDetailQueryDto(objectMapper, uriInfo.getQueryParameters());
    HistoricDetailQuery query = queryDto.toQuery(processEngine);
    long count = query.count();
    CountResultDto result = new CountResultDto();
    result.setCount(count);
    return result;
}
Also used : HistoricDetailQueryDto(org.camunda.bpm.engine.rest.dto.history.HistoricDetailQueryDto) CountResultDto(org.camunda.bpm.engine.rest.dto.CountResultDto) HistoricDetailQuery(org.camunda.bpm.engine.history.HistoricDetailQuery)

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