public class ExecutionQueryImpl extends AbstractVariableQueryImpl<ExecutionQuery,Execution> implements ExecutionQuery
AbstractQuery.ResultType
Modifier and Type | Field and Description |
---|---|
protected String |
activityId |
protected String |
businessKey |
protected List<EventSubscriptionQueryValue> |
eventSubscriptions |
protected String |
executionId |
protected String |
incidentId |
protected String |
incidentMessage |
protected String |
incidentMessageLike |
protected String |
incidentType |
protected boolean |
isTenantIdSet |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
protected String |
processInstanceId |
protected SuspensionState |
suspensionState |
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 |
---|
ExecutionQueryImpl() |
ExecutionQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
ExecutionQuery |
active()
Only selects executions which are active (i.e.
|
ExecutionQueryImpl |
activityId(String activityId)
Only select executions which contain an activity with the given id.
|
ExecutionQuery |
eventSubscription(EventType eventType,
String eventName) |
long |
executeCount(CommandContext commandContext) |
List<Execution> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
ExecutionQueryImpl |
executionId(String executionId)
Only select executions with the given id.
|
String |
getActivityId() |
String |
getBusinessKey() |
List<EventSubscriptionQueryValue> |
getEventSubscriptions() |
String |
getExecutionId() |
String |
getIncidentId() |
String |
getIncidentMessage() |
String |
getIncidentMessageLike() |
String |
getIncidentType() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
String |
getProcessInstanceId() |
String |
getProcessInstanceIds() |
SuspensionState |
getSuspensionState() |
ExecutionQuery |
incidentId(String incidentId)
Only selects executions with the given incident id.
|
ExecutionQuery |
incidentMessage(String incidentMessage)
Only selects executions with the given incident message.
|
ExecutionQuery |
incidentMessageLike(String incidentMessageLike)
Only selects executions with an incident message like the given.
|
ExecutionQuery |
incidentType(String incidentType)
Only selects executions with the given incident type.
|
ExecutionQuery |
messageEventSubscription()
Only select executions that have a message event subscription.
|
ExecutionQuery |
messageEventSubscriptionName(String messageName)
Only select executions which have a message event subscription
for the given messageName.
|
ExecutionQueryImpl |
orderByProcessDefinitionId()
Order by process definition id (needs to be followed by
Query.asc() or Query.desc() ). |
ExecutionQueryImpl |
orderByProcessDefinitionKey()
Order by process definition key (needs to be followed by
Query.asc() or Query.desc() ). |
ExecutionQueryImpl |
orderByProcessInstanceId()
Order by id (needs to be followed by
Query.asc() or Query.desc() ). |
ExecutionQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc() ). |
ExecutionQueryImpl |
processDefinitionId(String processDefinitionId)
Only select executions which have the given process definition id.
|
ExecutionQueryImpl |
processDefinitionKey(String processDefinitionKey)
Only select executions which have the given process definition key.
|
ExecutionQuery |
processInstanceBusinessKey(String businessKey)
Only select executions that belong to a process instance with the given business key
|
ExecutionQueryImpl |
processInstanceId(String processInstanceId)
Only select executions which have the given process instance id.
|
ExecutionQuery |
processVariableValueEquals(String variableName,
Object variableValue)
Only select executions which are part of a process that have a variable
with the given name set to the given value.
|
ExecutionQuery |
processVariableValueNotEquals(String variableName,
Object variableValue)
Only select executions which are part of a process that have a variable with the given name, but
with a different value than the passed value.
|
void |
setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions) |
void |
setSuspensionState(SuspensionState suspensionState) |
ExecutionQuery |
signalEventSubscription(String signalName) |
ExecutionQuery |
signalEventSubscriptionName(String signalName)
Only select executions which have a signal event subscription
for the given signal name.
|
ExecutionQuery |
suspended()
Only selects executions which are suspended, because their process instance is suspended.
|
ExecutionQuery |
tenantIdIn(String... tenantIds)
Only selects executions with one of the given tenant ids.
|
ExecutionQuery |
withoutTenantId()
Only selects executions 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, 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
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
asc, count, desc, list, listPage, singleResult, unlimitedList
protected String processDefinitionId
protected String processDefinitionKey
protected String businessKey
protected String activityId
protected String executionId
protected String processInstanceId
protected List<EventSubscriptionQueryValue> eventSubscriptions
protected SuspensionState suspensionState
protected String incidentType
protected String incidentId
protected String incidentMessage
protected String incidentMessageLike
protected boolean isTenantIdSet
protected String[] tenantIds
public ExecutionQueryImpl()
public ExecutionQueryImpl(CommandExecutor commandExecutor)
public ExecutionQueryImpl processDefinitionId(String processDefinitionId)
ExecutionQuery
processDefinitionId
in interface ExecutionQuery
public ExecutionQueryImpl processDefinitionKey(String processDefinitionKey)
ExecutionQuery
processDefinitionKey
in interface ExecutionQuery
public ExecutionQueryImpl processInstanceId(String processInstanceId)
ExecutionQuery
processInstanceId
in interface ExecutionQuery
public ExecutionQuery processInstanceBusinessKey(String businessKey)
ExecutionQuery
processInstanceBusinessKey
in interface ExecutionQuery
public ExecutionQueryImpl executionId(String executionId)
ExecutionQuery
executionId
in interface ExecutionQuery
public ExecutionQueryImpl activityId(String activityId)
ExecutionQuery
activityId
in interface ExecutionQuery
public ExecutionQuery signalEventSubscription(String signalName)
signalEventSubscription
in interface ExecutionQuery
ExecutionQuery.signalEventSubscriptionName(String)
public ExecutionQuery signalEventSubscriptionName(String signalName)
ExecutionQuery
signalEventSubscriptionName
in interface ExecutionQuery
signalName
- the name of the signal the execution has subscribed topublic ExecutionQuery messageEventSubscriptionName(String messageName)
ExecutionQuery
messageEventSubscriptionName
in interface ExecutionQuery
messageName
- the name of the message the execution has subscribed topublic ExecutionQuery messageEventSubscription()
ExecutionQuery
ExecutionQuery.messageEventSubscriptionName(String)
to filter for executions
with message event subscriptions with a certain name.messageEventSubscription
in interface ExecutionQuery
public ExecutionQuery eventSubscription(EventType eventType, String eventName)
public ExecutionQuery suspended()
ExecutionQuery
suspended
in interface ExecutionQuery
public ExecutionQuery active()
ExecutionQuery
active
in interface ExecutionQuery
public ExecutionQuery processVariableValueEquals(String variableName, Object variableValue)
ExecutionQuery
processVariableValueEquals
in interface ExecutionQuery
public ExecutionQuery processVariableValueNotEquals(String variableName, Object variableValue)
ExecutionQuery
Serializable
objects (which are not primitive type wrappers)
are not supported.processVariableValueNotEquals
in interface ExecutionQuery
public ExecutionQuery incidentType(String incidentType)
ExecutionQuery
incidentType
in interface ExecutionQuery
public ExecutionQuery incidentId(String incidentId)
ExecutionQuery
incidentId
in interface ExecutionQuery
public ExecutionQuery incidentMessage(String incidentMessage)
ExecutionQuery
incidentMessage
in interface ExecutionQuery
public ExecutionQuery incidentMessageLike(String incidentMessageLike)
ExecutionQuery
incidentMessageLike
in interface ExecutionQuery
public ExecutionQuery tenantIdIn(String... tenantIds)
ExecutionQuery
tenantIdIn
in interface ExecutionQuery
public ExecutionQuery withoutTenantId()
ExecutionQuery
withoutTenantId
in interface ExecutionQuery
public ExecutionQueryImpl orderByProcessInstanceId()
ExecutionQuery
Query.asc()
or Query.desc()
).orderByProcessInstanceId
in interface ExecutionQuery
public ExecutionQueryImpl orderByProcessDefinitionId()
ExecutionQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionId
in interface ExecutionQuery
public ExecutionQueryImpl orderByProcessDefinitionKey()
ExecutionQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionKey
in interface ExecutionQuery
public ExecutionQuery orderByTenantId()
ExecutionQuery
Query.asc()
or Query.desc()
).
Note that the ordering of executions without tenant id is database-specific.orderByTenantId
in interface ExecutionQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractVariableQueryImpl<ExecutionQuery,Execution>
public List<Execution> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractVariableQueryImpl<ExecutionQuery,Execution>
page
- used if the results must be paged. If null, no paging will be applied.public String getProcessDefinitionKey()
public String getProcessDefinitionId()
public String getActivityId()
public String getProcessInstanceId()
public String getProcessInstanceIds()
public String getBusinessKey()
public String getExecutionId()
public SuspensionState getSuspensionState()
public void setSuspensionState(SuspensionState suspensionState)
public List<EventSubscriptionQueryValue> getEventSubscriptions()
public void setEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions)
public String getIncidentId()
public String getIncidentType()
public String getIncidentMessage()
public String getIncidentMessageLike()
Copyright © 2021. All rights reserved.