Class CaseInstanceQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<T,U>
org.camunda.bpm.engine.impl.AbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
org.camunda.bpm.engine.impl.cmmn.entity.runtime.CaseInstanceQueryImpl
- All Implemented Interfaces:
Serializable
,Command<Object>
,Query<CaseInstanceQuery,
,CaseInstance> CaseInstanceQuery
public class CaseInstanceQueryImpl
extends AbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
implements CaseInstanceQuery
- Author:
- Roman Smirnov
- 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 boolean
protected Boolean
protected Boolean
protected Boolean
protected CaseExecutionState
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 case instances which are active.caseDefinitionId
(String caseDefinitionId) Selects the case instances which are defined by a case definition with the given id.caseDefinitionKey
(String caseDefinitionKey) Select the case instances which are defined by a case definition with the given key.caseInstanceBusinessKey
(String caseInstanceBusinessKey) Select case instances with the given business keycaseInstanceId
(String caseInstanceId) Select the case instance with the given idOnly select case instances which are completed.deploymentId
(String deploymentId) Selects the case instances which belong to the given deployment id.long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.getState()
boolean
Order by case definition id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by case definition key (needs to be followed byQuery.asc()
orQuery.desc()
).Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).subCaseInstanceId
(String subCaseInstanceId) Select the case instance that has as sub case instance the given case instance.subProcessInstanceId
(String subProcessInstanceId) Select the case instance that has as sub process instance the given process instance.superCaseInstanceId
(String superCaseInstanceId) Select the case instances which are a sub case instance of the given super case instance.superProcessInstanceId
(String superProcessInstanceId) Select the case instances which are a sub case instance of the given super process instance.tenantIdIn
(String... tenantIds) Only select case instances with one of the given tenant ids.Only select case instances which are terminated.Only select 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, hasExcludingConditions, 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.runtime.CaseInstanceQuery
matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals, variableValueNotLike
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
caseExecutionId
-
businessKey
-
caseDefinitionId
-
caseDefinitionKey
-
deploymentId
-
state
-
superProcessInstanceId
-
subProcessInstanceId
-
superCaseInstanceId
-
subCaseInstanceId
-
isTenantIdSet
protected boolean isTenantIdSet -
tenantIds
-
required
-
repeatable
-
repetition
-
-
Constructor Details
-
CaseInstanceQueryImpl
public CaseInstanceQueryImpl() -
CaseInstanceQueryImpl
-
-
Method Details
-
caseInstanceId
Description copied from interface:CaseInstanceQuery
Select the case instance with the given id- Specified by:
caseInstanceId
in interfaceCaseInstanceQuery
- Parameters:
caseInstanceId
- the id of the case instance
-
caseInstanceBusinessKey
Description copied from interface:CaseInstanceQuery
Select case instances with the given business key- Specified by:
caseInstanceBusinessKey
in interfaceCaseInstanceQuery
- Parameters:
caseInstanceBusinessKey
- the business key of the case instance
-
caseDefinitionKey
Description copied from interface:CaseInstanceQuery
Select the case instances which are defined by a case definition with the given key.- Specified by:
caseDefinitionKey
in interfaceCaseInstanceQuery
- Parameters:
caseDefinitionKey
- the key of the case definition
-
caseDefinitionId
Description copied from interface:CaseInstanceQuery
Selects the case instances which are defined by a case definition with the given id.- Specified by:
caseDefinitionId
in interfaceCaseInstanceQuery
- Parameters:
caseDefinitionId
- the id of the case definition
-
deploymentId
Description copied from interface:CaseInstanceQuery
Selects the case instances which belong to the given deployment id.- Specified by:
deploymentId
in interfaceCaseInstanceQuery
-
superProcessInstanceId
Description copied from interface:CaseInstanceQuery
Select the case instances which are a sub case instance of the given super process instance.- Specified by:
superProcessInstanceId
in interfaceCaseInstanceQuery
-
subProcessInstanceId
Description copied from interface:CaseInstanceQuery
Select the case instance that has as sub process instance the given process instance. Note that there will always be at most one such case instance that can be the result of this query.- Specified by:
subProcessInstanceId
in interfaceCaseInstanceQuery
-
superCaseInstanceId
Description copied from interface:CaseInstanceQuery
Select the case instances which are a sub case instance of the given super case instance.- Specified by:
superCaseInstanceId
in interfaceCaseInstanceQuery
-
subCaseInstanceId
Description copied from interface:CaseInstanceQuery
Select the case instance that has as sub case instance the given case instance. Note that there will always be at most one such process instance that can be the result of this query.- Specified by:
subCaseInstanceId
in interfaceCaseInstanceQuery
-
tenantIdIn
Description copied from interface:CaseInstanceQuery
Only select case instances with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceCaseInstanceQuery
-
withoutTenantId
Description copied from interface:CaseInstanceQuery
Only select case instances which have no tenant id.- Specified by:
withoutTenantId
in interfaceCaseInstanceQuery
-
active
Description copied from interface:CaseInstanceQuery
Only select case instances which are active.- Specified by:
active
in interfaceCaseInstanceQuery
-
completed
Description copied from interface:CaseInstanceQuery
Only select case instances which are completed.- Specified by:
completed
in interfaceCaseInstanceQuery
-
terminated
Description copied from interface:CaseInstanceQuery
Only select case instances which are terminated.- Specified by:
terminated
in interfaceCaseInstanceQuery
-
orderByCaseInstanceId
Description copied from interface:CaseInstanceQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseInstanceId
in interfaceCaseInstanceQuery
-
orderByCaseDefinitionKey
Description copied from interface:CaseInstanceQuery
Order by case definition key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionKey
in interfaceCaseInstanceQuery
-
orderByCaseDefinitionId
Description copied from interface:CaseInstanceQuery
Order by case definition id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionId
in interfaceCaseInstanceQuery
-
orderByTenantId
Description copied from interface:CaseInstanceQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of case instances without tenant id is database-specific.- Specified by:
orderByTenantId
in interfaceCaseInstanceQuery
-
executeCount
- Specified by:
executeCount
in classAbstractVariableQueryImpl<CaseInstanceQuery,
CaseInstance>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractVariableQueryImpl<CaseInstanceQuery,
CaseInstance> page
- used if the results must be paged. If null, no paging will be applied.
-
getCaseInstanceId
-
getCaseExecutionId
-
getActivityId
-
getBusinessKey
-
getCaseDefinitionId
-
getCaseDefinitionKey
-
getDeploymentId
-
getState
-
isCaseInstancesOnly
public boolean isCaseInstancesOnly() -
getSuperProcessInstanceId
-
getSubProcessInstanceId
-
getSuperCaseInstanceId
-
getSubCaseInstanceId
-
isRequired
-
isRepeatable
-
isRepetition
-