public class HistoricCaseInstanceQueryImpl extends AbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> implements HistoricCaseInstanceQuery
AbstractQuery.ResultType
Modifier and Type | Field and Description |
---|---|
protected String |
businessKey |
protected String |
businessKeyLike |
protected String[] |
caseActivityIds |
protected String |
caseDefinitionId |
protected String |
caseDefinitionKey |
protected String |
caseDefinitionName |
protected String |
caseDefinitionNameLike |
protected String |
caseInstanceId |
protected Set<String> |
caseInstanceIds |
protected List<String> |
caseKeyNotIn |
protected Date |
closedAfter |
protected Date |
closedBefore |
protected Date |
createdAfter |
protected Date |
createdBefore |
protected String |
createdBy |
protected boolean |
isTenantIdSet |
protected Boolean |
notClosed |
protected Integer |
state |
protected String |
subCaseInstanceId |
protected String |
subProcessInstanceId |
protected String |
superCaseInstanceId |
protected String |
superProcessInstanceId |
protected String[] |
tenantIds |
queryVariableValues
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
Constructor and Description |
---|
HistoricCaseInstanceQueryImpl() |
HistoricCaseInstanceQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
HistoricCaseInstanceQuery |
active()
Only select historic case instances which are active
|
HistoricCaseInstanceQuery |
caseActivityIdIn(String... caseActivityIds)
Only selects historic case instances with historic case activity instances
in at least one of the given case activity ids.
|
HistoricCaseInstanceQueryImpl |
caseDefinitionId(String caseDefinitionId)
Only select historic case instances for the given case definition
|
HistoricCaseInstanceQuery |
caseDefinitionKey(String caseDefinitionKey)
Only select historic case instances that are defined by a case definition with the given key.
|
HistoricCaseInstanceQuery |
caseDefinitionKeyNotIn(List<String> caseDefinitionKeys)
Only select historic case instances that don't have a case definition of which the key is present in the given list
|
HistoricCaseInstanceQuery |
caseDefinitionName(String caseDefinitionName)
Only select historic case instances that are defined by a case definition with the given name.
|
HistoricCaseInstanceQuery |
caseDefinitionNameLike(String nameLike)
Only select historic case instances that are defined by case definition which name
is like the given value.
|
HistoricCaseInstanceQuery |
caseInstanceBusinessKey(String businessKey)
Only select historic case instances with the given business key
|
HistoricCaseInstanceQuery |
caseInstanceBusinessKeyLike(String businessKeyLike)
Only select historic case instances which had a business key like the given value.
|
HistoricCaseInstanceQueryImpl |
caseInstanceId(String caseInstanceId)
Only select historic case instances with the given case instance id.
|
HistoricCaseInstanceQuery |
caseInstanceIds(Set<String> caseInstanceIds)
Only select historic case instances whose id is in the given set of ids.
|
HistoricCaseInstanceQuery |
closed()
Only select historic case instances which are closed
|
HistoricCaseInstanceQuery |
closedAfter(Date date)
Only select historic case instances that were closed after the given date.
|
HistoricCaseInstanceQuery |
closedBefore(Date date)
Only select historic case instances that were closed before the given date.
|
HistoricCaseInstanceQuery |
completed()
Only select historic case instances which are completed
|
HistoricCaseInstanceQuery |
createdAfter(Date date)
Only select historic case instances that were created after the given date.
|
HistoricCaseInstanceQuery |
createdBefore(Date date)
Only select historic case instances that were created before the given date.
|
HistoricCaseInstanceQuery |
createdBy(String userId)
Only select historic case instance that are created by the given user.
|
long |
executeCount(CommandContext commandContext) |
List<HistoricCaseInstance> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
HistoricCaseInstanceQuery |
failed() |
String |
getBusinessKey() |
String |
getBusinessKeyLike() |
String |
getCaseDefinitionId() |
String |
getCaseDefinitionIdLike() |
String |
getCaseDefinitionKey() |
String |
getCaseDefinitionName() |
String |
getCaseDefinitionNameLike() |
String |
getCaseInstanceId() |
Set<String> |
getCaseInstanceIds() |
List<String> |
getCaseKeyNotIn() |
Date |
getClosedAfter() |
Date |
getClosedBefore() |
Date |
getCreatedAfter() |
Date |
getCreatedBefore() |
String |
getStartedBy() |
String |
getSubCaseInstanceId() |
String |
getSubProcessInstanceId() |
String |
getSuperCaseInstanceId() |
String |
getSuperProcessInstanceId() |
protected boolean |
hasExcludingConditions()
Whether or not the query has excluding conditions.
|
HistoricCaseInstanceQuery |
notClosed()
Only select historic case instance that are not yet closed.
|
HistoricCaseInstanceQuery |
orderByCaseDefinitionId()
Order by the case definition id (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricCaseInstanceQuery |
orderByCaseInstanceBusinessKey()
Order by the business key (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricCaseInstanceQuery |
orderByCaseInstanceCloseTime()
Order by the close time (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricCaseInstanceQuery |
orderByCaseInstanceCreateTime()
Order by the create time (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricCaseInstanceQuery |
orderByCaseInstanceDuration()
Order by the duration of the case instance (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricCaseInstanceQuery |
orderByCaseInstanceId()
Order by the case instance id (needs to be followed by
Query.asc() or Query.desc() ). |
HistoricCaseInstanceQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc() ). |
void |
setSuperCaseInstanceId(String superCaseInstanceId) |
HistoricCaseInstanceQuery |
subCaseInstanceId(String subCaseInstanceId)
Only select historic case instances having a sub case instance
with the given case instance id.
|
HistoricCaseInstanceQuery |
subProcessInstanceId(String subProcessInstanceId)
Only select historic case instances having a sub process instance
with the given process instance id.
|
HistoricCaseInstanceQuery |
superCaseInstanceId(String superCaseInstanceId)
Only select historic case instances started by the given case instance.
|
HistoricCaseInstanceQuery |
superProcessInstanceId(String superProcessInstanceId)
Only select historic case instances started by the given process instance.
|
HistoricCaseInstanceQuery |
suspended() |
HistoricCaseInstanceQuery |
tenantIdIn(String... tenantIds)
Only select historic case instances with one of the given tenant ids.
|
HistoricCaseInstanceQuery |
terminated()
Only select historic case instances which are terminated
|
HistoricCaseInstanceQuery |
withoutTenantId()
Only selects historic case instances which have no tenant id.
|
addVariable, ensureVariablesInitialized, getQueryVariableValues, 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, 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
variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
protected String caseInstanceId
protected String caseDefinitionId
protected String caseDefinitionName
protected String caseDefinitionNameLike
protected String businessKey
protected String businessKeyLike
protected Integer state
protected Boolean notClosed
protected String createdBy
protected String superCaseInstanceId
protected String subCaseInstanceId
protected String superProcessInstanceId
protected String subProcessInstanceId
protected Date createdBefore
protected Date createdAfter
protected Date closedBefore
protected Date closedAfter
protected String caseDefinitionKey
protected String[] caseActivityIds
protected boolean isTenantIdSet
protected String[] tenantIds
public HistoricCaseInstanceQueryImpl()
public HistoricCaseInstanceQueryImpl(CommandExecutor commandExecutor)
public HistoricCaseInstanceQueryImpl caseInstanceId(String caseInstanceId)
HistoricCaseInstanceQuery
caseInstanceId
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery caseInstanceIds(Set<String> caseInstanceIds)
HistoricCaseInstanceQuery
caseInstanceIds
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQueryImpl caseDefinitionId(String caseDefinitionId)
HistoricCaseInstanceQuery
caseDefinitionId
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery caseDefinitionKey(String caseDefinitionKey)
HistoricCaseInstanceQuery
caseDefinitionKey
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery caseDefinitionName(String caseDefinitionName)
HistoricCaseInstanceQuery
caseDefinitionName
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery caseDefinitionNameLike(String nameLike)
HistoricCaseInstanceQuery
caseDefinitionNameLike
in interface HistoricCaseInstanceQuery
nameLike
- The string can include the wildcard character '%' to express
like-strategy: starts with (string%), ends with (%string) or contains (%string%).public HistoricCaseInstanceQuery caseInstanceBusinessKey(String businessKey)
HistoricCaseInstanceQuery
caseInstanceBusinessKey
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery caseInstanceBusinessKeyLike(String businessKeyLike)
HistoricCaseInstanceQuery
caseInstanceBusinessKeyLike
in interface HistoricCaseInstanceQuery
businessKeyLike
- The string can include the wildcard character '%' to express
like-strategy: starts with (string%), ends with (%string) or contains (%string%).public HistoricCaseInstanceQuery createdBy(String userId)
HistoricCaseInstanceQuery
createdBy
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery caseDefinitionKeyNotIn(List<String> caseDefinitionKeys)
HistoricCaseInstanceQuery
caseDefinitionKeyNotIn
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery caseActivityIdIn(String... caseActivityIds)
HistoricCaseInstanceQuery
Only selects historic case instances with historic case activity instances in at least one of the given case activity ids.
caseActivityIdIn
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery createdAfter(Date date)
HistoricCaseInstanceQuery
createdAfter
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery createdBefore(Date date)
HistoricCaseInstanceQuery
createdBefore
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery closedAfter(Date date)
HistoricCaseInstanceQuery
closedAfter
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery closedBefore(Date date)
HistoricCaseInstanceQuery
closedBefore
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery superCaseInstanceId(String superCaseInstanceId)
HistoricCaseInstanceQuery
superCaseInstanceId
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery subCaseInstanceId(String subCaseInstanceId)
HistoricCaseInstanceQuery
subCaseInstanceId
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery superProcessInstanceId(String superProcessInstanceId)
HistoricCaseInstanceQuery
superProcessInstanceId
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery subProcessInstanceId(String subProcessInstanceId)
HistoricCaseInstanceQuery
subProcessInstanceId
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery tenantIdIn(String... tenantIds)
HistoricCaseInstanceQuery
tenantIdIn
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery withoutTenantId()
HistoricCaseInstanceQuery
withoutTenantId
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery active()
HistoricCaseInstanceQuery
active
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery completed()
HistoricCaseInstanceQuery
completed
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery terminated()
HistoricCaseInstanceQuery
terminated
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery failed()
public HistoricCaseInstanceQuery suspended()
public HistoricCaseInstanceQuery closed()
HistoricCaseInstanceQuery
closed
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery notClosed()
HistoricCaseInstanceQuery
notClosed
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery orderByCaseInstanceBusinessKey()
HistoricCaseInstanceQuery
Query.asc()
or Query.desc()
).orderByCaseInstanceBusinessKey
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery orderByCaseInstanceDuration()
HistoricCaseInstanceQuery
Query.asc()
or Query.desc()
).orderByCaseInstanceDuration
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery orderByCaseInstanceCreateTime()
HistoricCaseInstanceQuery
Query.asc()
or Query.desc()
).orderByCaseInstanceCreateTime
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery orderByCaseInstanceCloseTime()
HistoricCaseInstanceQuery
Query.asc()
or Query.desc()
).orderByCaseInstanceCloseTime
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery orderByCaseDefinitionId()
HistoricCaseInstanceQuery
Query.asc()
or Query.desc()
).orderByCaseDefinitionId
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery orderByCaseInstanceId()
HistoricCaseInstanceQuery
Query.asc()
or Query.desc()
).orderByCaseInstanceId
in interface HistoricCaseInstanceQuery
public HistoricCaseInstanceQuery orderByTenantId()
HistoricCaseInstanceQuery
Query.asc()
or Query.desc()
).
Note that the ordering of historic case instances without tenant id is database-specific.orderByTenantId
in interface HistoricCaseInstanceQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance>
public List<HistoricCaseInstance> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance>
page
- used if the results must be paged. If null, no paging will be applied.protected boolean hasExcludingConditions()
AbstractQuery
hasExcludingConditions
in class AbstractQuery<HistoricCaseInstanceQuery,HistoricCaseInstance>
true
if the query does have excluding conditions, false
otherwisepublic String getBusinessKey()
public String getBusinessKeyLike()
public String getCaseDefinitionId()
public String getCaseDefinitionKey()
public String getCaseDefinitionIdLike()
public String getCaseDefinitionName()
public String getCaseDefinitionNameLike()
public String getCaseInstanceId()
public String getStartedBy()
public String getSuperCaseInstanceId()
public void setSuperCaseInstanceId(String superCaseInstanceId)
public Date getCreatedAfter()
public Date getCreatedBefore()
public Date getClosedAfter()
public Date getClosedBefore()
public String getSubCaseInstanceId()
public String getSuperProcessInstanceId()
public String getSubProcessInstanceId()
Copyright © 2019. All rights reserved.