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.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
activityId
protected java.lang.String
businessKey
protected java.lang.String
caseDefinitionId
protected java.lang.String
caseDefinitionKey
protected java.lang.String
caseExecutionId
protected java.lang.String
caseInstanceId
protected java.lang.String
deploymentId
protected boolean
isTenantIdSet
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 CaseExecutionQueryImpl()
CaseExecutionQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CaseExecutionQuery
active()
Only select case executions which are active.CaseExecutionQuery
activityId(java.lang.String activityId)
Only select case executions which contain an activity with the given id.CaseExecutionQuery
available()
Only select case executions which are available.CaseExecutionQuery
caseDefinitionId(java.lang.String caseDefinitionId)
Only select case executions which have the given case definition id.CaseExecutionQuery
caseDefinitionKey(java.lang.String caseDefinitionKey)
Only select case executions which have the given case definition key.CaseExecutionQuery
caseExecutionId(java.lang.String caseExecutionId)
Only select case executions with the given id.CaseExecutionQuery
caseInstanceBusinessKey(java.lang.String caseInstanceBusinessKey)
Only select case executions that belong to a case instance with the given business keyCaseExecutionQuery
caseInstanceId(java.lang.String caseInstanceId)
Only select case executions which have the given case instance id.CaseExecutionQuery
caseInstanceVariableValueEquals(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.CaseExecutionQuery
caseInstanceVariableValueGreaterThan(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.CaseExecutionQuery
caseInstanceVariableValueGreaterThanOrEqual(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.CaseExecutionQuery
caseInstanceVariableValueLessThan(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.CaseExecutionQuery
caseInstanceVariableValueLessThanOrEqual(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.CaseExecutionQuery
caseInstanceVariableValueLike(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.CaseExecutionQuery
caseInstanceVariableValueNotEquals(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.CaseExecutionQuery
disabled()
Only select case executions which are disabled.CaseExecutionQuery
enabled()
Only select case executions which are enabled.long
executeCount(CommandContext commandContext)
java.util.List<CaseExecution>
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
isRequired()
CaseExecutionQuery
orderByCaseDefinitionId()
Order by case definition id (needs to be followed byQuery.asc()
orQuery.desc()
).CaseExecutionQuery
orderByCaseDefinitionKey()
Order by case definition key (needs to be followed byQuery.asc()
orQuery.desc()
).CaseExecutionQuery
orderByCaseExecutionId()
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).CaseExecutionQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).CaseExecutionQuery
required()
Only select case executions which are required.CaseExecutionQuery
tenantIdIn(java.lang.String... tenantIds)
Only select case execution with one of the given tenant ids.CaseExecutionQuery
withoutTenantId()
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, 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.CaseExecutionQuery
matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
-
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
-
caseDefinitionId
protected java.lang.String caseDefinitionId
-
caseDefinitionKey
protected java.lang.String caseDefinitionKey
-
activityId
protected java.lang.String activityId
-
caseExecutionId
protected java.lang.String caseExecutionId
-
caseInstanceId
protected java.lang.String caseInstanceId
-
businessKey
protected java.lang.String businessKey
-
state
protected CaseExecutionState state
-
required
protected java.lang.Boolean required
-
isTenantIdSet
protected boolean isTenantIdSet
-
tenantIds
protected java.lang.String[] tenantIds
-
superProcessInstanceId
protected java.lang.String superProcessInstanceId
-
subProcessInstanceId
protected java.lang.String subProcessInstanceId
-
superCaseInstanceId
protected java.lang.String superCaseInstanceId
-
subCaseInstanceId
protected java.lang.String subCaseInstanceId
-
deploymentId
protected java.lang.String deploymentId
-
-
Constructor Detail
-
CaseExecutionQueryImpl
public CaseExecutionQueryImpl()
-
CaseExecutionQueryImpl
public CaseExecutionQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
caseInstanceId
public CaseExecutionQuery caseInstanceId(java.lang.String caseInstanceId)
Description copied from interface:CaseExecutionQuery
Only select case executions which have the given case instance id.- Specified by:
caseInstanceId
in interfaceCaseExecutionQuery
- Parameters:
caseInstanceId
- the id of the case instance
-
caseDefinitionId
public CaseExecutionQuery caseDefinitionId(java.lang.String caseDefinitionId)
Description copied from interface:CaseExecutionQuery
Only select case executions which have the given case definition id.- Specified by:
caseDefinitionId
in interfaceCaseExecutionQuery
- Parameters:
caseDefinitionId
- the id of the case definition
-
caseDefinitionKey
public CaseExecutionQuery caseDefinitionKey(java.lang.String caseDefinitionKey)
Description copied from interface:CaseExecutionQuery
Only select case executions which have the given case definition key.- Specified by:
caseDefinitionKey
in interfaceCaseExecutionQuery
- Parameters:
caseDefinitionKey
- the key of the case definition
-
caseInstanceBusinessKey
public CaseExecutionQuery caseInstanceBusinessKey(java.lang.String caseInstanceBusinessKey)
Description copied from interface:CaseExecutionQuery
Only select case executions that belong to a case instance with the given business key- Specified by:
caseInstanceBusinessKey
in interfaceCaseExecutionQuery
- Parameters:
caseInstanceBusinessKey
- the business key of the case instance
-
caseExecutionId
public CaseExecutionQuery caseExecutionId(java.lang.String caseExecutionId)
Description copied from interface:CaseExecutionQuery
Only select case executions with the given id.- Specified by:
caseExecutionId
in interfaceCaseExecutionQuery
- Parameters:
caseExecutionId
- the id of the case execution
-
activityId
public CaseExecutionQuery activityId(java.lang.String activityId)
Description copied from interface:CaseExecutionQuery
Only select case executions which contain an activity with the given id.- Specified by:
activityId
in interfaceCaseExecutionQuery
- Parameters:
activityId
- the id of the activity
-
tenantIdIn
public CaseExecutionQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:CaseExecutionQuery
Only select case execution with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceCaseExecutionQuery
-
withoutTenantId
public CaseExecutionQuery withoutTenantId()
Description copied from interface:CaseExecutionQuery
Only select case executions which have no tenant id.- Specified by:
withoutTenantId
in interfaceCaseExecutionQuery
-
required
public CaseExecutionQuery required()
Description copied from interface:CaseExecutionQuery
Only select case executions which are required.- Specified by:
required
in interfaceCaseExecutionQuery
-
available
public CaseExecutionQuery available()
Description copied from interface:CaseExecutionQuery
Only select case executions which are available.- Specified by:
available
in interfaceCaseExecutionQuery
-
enabled
public CaseExecutionQuery enabled()
Description copied from interface:CaseExecutionQuery
Only select case executions which are enabled.- Specified by:
enabled
in interfaceCaseExecutionQuery
-
active
public CaseExecutionQuery active()
Description copied from interface:CaseExecutionQuery
Only select case executions which are active.- Specified by:
active
in interfaceCaseExecutionQuery
-
disabled
public CaseExecutionQuery disabled()
Description copied from interface:CaseExecutionQuery
Only select case executions which are disabled.- Specified by:
disabled
in interfaceCaseExecutionQuery
-
caseInstanceVariableValueEquals
public CaseExecutionQuery caseInstanceVariableValueEquals(java.lang.String name, java.lang.Object value)
Description copied from interface:CaseExecutionQuery
Only 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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueEquals
in interfaceCaseExecutionQuery
- Parameters:
name
- the name of the variable, cannot be nullvalue
- the value of the variable
-
caseInstanceVariableValueNotEquals
public CaseExecutionQuery caseInstanceVariableValueNotEquals(java.lang.String name, java.lang.Object value)
Description copied from interface:CaseExecutionQuery
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. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueNotEquals
in interfaceCaseExecutionQuery
- Parameters:
name
- the name of the variable, cannot be nullvalue
- the value of the variable
-
caseInstanceVariableValueGreaterThan
public CaseExecutionQuery caseInstanceVariableValueGreaterThan(java.lang.String name, java.lang.Object value)
Description copied from interface:CaseExecutionQuery
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. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueGreaterThan
in interfaceCaseExecutionQuery
- Parameters:
name
- the name of the variable, cannot be nullvalue
- the value of the variable, cannot be null
-
caseInstanceVariableValueGreaterThanOrEqual
public CaseExecutionQuery caseInstanceVariableValueGreaterThanOrEqual(java.lang.String name, java.lang.Object value)
Description copied from interface:CaseExecutionQuery
Only 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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueGreaterThanOrEqual
in interfaceCaseExecutionQuery
- Parameters:
name
- the name of the variable, cannot be nullvalue
- the value of the variable, cannot be null
-
caseInstanceVariableValueLessThan
public CaseExecutionQuery caseInstanceVariableValueLessThan(java.lang.String name, java.lang.Object value)
Description copied from interface:CaseExecutionQuery
Only select case executions which are part of a case instance that have a variable value less than the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueLessThan
in interfaceCaseExecutionQuery
- Parameters:
name
- the name of the variable, cannot be nullvalue
- the value of the variable, cannot be null
-
caseInstanceVariableValueLessThanOrEqual
public CaseExecutionQuery caseInstanceVariableValueLessThanOrEqual(java.lang.String name, java.lang.Object value)
Description copied from interface:CaseExecutionQuery
Only 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 andSerializable
objects (which are not primitive type wrappers) are not supported.- Specified by:
caseInstanceVariableValueLessThanOrEqual
in interfaceCaseExecutionQuery
- Parameters:
name
- the name of the variable, cannot be nullvalue
- the value of the variable, cannot be null
-
caseInstanceVariableValueLike
public CaseExecutionQuery caseInstanceVariableValueLike(java.lang.String name, java.lang.String value)
Description copied from interface:CaseExecutionQuery
Only 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:
caseInstanceVariableValueLike
in 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
public CaseExecutionQuery orderByCaseExecutionId()
Description copied from interface:CaseExecutionQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseExecutionId
in interfaceCaseExecutionQuery
-
orderByCaseDefinitionKey
public CaseExecutionQuery orderByCaseDefinitionKey()
Description copied from interface:CaseExecutionQuery
Order by case definition key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionKey
in interfaceCaseExecutionQuery
-
orderByCaseDefinitionId
public CaseExecutionQuery orderByCaseDefinitionId()
Description copied from interface:CaseExecutionQuery
Order by case definition id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionId
in interfaceCaseExecutionQuery
-
orderByTenantId
public CaseExecutionQuery orderByTenantId()
Description copied from interface:CaseExecutionQuery
Order 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:
orderByTenantId
in interfaceCaseExecutionQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractVariableQueryImpl<CaseExecutionQuery,CaseExecution>
-
executeList
public java.util.List<CaseExecution> 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<CaseExecutionQuery,CaseExecution>
page
- used if the results must be paged. If null, no paging will be applied.
-
getCaseDefinitionId
public java.lang.String getCaseDefinitionId()
-
getCaseDefinitionKey
public java.lang.String getCaseDefinitionKey()
-
getActivityId
public java.lang.String getActivityId()
-
getCaseExecutionId
public java.lang.String getCaseExecutionId()
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
-
getBusinessKey
public java.lang.String getBusinessKey()
-
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()
-
getDeploymentId
public java.lang.String getDeploymentId()
-
isRequired
public java.lang.Boolean isRequired()
-
-