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:
- 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 StringbusinessKeyprotected StringcaseDefinitionIdprotected StringcaseDefinitionKeyprotected StringcaseExecutionIdprotected StringdeploymentIdprotected booleanisTenantIdSetprotected Booleanrepeatableprotected Booleanrepetitionprotected Booleanrequiredprotected CaseExecutionStatestateprotected StringsubCaseInstanceIdprotected StringsubProcessInstanceIdprotected StringsuperCaseInstanceIdprotected StringsuperProcessInstanceIdprotected 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 CaseInstanceQueryactive()Only select case instances which are active.CaseInstanceQuerycaseDefinitionId(String caseDefinitionId)Selects the case instances which are defined by a case definition with the given id.CaseInstanceQuerycaseDefinitionKey(String caseDefinitionKey)Select the case instances which are defined by a case definition with the given key.CaseInstanceQuerycaseInstanceBusinessKey(String caseInstanceBusinessKey)Select case instances with the given business keyCaseInstanceQuerycaseInstanceId(String caseInstanceId)Select the case instance with the given idCaseInstanceQuerycompleted()Only select case instances which are completed.CaseInstanceQuerydeploymentId(String deploymentId)Selects the case instances which belong to the given deployment id.longexecuteCount(CommandContext commandContext)List<CaseInstance>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.StringgetActivityId()StringgetBusinessKey()StringgetCaseDefinitionId()StringgetCaseDefinitionKey()StringgetCaseExecutionId()StringgetCaseInstanceId()StringgetDeploymentId()CaseExecutionStategetState()StringgetSubCaseInstanceId()StringgetSubProcessInstanceId()StringgetSuperCaseInstanceId()StringgetSuperProcessInstanceId()booleanisCaseInstancesOnly()BooleanisRepeatable()BooleanisRepetition()BooleanisRequired()CaseInstanceQueryorderByCaseDefinitionId()Order by case definition id (needs to be followed byQuery.asc()orQuery.desc()).CaseInstanceQueryorderByCaseDefinitionKey()Order by case definition key (needs to be followed byQuery.asc()orQuery.desc()).CaseInstanceQueryorderByCaseInstanceId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).CaseInstanceQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).CaseInstanceQuerysubCaseInstanceId(String subCaseInstanceId)Select the case instance that has as sub case instance the given case instance.CaseInstanceQuerysubProcessInstanceId(String subProcessInstanceId)Select the case instance that has as sub process instance the given process instance.CaseInstanceQuerysuperCaseInstanceId(String superCaseInstanceId)Select the case instances which are a sub case instance of the given super case instance.CaseInstanceQuerysuperProcessInstanceId(String superProcessInstanceId)Select the case instances which are a sub case instance of the given super process instance.CaseInstanceQuerytenantIdIn(String... tenantIds)Only select case instances with one of the given tenant ids.CaseInstanceQueryterminated()Only select case instances which are terminated.CaseInstanceQuerywithoutTenantId()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 String caseExecutionId
-
businessKey
protected String businessKey
-
caseDefinitionId
protected String caseDefinitionId
-
caseDefinitionKey
protected String caseDefinitionKey
-
deploymentId
protected String deploymentId
-
state
protected CaseExecutionState state
-
superProcessInstanceId
protected String superProcessInstanceId
-
subProcessInstanceId
protected String subProcessInstanceId
-
superCaseInstanceId
protected String superCaseInstanceId
-
subCaseInstanceId
protected String subCaseInstanceId
-
isTenantIdSet
protected boolean isTenantIdSet
-
tenantIds
protected String[] tenantIds
-
required
protected Boolean required
-
repeatable
protected Boolean repeatable
-
repetition
protected Boolean repetition
-
-
Constructor Detail
-
CaseInstanceQueryImpl
public CaseInstanceQueryImpl()
-
CaseInstanceQueryImpl
public CaseInstanceQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
caseInstanceId
public CaseInstanceQuery caseInstanceId(String caseInstanceId)
Description copied from interface:CaseInstanceQuerySelect the case instance with the given id- Specified by:
caseInstanceIdin interfaceCaseInstanceQuery- Parameters:
caseInstanceId- the id of the case instance
-
caseInstanceBusinessKey
public CaseInstanceQuery caseInstanceBusinessKey(String caseInstanceBusinessKey)
Description copied from interface:CaseInstanceQuerySelect case instances with the given business key- Specified by:
caseInstanceBusinessKeyin interfaceCaseInstanceQuery- Parameters:
caseInstanceBusinessKey- the business key of the case instance
-
caseDefinitionKey
public CaseInstanceQuery caseDefinitionKey(String caseDefinitionKey)
Description copied from interface:CaseInstanceQuerySelect the case instances which are defined by a case definition with the given key.- Specified by:
caseDefinitionKeyin interfaceCaseInstanceQuery- Parameters:
caseDefinitionKey- the key of the case definition
-
caseDefinitionId
public CaseInstanceQuery caseDefinitionId(String caseDefinitionId)
Description copied from interface:CaseInstanceQuerySelects the case instances which are defined by a case definition with the given id.- Specified by:
caseDefinitionIdin interfaceCaseInstanceQuery- Parameters:
caseDefinitionId- the id of the case definition
-
deploymentId
public CaseInstanceQuery deploymentId(String deploymentId)
Description copied from interface:CaseInstanceQuerySelects the case instances which belong to the given deployment id.- Specified by:
deploymentIdin interfaceCaseInstanceQuery
-
superProcessInstanceId
public CaseInstanceQuery superProcessInstanceId(String superProcessInstanceId)
Description copied from interface:CaseInstanceQuerySelect the case instances which are a sub case instance of the given super process instance.- Specified by:
superProcessInstanceIdin interfaceCaseInstanceQuery
-
subProcessInstanceId
public CaseInstanceQuery subProcessInstanceId(String subProcessInstanceId)
Description copied from interface:CaseInstanceQuerySelect 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:
subProcessInstanceIdin interfaceCaseInstanceQuery
-
superCaseInstanceId
public CaseInstanceQuery superCaseInstanceId(String superCaseInstanceId)
Description copied from interface:CaseInstanceQuerySelect the case instances which are a sub case instance of the given super case instance.- Specified by:
superCaseInstanceIdin interfaceCaseInstanceQuery
-
subCaseInstanceId
public CaseInstanceQuery subCaseInstanceId(String subCaseInstanceId)
Description copied from interface:CaseInstanceQuerySelect 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:
subCaseInstanceIdin interfaceCaseInstanceQuery
-
tenantIdIn
public CaseInstanceQuery tenantIdIn(String... tenantIds)
Description copied from interface:CaseInstanceQueryOnly select case instances with one of the given tenant ids.- Specified by:
tenantIdInin interfaceCaseInstanceQuery
-
withoutTenantId
public CaseInstanceQuery withoutTenantId()
Description copied from interface:CaseInstanceQueryOnly select case instances which have no tenant id.- Specified by:
withoutTenantIdin interfaceCaseInstanceQuery
-
active
public CaseInstanceQuery active()
Description copied from interface:CaseInstanceQueryOnly select case instances which are active.- Specified by:
activein interfaceCaseInstanceQuery
-
completed
public CaseInstanceQuery completed()
Description copied from interface:CaseInstanceQueryOnly select case instances which are completed.- Specified by:
completedin interfaceCaseInstanceQuery
-
terminated
public CaseInstanceQuery terminated()
Description copied from interface:CaseInstanceQueryOnly select case instances which are terminated.- Specified by:
terminatedin interfaceCaseInstanceQuery
-
orderByCaseInstanceId
public CaseInstanceQuery orderByCaseInstanceId()
Description copied from interface:CaseInstanceQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseInstanceIdin interfaceCaseInstanceQuery
-
orderByCaseDefinitionKey
public CaseInstanceQuery orderByCaseDefinitionKey()
Description copied from interface:CaseInstanceQueryOrder by case definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseDefinitionKeyin interfaceCaseInstanceQuery
-
orderByCaseDefinitionId
public CaseInstanceQuery orderByCaseDefinitionId()
Description copied from interface:CaseInstanceQueryOrder by case definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseDefinitionIdin interfaceCaseInstanceQuery
-
orderByTenantId
public CaseInstanceQuery orderByTenantId()
Description copied from interface:CaseInstanceQueryOrder 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:
orderByTenantIdin interfaceCaseInstanceQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
executeList
public List<CaseInstance> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>page- used if the results must be paged. If null, no paging will be applied.
-
getCaseInstanceId
public String getCaseInstanceId()
-
getCaseExecutionId
public String getCaseExecutionId()
-
getActivityId
public String getActivityId()
-
getBusinessKey
public String getBusinessKey()
-
getCaseDefinitionId
public String getCaseDefinitionId()
-
getCaseDefinitionKey
public String getCaseDefinitionKey()
-
getDeploymentId
public String getDeploymentId()
-
getState
public CaseExecutionState getState()
-
isCaseInstancesOnly
public boolean isCaseInstancesOnly()
-
getSuperProcessInstanceId
public String getSuperProcessInstanceId()
-
getSubProcessInstanceId
public String getSubProcessInstanceId()
-
getSuperCaseInstanceId
public String getSuperCaseInstanceId()
-
getSubCaseInstanceId
public String getSubCaseInstanceId()
-
isRequired
public Boolean isRequired()
-
isRepeatable
public Boolean isRepeatable()
-
isRepetition
public Boolean isRepetition()
-
-