public class HistoricCaseInstanceQueryImpl extends AbstractVariableQueryImpl<HistoricCaseInstanceQuery,HistoricCaseInstance> implements HistoricCaseInstanceQuery
Modifier and Type | Field and Description |
---|---|
protected String |
businessKey |
protected String |
businessKeyLike |
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 |
notClosed |
protected Integer |
state |
protected String |
subCaseInstanceId |
protected String |
superCaseInstanceId |
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 |
---|
HistoricCaseInstanceQueryImpl() |
HistoricCaseInstanceQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
HistoricCaseInstanceQuery |
active()
Only select historic case instances which are active
|
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 |
getSuperCaseInstanceId() |
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() ). |
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 |
superCaseInstanceId(String superCaseInstanceId)
Only select historic case instances started by the given case instance.
|
HistoricCaseInstanceQuery |
suspended() |
HistoricCaseInstanceQuery |
terminated()
Only select historic 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 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 Date createdBefore
protected Date createdAfter
protected Date closedBefore
protected Date closedAfter
protected String caseDefinitionKey
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 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 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 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.public 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()
Copyright © 2018. All rights reserved.