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:
java.io.Serializable
,Command<java.lang.Object>
,Query<CaseInstanceQuery,CaseInstance>
,CaseInstanceQuery
public class CaseInstanceQueryImpl extends AbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance> implements CaseInstanceQuery
- Author:
- Roman Smirnov
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
businessKey
protected java.lang.String
caseDefinitionId
protected java.lang.String
caseDefinitionKey
protected java.lang.String
caseExecutionId
protected java.lang.String
deploymentId
protected boolean
isTenantIdSet
protected java.lang.Boolean
repeatable
protected java.lang.Boolean
repetition
protected java.lang.Boolean
required
protected CaseExecutionState
state
protected java.lang.String
subCaseInstanceId
protected java.lang.String
subProcessInstanceId
protected java.lang.String
superCaseInstanceId
protected java.lang.String
superProcessInstanceId
protected java.lang.String[]
tenantIds
-
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
Constructors Constructor Description CaseInstanceQueryImpl()
CaseInstanceQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CaseInstanceQuery
active()
Only select case instances which are active.CaseInstanceQuery
caseDefinitionId(java.lang.String caseDefinitionId)
Selects the case instances which are defined by a case definition with the given id.CaseInstanceQuery
caseDefinitionKey(java.lang.String caseDefinitionKey)
Select the case instances which are defined by a case definition with the given key.CaseInstanceQuery
caseInstanceBusinessKey(java.lang.String caseInstanceBusinessKey)
Select case instances with the given business keyCaseInstanceQuery
caseInstanceId(java.lang.String caseInstanceId)
Select the case instance with the given idCaseInstanceQuery
completed()
Only select case instances which are completed.CaseInstanceQuery
deploymentId(java.lang.String deploymentId)
Selects the case instances which belong to the given deployment id.long
executeCount(CommandContext commandContext)
java.util.List<CaseInstance>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.java.lang.String
getActivityId()
java.lang.String
getBusinessKey()
java.lang.String
getCaseDefinitionId()
java.lang.String
getCaseDefinitionKey()
java.lang.String
getCaseExecutionId()
java.lang.String
getCaseInstanceId()
java.lang.String
getDeploymentId()
CaseExecutionState
getState()
java.lang.String
getSubCaseInstanceId()
java.lang.String
getSubProcessInstanceId()
java.lang.String
getSuperCaseInstanceId()
java.lang.String
getSuperProcessInstanceId()
boolean
isCaseInstancesOnly()
java.lang.Boolean
isRepeatable()
java.lang.Boolean
isRepetition()
java.lang.Boolean
isRequired()
CaseInstanceQuery
orderByCaseDefinitionId()
Order by case definition id (needs to be followed byQuery.asc()
orQuery.desc()
).CaseInstanceQuery
orderByCaseDefinitionKey()
Order by case definition key (needs to be followed byQuery.asc()
orQuery.desc()
).CaseInstanceQuery
orderByCaseInstanceId()
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).CaseInstanceQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).CaseInstanceQuery
subCaseInstanceId(java.lang.String subCaseInstanceId)
Select the case instance that has as sub case instance the given case instance.CaseInstanceQuery
subProcessInstanceId(java.lang.String subProcessInstanceId)
Select the case instance that has as sub process instance the given process instance.CaseInstanceQuery
superCaseInstanceId(java.lang.String superCaseInstanceId)
Select the case instances which are a sub case instance of the given super case instance.CaseInstanceQuery
superProcessInstanceId(java.lang.String superProcessInstanceId)
Select the case instances which are a sub case instance of the given super process instance.CaseInstanceQuery
tenantIdIn(java.lang.String... tenantIds)
Only select case instances with one of the given tenant ids.CaseInstanceQuery
terminated()
Only select case instances which are terminated.CaseInstanceQuery
withoutTenantId()
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 Detail
-
caseExecutionId
protected java.lang.String caseExecutionId
-
businessKey
protected java.lang.String businessKey
-
caseDefinitionId
protected java.lang.String caseDefinitionId
-
caseDefinitionKey
protected java.lang.String caseDefinitionKey
-
deploymentId
protected java.lang.String deploymentId
-
state
protected CaseExecutionState state
-
superProcessInstanceId
protected java.lang.String superProcessInstanceId
-
subProcessInstanceId
protected java.lang.String subProcessInstanceId
-
superCaseInstanceId
protected java.lang.String superCaseInstanceId
-
subCaseInstanceId
protected java.lang.String subCaseInstanceId
-
isTenantIdSet
protected boolean isTenantIdSet
-
tenantIds
protected java.lang.String[] tenantIds
-
required
protected java.lang.Boolean required
-
repeatable
protected java.lang.Boolean repeatable
-
repetition
protected java.lang.Boolean repetition
-
-
Constructor Detail
-
CaseInstanceQueryImpl
public CaseInstanceQueryImpl()
-
CaseInstanceQueryImpl
public CaseInstanceQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
caseInstanceId
public CaseInstanceQuery caseInstanceId(java.lang.String 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
public CaseInstanceQuery caseInstanceBusinessKey(java.lang.String 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
public CaseInstanceQuery caseDefinitionKey(java.lang.String 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
public CaseInstanceQuery caseDefinitionId(java.lang.String 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
public CaseInstanceQuery deploymentId(java.lang.String deploymentId)
Description copied from interface:CaseInstanceQuery
Selects the case instances which belong to the given deployment id.- Specified by:
deploymentId
in interfaceCaseInstanceQuery
-
superProcessInstanceId
public CaseInstanceQuery superProcessInstanceId(java.lang.String 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
public CaseInstanceQuery subProcessInstanceId(java.lang.String 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
public CaseInstanceQuery superCaseInstanceId(java.lang.String 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
public CaseInstanceQuery subCaseInstanceId(java.lang.String 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
public CaseInstanceQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:CaseInstanceQuery
Only select case instances with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceCaseInstanceQuery
-
withoutTenantId
public CaseInstanceQuery withoutTenantId()
Description copied from interface:CaseInstanceQuery
Only select case instances which have no tenant id.- Specified by:
withoutTenantId
in interfaceCaseInstanceQuery
-
active
public CaseInstanceQuery active()
Description copied from interface:CaseInstanceQuery
Only select case instances which are active.- Specified by:
active
in interfaceCaseInstanceQuery
-
completed
public CaseInstanceQuery completed()
Description copied from interface:CaseInstanceQuery
Only select case instances which are completed.- Specified by:
completed
in interfaceCaseInstanceQuery
-
terminated
public CaseInstanceQuery terminated()
Description copied from interface:CaseInstanceQuery
Only select case instances which are terminated.- Specified by:
terminated
in interfaceCaseInstanceQuery
-
orderByCaseInstanceId
public CaseInstanceQuery orderByCaseInstanceId()
Description copied from interface:CaseInstanceQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseInstanceId
in interfaceCaseInstanceQuery
-
orderByCaseDefinitionKey
public CaseInstanceQuery 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
public CaseInstanceQuery 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
public CaseInstanceQuery 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
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
executeList
public java.util.List<CaseInstance> executeList(CommandContext commandContext, Page page)
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
public java.lang.String getCaseInstanceId()
-
getCaseExecutionId
public java.lang.String getCaseExecutionId()
-
getActivityId
public java.lang.String getActivityId()
-
getBusinessKey
public java.lang.String getBusinessKey()
-
getCaseDefinitionId
public java.lang.String getCaseDefinitionId()
-
getCaseDefinitionKey
public java.lang.String getCaseDefinitionKey()
-
getDeploymentId
public java.lang.String getDeploymentId()
-
getState
public CaseExecutionState getState()
-
isCaseInstancesOnly
public boolean isCaseInstancesOnly()
-
getSuperProcessInstanceId
public java.lang.String getSuperProcessInstanceId()
-
getSubProcessInstanceId
public java.lang.String getSubProcessInstanceId()
-
getSuperCaseInstanceId
public java.lang.String getSuperCaseInstanceId()
-
getSubCaseInstanceId
public java.lang.String getSubCaseInstanceId()
-
isRequired
public java.lang.Boolean isRequired()
-
isRepeatable
public java.lang.Boolean isRepeatable()
-
isRepetition
public java.lang.Boolean isRepetition()
-
-