public class CaseInstanceQueryImpl extends AbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance> implements CaseInstanceQuery
AbstractQuery.ResultType
Modifier and Type | Field and Description |
---|---|
protected String |
businessKey |
protected String |
caseDefinitionId |
protected String |
caseDefinitionKey |
protected String |
caseExecutionId |
protected String |
deploymentId |
protected boolean |
isTenantIdSet |
protected Boolean |
repeatable |
protected Boolean |
repetition |
protected Boolean |
required |
protected CaseExecutionState |
state |
protected String |
subCaseInstanceId |
protected String |
subProcessInstanceId |
protected String |
superCaseInstanceId |
protected String |
superProcessInstanceId |
protected String[] |
tenantIds |
queryVariableValues, variableNamesIgnoreCase, variableValuesIgnoreCase
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
Constructor and Description |
---|
CaseInstanceQueryImpl() |
CaseInstanceQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
CaseInstanceQuery |
active()
Only select case instances which are active.
|
CaseInstanceQuery |
caseDefinitionId(String caseDefinitionId)
Selects the case instances which are defined by a case definition
with the given id.
|
CaseInstanceQuery |
caseDefinitionKey(String caseDefinitionKey)
Select the case instances which are defined by a case definition with
the given key.
|
CaseInstanceQuery |
caseInstanceBusinessKey(String caseInstanceBusinessKey)
Select case instances with the given business key
|
CaseInstanceQuery |
caseInstanceId(String caseInstanceId)
Select the case instance with the given id
|
CaseInstanceQuery |
completed()
Only select case instances which are completed.
|
CaseInstanceQuery |
deploymentId(String deploymentId)
Selects the case instances which belong to the given deployment id.
|
long |
executeCount(CommandContext commandContext) |
List<CaseInstance> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
String |
getActivityId() |
String |
getBusinessKey() |
String |
getCaseDefinitionId() |
String |
getCaseDefinitionKey() |
String |
getCaseExecutionId() |
String |
getCaseInstanceId() |
String |
getDeploymentId() |
CaseExecutionState |
getState() |
String |
getSubCaseInstanceId() |
String |
getSubProcessInstanceId() |
String |
getSuperCaseInstanceId() |
String |
getSuperProcessInstanceId() |
boolean |
isCaseInstancesOnly() |
Boolean |
isRepeatable() |
Boolean |
isRepetition() |
Boolean |
isRequired() |
CaseInstanceQuery |
orderByCaseDefinitionId()
Order by case definition id (needs to be followed by
Query.asc() or Query.desc() ). |
CaseInstanceQuery |
orderByCaseDefinitionKey()
Order by case definition key (needs to be followed by
Query.asc() or Query.desc() ). |
CaseInstanceQuery |
orderByCaseInstanceId()
Order by id (needs to be followed by
Query.asc() or Query.desc() ). |
CaseInstanceQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc() ). |
CaseInstanceQuery |
subCaseInstanceId(String subCaseInstanceId)
Select the case instance that has as sub case instance the given
case instance.
|
CaseInstanceQuery |
subProcessInstanceId(String subProcessInstanceId)
Select the case instance that has as sub process instance the given
process instance.
|
CaseInstanceQuery |
superCaseInstanceId(String superCaseInstanceId)
Select the case instances which are a sub case instance of the given
super case instance.
|
CaseInstanceQuery |
superProcessInstanceId(String superProcessInstanceId)
Select the case instances which are a sub case instance of the given
super process instance.
|
CaseInstanceQuery |
tenantIdIn(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.
|
addVariable, ensureVariablesInitialized, getQueryVariableValues, isVariableNamesIgnoreCase, isVariableValuesIgnoreCase, matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unboundedResultList, validate, validate
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
protected String caseExecutionId
protected String businessKey
protected String caseDefinitionId
protected String caseDefinitionKey
protected String deploymentId
protected CaseExecutionState state
protected String superProcessInstanceId
protected String subProcessInstanceId
protected String superCaseInstanceId
protected String subCaseInstanceId
protected boolean isTenantIdSet
protected String[] tenantIds
protected Boolean required
protected Boolean repeatable
protected Boolean repetition
public CaseInstanceQueryImpl()
public CaseInstanceQueryImpl(CommandExecutor commandExecutor)
public CaseInstanceQuery caseInstanceId(String caseInstanceId)
CaseInstanceQuery
caseInstanceId
in interface CaseInstanceQuery
caseInstanceId
- the id of the case instancepublic CaseInstanceQuery caseInstanceBusinessKey(String caseInstanceBusinessKey)
CaseInstanceQuery
caseInstanceBusinessKey
in interface CaseInstanceQuery
caseInstanceBusinessKey
- the business key of the case instancepublic CaseInstanceQuery caseDefinitionKey(String caseDefinitionKey)
CaseInstanceQuery
caseDefinitionKey
in interface CaseInstanceQuery
caseDefinitionKey
- the key of the case definitionpublic CaseInstanceQuery caseDefinitionId(String caseDefinitionId)
CaseInstanceQuery
caseDefinitionId
in interface CaseInstanceQuery
caseDefinitionId
- the id of the case definitionpublic CaseInstanceQuery deploymentId(String deploymentId)
CaseInstanceQuery
deploymentId
in interface CaseInstanceQuery
public CaseInstanceQuery superProcessInstanceId(String superProcessInstanceId)
CaseInstanceQuery
superProcessInstanceId
in interface CaseInstanceQuery
public CaseInstanceQuery subProcessInstanceId(String subProcessInstanceId)
CaseInstanceQuery
subProcessInstanceId
in interface CaseInstanceQuery
public CaseInstanceQuery superCaseInstanceId(String superCaseInstanceId)
CaseInstanceQuery
superCaseInstanceId
in interface CaseInstanceQuery
public CaseInstanceQuery subCaseInstanceId(String subCaseInstanceId)
CaseInstanceQuery
subCaseInstanceId
in interface CaseInstanceQuery
public CaseInstanceQuery tenantIdIn(String... tenantIds)
CaseInstanceQuery
tenantIdIn
in interface CaseInstanceQuery
public CaseInstanceQuery withoutTenantId()
CaseInstanceQuery
withoutTenantId
in interface CaseInstanceQuery
public CaseInstanceQuery active()
CaseInstanceQuery
active
in interface CaseInstanceQuery
public CaseInstanceQuery completed()
CaseInstanceQuery
completed
in interface CaseInstanceQuery
public CaseInstanceQuery terminated()
CaseInstanceQuery
terminated
in interface CaseInstanceQuery
public CaseInstanceQuery orderByCaseInstanceId()
CaseInstanceQuery
Query.asc()
or Query.desc()
).orderByCaseInstanceId
in interface CaseInstanceQuery
public CaseInstanceQuery orderByCaseDefinitionKey()
CaseInstanceQuery
Query.asc()
or Query.desc()
).orderByCaseDefinitionKey
in interface CaseInstanceQuery
public CaseInstanceQuery orderByCaseDefinitionId()
CaseInstanceQuery
Query.asc()
or Query.desc()
).orderByCaseDefinitionId
in interface CaseInstanceQuery
public CaseInstanceQuery orderByTenantId()
CaseInstanceQuery
Query.asc()
or Query.desc()
).
Note that the ordering of case instances without tenant id is database-specific.orderByTenantId
in interface CaseInstanceQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
public List<CaseInstance> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
page
- used if the results must be paged. If null, no paging will be applied.public String getCaseInstanceId()
public String getCaseExecutionId()
public String getActivityId()
public String getBusinessKey()
public String getCaseDefinitionId()
public String getCaseDefinitionKey()
public String getDeploymentId()
public CaseExecutionState getState()
public boolean isCaseInstancesOnly()
public String getSuperProcessInstanceId()
public String getSubProcessInstanceId()
public String getSuperCaseInstanceId()
public String getSubCaseInstanceId()
public Boolean isRequired()
public Boolean isRepeatable()
public Boolean isRepetition()
Copyright © 2021. All rights reserved.