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
Modifier and TypeFieldDescriptionprotected String
protected String
protected String[]
protected String
protected String
protected String
protected String
protected String
protected Date
protected Date
protected Date
protected Date
protected String
protected boolean
protected Boolean
protected Integer
protected String
protected String
protected String
protected String
protected String[]
Fields inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
queryVariableValues, variableNamesIgnoreCase, variableValuesIgnoreCase
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
Constructor Summary
-
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.long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.failed()
protected boolean
Whether 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()
).void
setSuperCaseInstanceId
(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, variableValueNotLike
Methods 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, validate
Methods 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, setTenantCheck
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
Methods inherited from interface org.camunda.bpm.engine.history.HistoricCaseInstanceQuery
matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals, variableValueNotLike
Methods 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:HistoricCaseInstanceQuery
Only select historic case instances with the given case instance id.- Specified by:
caseInstanceId
in interfaceHistoricCaseInstanceQuery
-
caseInstanceIds
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances whose id is in the given set of ids.- Specified by:
caseInstanceIds
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances for the given case definition- Specified by:
caseDefinitionId
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionKey
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are defined by a case definition with the given key.- Specified by:
caseDefinitionKey
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionName
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are defined by a case definition with the given name.- Specified by:
caseDefinitionName
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionNameLike
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that are defined by case definition which name is like the given value.- Specified by:
caseDefinitionNameLike
in 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:HistoricCaseInstanceQuery
Only select historic case instances with the given business key- Specified by:
caseInstanceBusinessKey
in interfaceHistoricCaseInstanceQuery
-
caseInstanceBusinessKeyLike
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances which had a business key like the given value.- Specified by:
caseInstanceBusinessKeyLike
in 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:HistoricCaseInstanceQuery
Only select historic case instance that are created by the given user.- Specified by:
createdBy
in interfaceHistoricCaseInstanceQuery
-
caseDefinitionKeyNotIn
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that don't have a case definition of which the key is present in the given list- Specified by:
caseDefinitionKeyNotIn
in interfaceHistoricCaseInstanceQuery
-
caseActivityIdIn
Description copied from interface:HistoricCaseInstanceQuery
Only selects historic case instances with historic case activity instances in at least one of the given case activity ids.
- Specified by:
caseActivityIdIn
in interfaceHistoricCaseInstanceQuery
-
createdAfter
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that were created after the given date.- Specified by:
createdAfter
in interfaceHistoricCaseInstanceQuery
-
createdBefore
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that were created before the given date.- Specified by:
createdBefore
in interfaceHistoricCaseInstanceQuery
-
closedAfter
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that were closed after the given date.- Specified by:
closedAfter
in interfaceHistoricCaseInstanceQuery
-
closedBefore
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances that were closed before the given date.- Specified by:
closedBefore
in interfaceHistoricCaseInstanceQuery
-
superCaseInstanceId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances started by the given case instance.- Specified by:
superCaseInstanceId
in interfaceHistoricCaseInstanceQuery
-
subCaseInstanceId
Description copied from interface:HistoricCaseInstanceQuery
Only 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:
subCaseInstanceId
in interfaceHistoricCaseInstanceQuery
-
superProcessInstanceId
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances started by the given process instance.- Specified by:
superProcessInstanceId
in interfaceHistoricCaseInstanceQuery
-
subProcessInstanceId
Description copied from interface:HistoricCaseInstanceQuery
Only 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:
subProcessInstanceId
in interfaceHistoricCaseInstanceQuery
-
tenantIdIn
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceHistoricCaseInstanceQuery
-
withoutTenantId
Description copied from interface:HistoricCaseInstanceQuery
Only selects historic case instances which have no tenant id.- Specified by:
withoutTenantId
in interfaceHistoricCaseInstanceQuery
-
active
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances which are active- Specified by:
active
in interfaceHistoricCaseInstanceQuery
-
completed
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances which are completed- Specified by:
completed
in interfaceHistoricCaseInstanceQuery
-
terminated
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances which are terminated- Specified by:
terminated
in interfaceHistoricCaseInstanceQuery
-
failed
-
suspended
-
closed
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instances which are closed- Specified by:
closed
in interfaceHistoricCaseInstanceQuery
-
notClosed
Description copied from interface:HistoricCaseInstanceQuery
Only select historic case instance that are not yet closed.- Specified by:
notClosed
in interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceBusinessKey
Description copied from interface:HistoricCaseInstanceQuery
Order by the business key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseInstanceBusinessKey
in interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceDuration
Description copied from interface:HistoricCaseInstanceQuery
Order by the duration of the case instance (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseInstanceDuration
in interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceCreateTime
Description copied from interface:HistoricCaseInstanceQuery
Order by the create time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseInstanceCreateTime
in interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceCloseTime
Description copied from interface:HistoricCaseInstanceQuery
Order by the close time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseInstanceCloseTime
in interfaceHistoricCaseInstanceQuery
-
orderByCaseDefinitionId
Description copied from interface:HistoricCaseInstanceQuery
Order by the case definition id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionId
in interfaceHistoricCaseInstanceQuery
-
orderByCaseInstanceId
Description copied from interface:HistoricCaseInstanceQuery
Order by the case instance id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseInstanceId
in interfaceHistoricCaseInstanceQuery
-
orderByTenantId
Description copied from interface:HistoricCaseInstanceQuery
Order 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:
orderByTenantId
in interfaceHistoricCaseInstanceQuery
-
executeCount
- Specified by:
executeCount
in classAbstractVariableQueryImpl<HistoricCaseInstanceQuery,
HistoricCaseInstance>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in 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:AbstractQuery
Whether 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:
hasExcludingConditions
in classAbstractQuery<HistoricCaseInstanceQuery,
HistoricCaseInstance> - Returns:
true
if the query does have excluding conditions,false
otherwise
-
getBusinessKey
-
getBusinessKeyLike
-
getCaseDefinitionId
-
getCaseDefinitionKey
-
getCaseDefinitionIdLike
-
getCaseDefinitionName
-
getCaseDefinitionNameLike
-
getCaseInstanceId
-
getCaseInstanceIds
-
getStartedBy
-
getSuperCaseInstanceId
-
setSuperCaseInstanceId
-
getCaseKeyNotIn
-
getCreatedAfter
-
getCreatedBefore
-
getClosedAfter
-
getClosedBefore
-
getSubCaseInstanceId
-
getSuperProcessInstanceId
-
getSubProcessInstanceId
-