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 |
queryVariableValuescommandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validatorsauthCheck, 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, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEqualsaddExpression, 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, validategetAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheckclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvariableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEqualsprotected 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)
ExecutionQueryprocessDefinitionId in interface ExecutionQuerypublic ExecutionQueryImpl processDefinitionKey(String processDefinitionKey)
ExecutionQueryprocessDefinitionKey in interface ExecutionQuerypublic ExecutionQueryImpl processInstanceId(String processInstanceId)
ExecutionQueryprocessInstanceId in interface ExecutionQuerypublic ExecutionQuery processInstanceBusinessKey(String businessKey)
ExecutionQueryprocessInstanceBusinessKey in interface ExecutionQuerypublic ExecutionQueryImpl executionId(String executionId)
ExecutionQueryexecutionId in interface ExecutionQuerypublic ExecutionQueryImpl activityId(String activityId)
ExecutionQueryactivityId in interface ExecutionQuerypublic ExecutionQuery signalEventSubscription(String signalName)
signalEventSubscription in interface ExecutionQueryExecutionQuery.signalEventSubscriptionName(String)public ExecutionQuery signalEventSubscriptionName(String signalName)
ExecutionQuerysignalEventSubscriptionName in interface ExecutionQuerysignalName - the name of the signal the execution has subscribed topublic ExecutionQuery messageEventSubscriptionName(String messageName)
ExecutionQuerymessageEventSubscriptionName in interface ExecutionQuerymessageName - the name of the message the execution has subscribed topublic ExecutionQuery messageEventSubscription()
ExecutionQueryExecutionQuery.messageEventSubscriptionName(String) to filter for executions
with message event subscriptions with a certain name.messageEventSubscription in interface ExecutionQuerypublic ExecutionQuery eventSubscription(EventType eventType, String eventName)
public ExecutionQuery suspended()
ExecutionQuerysuspended in interface ExecutionQuerypublic ExecutionQuery active()
ExecutionQueryactive in interface ExecutionQuerypublic ExecutionQuery processVariableValueEquals(String variableName, Object variableValue)
ExecutionQueryprocessVariableValueEquals in interface ExecutionQuerypublic ExecutionQuery processVariableValueNotEquals(String variableName, Object variableValue)
ExecutionQuerySerializable objects (which are not primitive type wrappers)
are not supported.processVariableValueNotEquals in interface ExecutionQuerypublic ExecutionQuery incidentType(String incidentType)
ExecutionQueryincidentType in interface ExecutionQuerypublic ExecutionQuery incidentId(String incidentId)
ExecutionQueryincidentId in interface ExecutionQuerypublic ExecutionQuery incidentMessage(String incidentMessage)
ExecutionQueryincidentMessage in interface ExecutionQuerypublic ExecutionQuery incidentMessageLike(String incidentMessageLike)
ExecutionQueryincidentMessageLike in interface ExecutionQuerypublic ExecutionQuery tenantIdIn(String... tenantIds)
ExecutionQuerytenantIdIn in interface ExecutionQuerypublic ExecutionQuery withoutTenantId()
ExecutionQuerywithoutTenantId in interface ExecutionQuerypublic ExecutionQueryImpl orderByProcessInstanceId()
ExecutionQueryQuery.asc() or Query.desc()).orderByProcessInstanceId in interface ExecutionQuerypublic ExecutionQueryImpl orderByProcessDefinitionId()
ExecutionQueryQuery.asc() or Query.desc()).orderByProcessDefinitionId in interface ExecutionQuerypublic ExecutionQueryImpl orderByProcessDefinitionKey()
ExecutionQueryQuery.asc() or Query.desc()).orderByProcessDefinitionKey in interface ExecutionQuerypublic ExecutionQuery orderByTenantId()
ExecutionQueryQuery.asc() or Query.desc()).
Note that the ordering of executions without tenant id is database-specific.orderByTenantId in interface ExecutionQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractVariableQueryImpl<ExecutionQuery,Execution>public List<Execution> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList 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 © 2022. All rights reserved.