Class CaseExecutionQueryImpl
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
- 
- org.camunda.bpm.engine.impl.AbstractQuery<T,U>
- 
- org.camunda.bpm.engine.impl.AbstractVariableQueryImpl<CaseExecutionQuery,CaseExecution>
- 
- org.camunda.bpm.engine.impl.cmmn.entity.runtime.CaseExecutionQueryImpl
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- Command<java.lang.Object>,- Query<CaseExecutionQuery,CaseExecution>,- CaseExecutionQuery
 
 public class CaseExecutionQueryImpl extends AbstractVariableQueryImpl<CaseExecutionQuery,CaseExecution> implements CaseExecutionQuery - Author:
- Roman Smirnov
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQueryAbstractQuery.ResultType
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringactivityIdprotected java.lang.StringbusinessKeyprotected java.lang.StringcaseDefinitionIdprotected java.lang.StringcaseDefinitionKeyprotected java.lang.StringcaseExecutionIdprotected java.lang.StringcaseInstanceIdprotected java.lang.StringdeploymentIdprotected booleanisTenantIdSetprotected java.lang.Booleanrequiredprotected CaseExecutionStatestateprotected java.lang.StringsubCaseInstanceIdprotected java.lang.StringsubProcessInstanceIdprotected java.lang.StringsuperCaseInstanceIdprotected java.lang.StringsuperProcessInstanceIdprotected java.lang.String[]tenantIds- 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImplqueryVariableValues, variableNamesIgnoreCase, variableValuesIgnoreCase
 - 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuerycommandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
 - 
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObjectauthCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
 
- 
 - 
Constructor SummaryConstructors Constructor Description CaseExecutionQueryImpl()CaseExecutionQueryImpl(CommandExecutor commandExecutor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CaseExecutionQueryactive()Only select case executions which are active.CaseExecutionQueryactivityId(java.lang.String activityId)Only select case executions which contain an activity with the given id.CaseExecutionQueryavailable()Only select case executions which are available.CaseExecutionQuerycaseDefinitionId(java.lang.String caseDefinitionId)Only select case executions which have the given case definition id.CaseExecutionQuerycaseDefinitionKey(java.lang.String caseDefinitionKey)Only select case executions which have the given case definition key.CaseExecutionQuerycaseExecutionId(java.lang.String caseExecutionId)Only select case executions with the given id.CaseExecutionQuerycaseInstanceBusinessKey(java.lang.String caseInstanceBusinessKey)Only select case executions that belong to a case instance with the given business keyCaseExecutionQuerycaseInstanceId(java.lang.String caseInstanceId)Only select case executions which have the given case instance id.CaseExecutionQuerycaseInstanceVariableValueEquals(java.lang.String name, java.lang.Object value)Only select case executions which are part of a case instance that have a variable with the given name set to the given value.CaseExecutionQuerycaseInstanceVariableValueGreaterThan(java.lang.String name, java.lang.Object value)Only select case executions which are part of a case instance that have a variable with the given name and a variable value greater than the passed value.CaseExecutionQuerycaseInstanceVariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)Only select case executions which are part of a case instance that have a variable value greater than or equal to the passed value.CaseExecutionQuerycaseInstanceVariableValueLessThan(java.lang.String name, java.lang.Object value)Only select case executions which are part of a case instance that have a variable value less than the passed value.CaseExecutionQuerycaseInstanceVariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)Only select case executions which are part of a case instance that have a variable value less than or equal to the passed value.CaseExecutionQuerycaseInstanceVariableValueLike(java.lang.String name, java.lang.String value)Only select case executions which are part of a case instance that have a variable value like the given value.CaseExecutionQuerycaseInstanceVariableValueNotEquals(java.lang.String name, java.lang.Object value)Only select case executions which are part of a case instance that have a variable with the given name, but with a different value than the passed value.CaseExecutionQuerydisabled()Only select case executions which are disabled.CaseExecutionQueryenabled()Only select case executions which are enabled.longexecuteCount(CommandContext commandContext)java.util.List<CaseExecution>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.java.lang.StringgetActivityId()java.lang.StringgetBusinessKey()java.lang.StringgetCaseDefinitionId()java.lang.StringgetCaseDefinitionKey()java.lang.StringgetCaseExecutionId()java.lang.StringgetCaseInstanceId()java.lang.StringgetDeploymentId()CaseExecutionStategetState()java.lang.StringgetSubCaseInstanceId()java.lang.StringgetSubProcessInstanceId()java.lang.StringgetSuperCaseInstanceId()java.lang.StringgetSuperProcessInstanceId()booleanisCaseInstancesOnly()java.lang.BooleanisRequired()CaseExecutionQueryorderByCaseDefinitionId()Order by case definition id (needs to be followed byQuery.asc()orQuery.desc()).CaseExecutionQueryorderByCaseDefinitionKey()Order by case definition key (needs to be followed byQuery.asc()orQuery.desc()).CaseExecutionQueryorderByCaseExecutionId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).CaseExecutionQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).CaseExecutionQueryrequired()Only select case executions which are required.CaseExecutionQuerytenantIdIn(java.lang.String... tenantIds)Only select case execution with one of the given tenant ids.CaseExecutionQuerywithoutTenantId()Only select case executions which have no tenant id.- 
Methods inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpladdVariable, 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.AbstractQueryaddExpression, 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.ListQueryParameterObjectgetAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.camunda.bpm.engine.runtime.CaseExecutionQuerymatchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
 - 
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.CommandisRetryable
 - 
Methods inherited from interface org.camunda.bpm.engine.query.Queryasc, count, desc, list, listPage, singleResult, unlimitedList
 
- 
 
- 
- 
- 
Field Detail- 
caseDefinitionIdprotected java.lang.String caseDefinitionId 
 - 
caseDefinitionKeyprotected java.lang.String caseDefinitionKey 
 - 
activityIdprotected java.lang.String activityId 
 - 
caseExecutionIdprotected java.lang.String caseExecutionId 
 - 
caseInstanceIdprotected java.lang.String caseInstanceId 
 - 
businessKeyprotected java.lang.String businessKey 
 - 
stateprotected CaseExecutionState state 
 - 
requiredprotected java.lang.Boolean required 
 - 
isTenantIdSetprotected boolean isTenantIdSet 
 - 
tenantIdsprotected java.lang.String[] tenantIds 
 - 
superProcessInstanceIdprotected java.lang.String superProcessInstanceId 
 - 
subProcessInstanceIdprotected java.lang.String subProcessInstanceId 
 - 
superCaseInstanceIdprotected java.lang.String superCaseInstanceId 
 - 
subCaseInstanceIdprotected java.lang.String subCaseInstanceId 
 - 
deploymentIdprotected java.lang.String deploymentId 
 
- 
 - 
Constructor Detail- 
CaseExecutionQueryImplpublic CaseExecutionQueryImpl() 
 - 
CaseExecutionQueryImplpublic CaseExecutionQueryImpl(CommandExecutor commandExecutor) 
 
- 
 - 
Method Detail- 
caseInstanceIdpublic CaseExecutionQuery caseInstanceId(java.lang.String caseInstanceId) Description copied from interface:CaseExecutionQueryOnly select case executions which have the given case instance id.- Specified by:
- caseInstanceIdin interface- CaseExecutionQuery
- Parameters:
- caseInstanceId- the id of the case instance
 
 - 
caseDefinitionIdpublic CaseExecutionQuery caseDefinitionId(java.lang.String caseDefinitionId) Description copied from interface:CaseExecutionQueryOnly select case executions which have the given case definition id.- Specified by:
- caseDefinitionIdin interface- CaseExecutionQuery
- Parameters:
- caseDefinitionId- the id of the case definition
 
 - 
caseDefinitionKeypublic CaseExecutionQuery caseDefinitionKey(java.lang.String caseDefinitionKey) Description copied from interface:CaseExecutionQueryOnly select case executions which have the given case definition key.- Specified by:
- caseDefinitionKeyin interface- CaseExecutionQuery
- Parameters:
- caseDefinitionKey- the key of the case definition
 
 - 
caseInstanceBusinessKeypublic CaseExecutionQuery caseInstanceBusinessKey(java.lang.String caseInstanceBusinessKey) Description copied from interface:CaseExecutionQueryOnly select case executions that belong to a case instance with the given business key- Specified by:
- caseInstanceBusinessKeyin interface- CaseExecutionQuery
- Parameters:
- caseInstanceBusinessKey- the business key of the case instance
 
 - 
caseExecutionIdpublic CaseExecutionQuery caseExecutionId(java.lang.String caseExecutionId) Description copied from interface:CaseExecutionQueryOnly select case executions with the given id.- Specified by:
- caseExecutionIdin interface- CaseExecutionQuery
- Parameters:
- caseExecutionId- the id of the case execution
 
 - 
activityIdpublic CaseExecutionQuery activityId(java.lang.String activityId) Description copied from interface:CaseExecutionQueryOnly select case executions which contain an activity with the given id.- Specified by:
- activityIdin interface- CaseExecutionQuery
- Parameters:
- activityId- the id of the activity
 
 - 
tenantIdInpublic CaseExecutionQuery tenantIdIn(java.lang.String... tenantIds) Description copied from interface:CaseExecutionQueryOnly select case execution with one of the given tenant ids.- Specified by:
- tenantIdInin interface- CaseExecutionQuery
 
 - 
withoutTenantIdpublic CaseExecutionQuery withoutTenantId() Description copied from interface:CaseExecutionQueryOnly select case executions which have no tenant id.- Specified by:
- withoutTenantIdin interface- CaseExecutionQuery
 
 - 
requiredpublic CaseExecutionQuery required() Description copied from interface:CaseExecutionQueryOnly select case executions which are required.- Specified by:
- requiredin interface- CaseExecutionQuery
 
 - 
availablepublic CaseExecutionQuery available() Description copied from interface:CaseExecutionQueryOnly select case executions which are available.- Specified by:
- availablein interface- CaseExecutionQuery
 
 - 
enabledpublic CaseExecutionQuery enabled() Description copied from interface:CaseExecutionQueryOnly select case executions which are enabled.- Specified by:
- enabledin interface- CaseExecutionQuery
 
 - 
activepublic CaseExecutionQuery active() Description copied from interface:CaseExecutionQueryOnly select case executions which are active.- Specified by:
- activein interface- CaseExecutionQuery
 
 - 
disabledpublic CaseExecutionQuery disabled() Description copied from interface:CaseExecutionQueryOnly select case executions which are disabled.- Specified by:
- disabledin interface- CaseExecutionQuery
 
 - 
caseInstanceVariableValueEqualspublic CaseExecutionQuery caseInstanceVariableValueEquals(java.lang.String name, java.lang.Object value) Description copied from interface:CaseExecutionQueryOnly select case executions which are part of a case instance that have a variable with the given name set to the given value. The type of variable is determined based on the value, using types configured inProcessEngineConfiguration#getVariableSerializers(). Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
- caseInstanceVariableValueEqualsin interface- CaseExecutionQuery
- Parameters:
- name- the name of the variable, cannot be null
- value- the value of the variable
 
 - 
caseInstanceVariableValueNotEqualspublic CaseExecutionQuery caseInstanceVariableValueNotEquals(java.lang.String name, java.lang.Object value) Description copied from interface:CaseExecutionQueryOnly select case executions which are part of a case instance that have a variable with the given name, but with a different value than the passed value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
- caseInstanceVariableValueNotEqualsin interface- CaseExecutionQuery
- Parameters:
- name- the name of the variable, cannot be null
- value- the value of the variable
 
 - 
caseInstanceVariableValueGreaterThanpublic CaseExecutionQuery caseInstanceVariableValueGreaterThan(java.lang.String name, java.lang.Object value) Description copied from interface:CaseExecutionQueryOnly select case executions which are part of a case instance that have a variable with the given name and a variable value greater than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
- caseInstanceVariableValueGreaterThanin interface- CaseExecutionQuery
- Parameters:
- name- the name of the variable, cannot be null
- value- the value of the variable, cannot be null
 
 - 
caseInstanceVariableValueGreaterThanOrEqualpublic CaseExecutionQuery caseInstanceVariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value) Description copied from interface:CaseExecutionQueryOnly select case executions which are part of a case instance that have a variable value greater than or equal to the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
- caseInstanceVariableValueGreaterThanOrEqualin interface- CaseExecutionQuery
- Parameters:
- name- the name of the variable, cannot be null
- value- the value of the variable, cannot be null
 
 - 
caseInstanceVariableValueLessThanpublic CaseExecutionQuery caseInstanceVariableValueLessThan(java.lang.String name, java.lang.Object value) Description copied from interface:CaseExecutionQueryOnly select case executions which are part of a case instance that have a variable value less than the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
- caseInstanceVariableValueLessThanin interface- CaseExecutionQuery
- Parameters:
- name- the name of the variable, cannot be null
- value- the value of the variable, cannot be null
 
 - 
caseInstanceVariableValueLessThanOrEqualpublic CaseExecutionQuery caseInstanceVariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value) Description copied from interface:CaseExecutionQueryOnly select case executions which are part of a case instance that have a variable value less than or equal to the passed value. Booleans, Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
- caseInstanceVariableValueLessThanOrEqualin interface- CaseExecutionQuery
- Parameters:
- name- the name of the variable, cannot be null
- value- the value of the variable, cannot be null
 
 - 
caseInstanceVariableValueLikepublic CaseExecutionQuery caseInstanceVariableValueLike(java.lang.String name, java.lang.String value) Description copied from interface:CaseExecutionQueryOnly select case executions which are part of a case instance that have a variable value like the given value. This can be used on string variables only.- Specified by:
- caseInstanceVariableValueLikein interface- CaseExecutionQuery
- Parameters:
- name- the name of the variable, cannot be null
- value- the value of the variable, cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
 
 - 
orderByCaseExecutionIdpublic CaseExecutionQuery orderByCaseExecutionId() Description copied from interface:CaseExecutionQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
- orderByCaseExecutionIdin interface- CaseExecutionQuery
 
 - 
orderByCaseDefinitionKeypublic CaseExecutionQuery orderByCaseDefinitionKey() Description copied from interface:CaseExecutionQueryOrder by case definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
- orderByCaseDefinitionKeyin interface- CaseExecutionQuery
 
 - 
orderByCaseDefinitionIdpublic CaseExecutionQuery orderByCaseDefinitionId() Description copied from interface:CaseExecutionQueryOrder by case definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
- orderByCaseDefinitionIdin interface- CaseExecutionQuery
 
 - 
orderByTenantIdpublic CaseExecutionQuery orderByTenantId() Description copied from interface:CaseExecutionQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()). Note that the ordering of case executions without tenant id is database-specific.- Specified by:
- orderByTenantIdin interface- CaseExecutionQuery
 
 - 
executeCountpublic long executeCount(CommandContext commandContext) - Specified by:
- executeCountin class- AbstractVariableQueryImpl<CaseExecutionQuery,CaseExecution>
 
 - 
executeListpublic java.util.List<CaseExecution> executeList(CommandContext commandContext, Page page) Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
- executeListin class- AbstractVariableQueryImpl<CaseExecutionQuery,CaseExecution>
- page- used if the results must be paged. If null, no paging will be applied.
 
 - 
getCaseDefinitionIdpublic java.lang.String getCaseDefinitionId() 
 - 
getCaseDefinitionKeypublic java.lang.String getCaseDefinitionKey() 
 - 
getActivityIdpublic java.lang.String getActivityId() 
 - 
getCaseExecutionIdpublic java.lang.String getCaseExecutionId() 
 - 
getCaseInstanceIdpublic java.lang.String getCaseInstanceId() 
 - 
getBusinessKeypublic java.lang.String getBusinessKey() 
 - 
getStatepublic CaseExecutionState getState() 
 - 
isCaseInstancesOnlypublic boolean isCaseInstancesOnly() 
 - 
getSuperProcessInstanceIdpublic java.lang.String getSuperProcessInstanceId() 
 - 
getSubProcessInstanceIdpublic java.lang.String getSubProcessInstanceId() 
 - 
getSuperCaseInstanceIdpublic java.lang.String getSuperCaseInstanceId() 
 - 
getSubCaseInstanceIdpublic java.lang.String getSubCaseInstanceId() 
 - 
getDeploymentIdpublic java.lang.String getDeploymentId() 
 - 
isRequiredpublic java.lang.Boolean isRequired() 
 
- 
 
-