Package org.camunda.bpm.engine.impl
Class HistoricCaseInstanceQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<T,U>
org.camunda.bpm.engine.impl.AbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance>
org.camunda.bpm.engine.impl.HistoricCaseInstanceQueryImpl
- All Implemented Interfaces:
Serializable,HistoricCaseInstanceQuery,Command<Object>,Query<HistoricCaseInstanceQuery,HistoricCaseInstance>
public class HistoricCaseInstanceQueryImpl
extends AbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance>
implements HistoricCaseInstanceQuery
- Author:
- Sebastian Menski
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected String[]protected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Dateprotected Dateprotected Dateprotected Dateprotected Stringprotected booleanprotected Booleanprotected Integerprotected Stringprotected Stringprotected Stringprotected Stringprotected String[]Fields inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
queryVariableValues, variableNamesIgnoreCase, variableValuesIgnoreCaseFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactive()Only select historic case instances which are activecaseActivityIdIn(String... caseActivityIds) Only selects historic case instances with historic case activity instances in at least one of the given case activity ids.caseDefinitionId(String caseDefinitionId) Only select historic case instances for the given case definitioncaseDefinitionKey(String caseDefinitionKey) Only select historic case instances that are defined by a case definition with the given key.caseDefinitionKeyNotIn(List<String> caseDefinitionKeys) Only select historic case instances that don't have a case definition of which the key is present in the given listcaseDefinitionName(String caseDefinitionName) Only select historic case instances that are defined by a case definition with the given name.caseDefinitionNameLike(String nameLike) Only select historic case instances that are defined by case definition which name is like the given value.caseInstanceBusinessKey(String businessKey) Only select historic case instances with the given business keycaseInstanceBusinessKeyLike(String businessKeyLike) Only select historic case instances which had a business key like the given value.caseInstanceId(String caseInstanceId) Only select historic case instances with the given case instance id.caseInstanceIds(Set<String> caseInstanceIds) Only select historic case instances whose id is in the given set of ids.closed()Only select historic case instances which are closedclosedAfter(Date date) Only select historic case instances that were closed after the given date.closedBefore(Date date) Only select historic case instances that were closed before the given date.Only select historic case instances which are completedcreatedAfter(Date date) Only select historic case instances that were created after the given date.createdBefore(Date date) Only select historic case instances that were created before the given date.Only select historic case instance that are created by the given user.longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.failed()protected booleanWhether or not the query has excluding conditions.Only select historic case instance that are not yet closed.Order by the case definition id (needs to be followed byQuery.asc()orQuery.desc()).Order by the business key (needs to be followed byQuery.asc()orQuery.desc()).Order by the close time (needs to be followed byQuery.asc()orQuery.desc()).Order by the create time (needs to be followed byQuery.asc()orQuery.desc()).Order by the duration of the case instance (needs to be followed byQuery.asc()orQuery.desc()).Order by the case instance id (needs to be followed byQuery.asc()orQuery.desc()).Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).voidsetSuperCaseInstanceId(String superCaseInstanceId) subCaseInstanceId(String subCaseInstanceId) Only select historic case instances having a sub case instance with the given case instance id.subProcessInstanceId(String subProcessInstanceId) Only select historic case instances having a sub process instance with the given process instance id.superCaseInstanceId(String superCaseInstanceId) Only select historic case instances started by the given case instance.superProcessInstanceId(String superProcessInstanceId) Only select historic case instances started by the given process instance.tenantIdIn(String... tenantIds) Only select historic case instances with one of the given tenant ids.Only select historic case instances which are terminatedOnly selects historic case instances which have no tenant id.Methods inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
addVariable, createQueryVariableValue, ensureVariablesInitialized, getQueryVariableValues, isVariableNamesIgnoreCase, isVariableValuesIgnoreCase, matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, validateVariable, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals, variableValueNotLikeMethods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeDeploymentIdMappingsList, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, 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.history.HistoricCaseInstanceQuery
matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals, variableValueNotLikeMethods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
caseInstanceId
-
caseInstanceIds
-
caseDefinitionId
-
caseDefinitionName
-
caseDefinitionNameLike
-
businessKey
-
businessKeyLike
-
state
-
notClosed
-
createdBy
-
superCaseInstanceId
-
subCaseInstanceId
-
superProcessInstanceId
-
subProcessInstanceId
-
caseKeyNotIn
-
createdBefore
-
createdAfter
-
closedBefore
-
closedAfter
-
caseDefinitionKey
-
caseActivityIds
-
isTenantIdSet
protected boolean isTenantIdSet -
tenantIds
-
-
Constructor Details
-
HistoricCaseInstanceQueryImpl
public HistoricCaseInstanceQueryImpl() -
HistoricCaseInstanceQueryImpl
-
-
Method Details
-
caseInstanceId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given case instance id.- Specified by:
caseInstanceIdin interfaceHistoricCaseInstanceQuery
-
caseInstanceIds
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances whose id is in the given set of ids.- Specified by:
caseInstanceIdsin interfaceHistoricCaseInstanceQuery
-
caseDefinitionId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances for the given case definition- Specified by:
caseDefinitionIdin interfaceHistoricCaseInstanceQuery
-
caseDefinitionKey
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are defined by a case definition with the given key.- Specified by:
caseDefinitionKeyin interfaceHistoricCaseInstanceQuery
-
caseDefinitionName
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are defined by a case definition with the given name.- Specified by:
caseDefinitionNamein interfaceHistoricCaseInstanceQuery
-
caseDefinitionNameLike
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that are defined by case definition which name is like the given value.- Specified by:
caseDefinitionNameLikein interfaceHistoricCaseInstanceQuery- Parameters:
nameLike- The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
caseInstanceBusinessKey
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with the given business key- Specified by:
caseInstanceBusinessKeyin interfaceHistoricCaseInstanceQuery
-
caseInstanceBusinessKeyLike
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances which had a business key like the given value.- Specified by:
caseInstanceBusinessKeyLikein interfaceHistoricCaseInstanceQuery- Parameters:
businessKeyLike- The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
createdBy
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instance that are created by the given user.- Specified by:
createdByin interfaceHistoricCaseInstanceQuery
-
caseDefinitionKeyNotIn
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that don't have a case definition of which the key is present in the given list- Specified by:
caseDefinitionKeyNotInin interfaceHistoricCaseInstanceQuery
-
caseActivityIdIn
Description copied from interface:HistoricCaseInstanceQueryOnly selects historic case instances with historic case activity instances in at least one of the given case activity ids.
- Specified by:
caseActivityIdInin interfaceHistoricCaseInstanceQuery
-
createdAfter
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that were created after the given date.- Specified by:
createdAfterin interfaceHistoricCaseInstanceQuery
-
createdBefore
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that were created before the given date.- Specified by:
createdBeforein interfaceHistoricCaseInstanceQuery
-
closedAfter
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that were closed after the given date.- Specified by:
closedAfterin interfaceHistoricCaseInstanceQuery
-
closedBefore
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances that were closed before the given date.- Specified by:
closedBeforein interfaceHistoricCaseInstanceQuery
-
superCaseInstanceId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances started by the given case instance.- Specified by:
superCaseInstanceIdin interfaceHistoricCaseInstanceQuery
-
subCaseInstanceId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances having a sub case instance with the given case instance id. Note that there will always be maximum only one such case instance that can be the result of this query.- Specified by:
subCaseInstanceIdin interfaceHistoricCaseInstanceQuery
-
superProcessInstanceId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances started by the given process instance.- Specified by:
superProcessInstanceIdin interfaceHistoricCaseInstanceQuery
-
subProcessInstanceId
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances having a sub process instance with the given process instance id. Note that there will always be maximum only one such case instance that can be the result of this query.- Specified by:
subProcessInstanceIdin interfaceHistoricCaseInstanceQuery
-
tenantIdIn
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances with one of the given tenant ids.- Specified by:
tenantIdInin interfaceHistoricCaseInstanceQuery
-
withoutTenantId
Description copied from interface:HistoricCaseInstanceQueryOnly selects historic case instances which have no tenant id.- Specified by:
withoutTenantIdin interfaceHistoricCaseInstanceQuery
-
active
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances which are active- Specified by:
activein interfaceHistoricCaseInstanceQuery
-
completed
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances which are completed- Specified by:
completedin interfaceHistoricCaseInstanceQuery
-
terminated
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances which are terminated- Specified by:
terminatedin interfaceHistoricCaseInstanceQuery
-
failed
-
suspended
-
closed
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instances which are closed- Specified by:
closedin interfaceHistoricCaseInstanceQuery
-
notClosed
Description copied from interface:HistoricCaseInstanceQueryOnly select historic case instance that are not yet closed.- Specified by:
notClosedin interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceBusinessKey
Description copied from interface:HistoricCaseInstanceQueryOrder by the business key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseInstanceBusinessKeyin interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceDuration
Description copied from interface:HistoricCaseInstanceQueryOrder by the duration of the case instance (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseInstanceDurationin interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceCreateTime
Description copied from interface:HistoricCaseInstanceQueryOrder by the create time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseInstanceCreateTimein interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceCloseTime
Description copied from interface:HistoricCaseInstanceQueryOrder by the close time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseInstanceCloseTimein interfaceHistoricCaseInstanceQuery
-
orderByCaseDefinitionId
Description copied from interface:HistoricCaseInstanceQueryOrder by the case definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseDefinitionIdin interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceId
Description copied from interface:HistoricCaseInstanceQueryOrder by the case instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseInstanceIdin interfaceHistoricCaseInstanceQuery
-
orderByTenantId
Description copied from interface:HistoricCaseInstanceQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()). Note that the ordering of historic case instances without tenant id is database-specific.- Specified by:
orderByTenantIdin interfaceHistoricCaseInstanceQuery
-
executeCount
- Specified by:
executeCountin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> page- used if the results must be paged. If null, no paging will be applied.
-
hasExcludingConditions
protected boolean hasExcludingConditions()Description copied from class:AbstractQueryWhether or not the query has excluding conditions. If the query has excluding conditions, (e.g. task due date before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries.- Overrides:
hasExcludingConditionsin classAbstractQuery<HistoricCaseInstanceQuery,HistoricCaseInstance> - Returns:
trueif the query does have excluding conditions,falseotherwise
-
getBusinessKey
-
getBusinessKeyLike
-
getCaseDefinitionId
-
getCaseDefinitionKey
-
getCaseDefinitionIdLike
-
getCaseDefinitionName
-
getCaseDefinitionNameLike
-
getCaseInstanceId
-
getCaseInstanceIds
-
getStartedBy
-
getSuperCaseInstanceId
-
setSuperCaseInstanceId
-
getCaseKeyNotIn
-
getCreatedAfter
-
getCreatedBefore
-
getClosedAfter
-
getClosedBefore
-
getSubCaseInstanceId
-
getSuperProcessInstanceId
-
getSubProcessInstanceId
-