public class CaseInstanceQueryImpl extends AbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance> implements CaseInstanceQuery
Modifier and Type | Field and Description |
---|---|
protected String |
businessKey |
protected String |
caseDefinitionId |
protected String |
caseDefinitionKey |
protected String |
caseExecutionId |
protected CaseExecutionState |
state |
queryVariableValues
commandExecutor, expressions, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter
authDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled
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.
|
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() |
CaseExecutionState |
getState() |
boolean |
isCaseInstancesOnly() |
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 |
terminated()
Only select case instances which are terminated.
|
addVariable, ensureVariablesInitialized, getQueryVariableValues, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
addExpression, addOrder, addValidator, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteList, execute, executeSingleResult, extend, getExpressions, getMethod, getOrderBy, getOrderProperty, list, listPage, mergeExpressions, mergeOrdering, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, validate, validate
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
protected String caseExecutionId
protected String businessKey
protected String caseDefinitionId
protected String caseDefinitionKey
protected CaseExecutionState state
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 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 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 CaseExecutionState getState()
public boolean isCaseInstancesOnly()
Copyright © 2018. All rights reserved.