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:
Serializable,Command<Object>,Query<CaseExecutionQuery,,CaseExecution> CaseExecutionQuery
public class CaseExecutionQueryImpl
extends AbstractVariableQueryImpl<CaseExecutionQuery,CaseExecution>
implements CaseExecutionQuery
- Author:
- Roman Smirnov
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected Booleanprotected CaseExecutionStateprotected Stringprotected Stringprotected Stringprotected Stringprotected String[]Fields inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
queryVariableValues, variableNamesIgnoreCase, variableValuesIgnoreCaseFields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validatorsFields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactive()Only select case executions which are active.activityId(String activityId) Only select case executions which contain an activity with the given id.Only select case executions which are available.caseDefinitionId(String caseDefinitionId) Only select case executions which have the given case definition id.caseDefinitionKey(String caseDefinitionKey) Only select case executions which have the given case definition key.caseExecutionId(String caseExecutionId) Only select case executions with the given id.caseInstanceBusinessKey(String caseInstanceBusinessKey) Only select case executions that belong to a case instance with the given business keycaseInstanceId(String caseInstanceId) Only select case executions which have the given case instance id.caseInstanceVariableValueEquals(String name, 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.caseInstanceVariableValueGreaterThan(String name, 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.caseInstanceVariableValueGreaterThanOrEqual(String name, 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.caseInstanceVariableValueLessThan(String name, Object value) Only select case executions which are part of a case instance that have a variable value less than the passed value.caseInstanceVariableValueLessThanOrEqual(String name, 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.caseInstanceVariableValueLike(String name, String value) Only select case executions which are part of a case instance that have a variable value like the given value.caseInstanceVariableValueNotEquals(String name, 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.disabled()Only select case executions which are disabled.enabled()Only select case executions which are enabled.longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.getState()booleanOrder 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()).required()Only select case executions which are required.tenantIdIn(String... tenantIds) Only select case execution with one of the given tenant ids.Only select case executions 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, variableValueNotLikeMethods 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, validateMethods 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, setTenantCheckMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.runtime.CaseExecutionQuery
matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEqualsMethods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryableMethods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
caseDefinitionId
-
caseDefinitionKey
-
activityId
-
caseExecutionId
-
caseInstanceId
-
businessKey
-
state
-
required
-
isTenantIdSet
protected boolean isTenantIdSet -
tenantIds
-
superProcessInstanceId
-
subProcessInstanceId
-
superCaseInstanceId
-
subCaseInstanceId
-
deploymentId
-
-
Constructor Details
-
CaseExecutionQueryImpl
public CaseExecutionQueryImpl() -
CaseExecutionQueryImpl
-
-
Method Details
-
caseInstanceId
Description copied from interface:CaseExecutionQueryOnly select case executions which have the given case instance id.- Specified by:
caseInstanceIdin interfaceCaseExecutionQuery- Parameters:
caseInstanceId- the id of the case instance
-
caseDefinitionId
Description copied from interface:CaseExecutionQueryOnly select case executions which have the given case definition id.- Specified by:
caseDefinitionIdin interfaceCaseExecutionQuery- Parameters:
caseDefinitionId- the id of the case definition
-
caseDefinitionKey
Description copied from interface:CaseExecutionQueryOnly select case executions which have the given case definition key.- Specified by:
caseDefinitionKeyin interfaceCaseExecutionQuery- Parameters:
caseDefinitionKey- the key of the case definition
-
caseInstanceBusinessKey
Description copied from interface:CaseExecutionQueryOnly select case executions that belong to a case instance with the given business key- Specified by:
caseInstanceBusinessKeyin interfaceCaseExecutionQuery- Parameters:
caseInstanceBusinessKey- the business key of the case instance
-
caseExecutionId
Description copied from interface:CaseExecutionQueryOnly select case executions with the given id.- Specified by:
caseExecutionIdin interfaceCaseExecutionQuery- Parameters:
caseExecutionId- the id of the case execution
-
activityId
Description copied from interface:CaseExecutionQueryOnly select case executions which contain an activity with the given id.- Specified by:
activityIdin interfaceCaseExecutionQuery- Parameters:
activityId- the id of the activity
-
tenantIdIn
Description copied from interface:CaseExecutionQueryOnly select case execution with one of the given tenant ids.- Specified by:
tenantIdInin interfaceCaseExecutionQuery
-
withoutTenantId
Description copied from interface:CaseExecutionQueryOnly select case executions which have no tenant id.- Specified by:
withoutTenantIdin interfaceCaseExecutionQuery
-
required
Description copied from interface:CaseExecutionQueryOnly select case executions which are required.- Specified by:
requiredin interfaceCaseExecutionQuery
-
available
Description copied from interface:CaseExecutionQueryOnly select case executions which are available.- Specified by:
availablein interfaceCaseExecutionQuery
-
enabled
Description copied from interface:CaseExecutionQueryOnly select case executions which are enabled.- Specified by:
enabledin interfaceCaseExecutionQuery
-
active
Description copied from interface:CaseExecutionQueryOnly select case executions which are active.- Specified by:
activein interfaceCaseExecutionQuery
-
disabled
Description copied from interface:CaseExecutionQueryOnly select case executions which are disabled.- Specified by:
disabledin interfaceCaseExecutionQuery
-
caseInstanceVariableValueEquals
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 interfaceCaseExecutionQuery- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable
-
caseInstanceVariableValueNotEquals
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 interfaceCaseExecutionQuery- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable
-
caseInstanceVariableValueGreaterThan
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 interfaceCaseExecutionQuery- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null
-
caseInstanceVariableValueGreaterThanOrEqual
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 interfaceCaseExecutionQuery- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null
-
caseInstanceVariableValueLessThan
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 interfaceCaseExecutionQuery- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null
-
caseInstanceVariableValueLessThanOrEqual
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 interfaceCaseExecutionQuery- Parameters:
name- the name of the variable, cannot be nullvalue- the value of the variable, cannot be null
-
caseInstanceVariableValueLike
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 interfaceCaseExecutionQuery- Parameters:
name- the name of the variable, cannot be nullvalue- 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%).
-
orderByCaseExecutionId
Description copied from interface:CaseExecutionQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseExecutionIdin interfaceCaseExecutionQuery
-
orderByCaseDefinitionKey
Description copied from interface:CaseExecutionQueryOrder by case definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseDefinitionKeyin interfaceCaseExecutionQuery
-
orderByCaseDefinitionId
Description copied from interface:CaseExecutionQueryOrder by case definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseDefinitionIdin interfaceCaseExecutionQuery
-
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 interfaceCaseExecutionQuery
-
executeCount
- Specified by:
executeCountin classAbstractVariableQueryImpl<CaseExecutionQuery,CaseExecution>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<CaseExecutionQuery,CaseExecution> page- used if the results must be paged. If null, no paging will be applied.
-
getCaseDefinitionId
-
getCaseDefinitionKey
-
getActivityId
-
getCaseExecutionId
-
getCaseInstanceId
-
getBusinessKey
-
getState
-
isCaseInstancesOnly
public boolean isCaseInstancesOnly() -
getSuperProcessInstanceId
-
getSubProcessInstanceId
-
getSuperCaseInstanceId
-
getSubCaseInstanceId
-
getDeploymentId
-
isRequired
-