Package org.camunda.bpm.engine.impl
Class HistoricActivityStatisticsQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<HistoricActivityStatisticsQuery,HistoricActivityStatistics>
org.camunda.bpm.engine.impl.HistoricActivityStatisticsQueryImpl
- All Implemented Interfaces:
Serializable,HistoricActivityStatisticsQuery,Command<Object>,Query<HistoricActivityStatisticsQuery,HistoricActivityStatistics>
public class HistoricActivityStatisticsQueryImpl
extends AbstractQuery<HistoricActivityStatisticsQuery,HistoricActivityStatistics>
implements HistoricActivityStatisticsQuery
- Author:
- Roman Smirnov
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dateprotected Dateprotected booleanprotected booleanprotected booleanprotected booleanprotected Stringprotected String[]protected Dateprotected DateFields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validatorsFields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck -
Constructor Summary
ConstructorsConstructorDescriptionHistoricActivityStatisticsQueryImpl(String processDefinitionId, CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidlongexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.finishedAfter(Date date) Only select historic activities of process instances that were finished after the given date.finishedBefore(Date date) Only select historic activities of process instances that were finished before the given date.String[]Include an aggregation of canceled instances in the result.Include an aggregation of instances, which complete a scope (ie.Include an aggregation of finished instances in the result.Include an aggregation of the incidents in the result.booleanbooleanbooleanbooleanOrder by activity id (needs to be followed byQuery.asc()orQuery.desc()).processInstanceIdIn(String... processInstanceIds) Only select historic activities of process instances with the given IDsstartedAfter(Date date) Only select historic activities of process instances that were started after the given date.startedBefore(Date date) Only select historic activities of process instances that were started before the given date.Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeDeploymentIdMappingsList, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validateMethods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheckMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
processDefinitionId
-
includeFinished
protected boolean includeFinished -
includeCanceled
protected boolean includeCanceled -
includeCompleteScope
protected boolean includeCompleteScope -
includeIncidents
protected boolean includeIncidents -
startedBefore
-
startedAfter
-
finishedBefore
-
finishedAfter
-
processInstanceIds
-
-
Constructor Details
-
HistoricActivityStatisticsQueryImpl
public HistoricActivityStatisticsQueryImpl(String processDefinitionId, CommandExecutor commandExecutor)
-
-
Method Details
-
includeFinished
Description copied from interface:HistoricActivityStatisticsQueryInclude an aggregation of finished instances in the result.- Specified by:
includeFinishedin interfaceHistoricActivityStatisticsQuery
-
includeCanceled
Description copied from interface:HistoricActivityStatisticsQueryInclude an aggregation of canceled instances in the result.- Specified by:
includeCanceledin interfaceHistoricActivityStatisticsQuery
-
includeCompleteScope
Description copied from interface:HistoricActivityStatisticsQueryInclude an aggregation of instances, which complete a scope (ie. in bpmn manner: an activity which consumed a token and did not produced a new one), in the result.- Specified by:
includeCompleteScopein interfaceHistoricActivityStatisticsQuery
-
includeIncidents
Description copied from interface:HistoricActivityStatisticsQueryInclude an aggregation of the incidents in the result.- Specified by:
includeIncidentsin interfaceHistoricActivityStatisticsQuery
-
startedAfter
Description copied from interface:HistoricActivityStatisticsQueryOnly select historic activities of process instances that were started after the given date.- Specified by:
startedAfterin interfaceHistoricActivityStatisticsQuery
-
startedBefore
Description copied from interface:HistoricActivityStatisticsQueryOnly select historic activities of process instances that were started before the given date.- Specified by:
startedBeforein interfaceHistoricActivityStatisticsQuery
-
finishedAfter
Description copied from interface:HistoricActivityStatisticsQueryOnly select historic activities of process instances that were finished after the given date.- Specified by:
finishedAfterin interfaceHistoricActivityStatisticsQuery
-
finishedBefore
Description copied from interface:HistoricActivityStatisticsQueryOnly select historic activities of process instances that were finished before the given date.- Specified by:
finishedBeforein interfaceHistoricActivityStatisticsQuery
-
processInstanceIdIn
Description copied from interface:HistoricActivityStatisticsQueryOnly select historic activities of process instances with the given IDs- Specified by:
processInstanceIdInin interfaceHistoricActivityStatisticsQuery
-
orderByActivityId
Description copied from interface:HistoricActivityStatisticsQueryOrder by activity id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityIdin interfaceHistoricActivityStatisticsQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<HistoricActivityStatisticsQuery,HistoricActivityStatistics>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<HistoricActivityStatisticsQuery,HistoricActivityStatistics> page- used if the results must be paged. If null, no paging will be applied.
-
checkQueryOk
protected void checkQueryOk()- Overrides:
checkQueryOkin classAbstractQuery<HistoricActivityStatisticsQuery,HistoricActivityStatistics>
-
getProcessDefinitionId
-
isIncludeFinished
public boolean isIncludeFinished() -
isIncludeCanceled
public boolean isIncludeCanceled() -
isIncludeCompleteScope
public boolean isIncludeCompleteScope() -
getProcessInstanceIds
-
isIncludeIncidents
public boolean isIncludeIncidents()
-