public class ExecutionQueryImpl extends AbstractVariableQueryImpl<ExecutionQuery,Execution> implements ExecutionQuery
Modifier and Type | Field and Description |
---|---|
protected String |
activityId |
protected List<EventSubscriptionQueryValue> |
eventSubscriptions |
protected String |
executionId |
protected String |
incidentId |
protected String |
incidentMessage |
protected String |
incidentMessageLike |
protected String |
incidentType |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
protected String |
processInstanceId |
protected String |
subProcessInstanceId |
protected String |
superProcessInstanceId |
protected SuspensionState |
suspensionState |
queryVariableValues
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
databaseType, firstResult, maxResults, parameter
authDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled
Constructor and Description |
---|
ExecutionQueryImpl() |
ExecutionQueryImpl(CommandContext commandContext) |
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(String 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() |
boolean |
getOnlyProcessInstances() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
String |
getProcessInstanceId() |
String |
getProcessInstanceIds() |
String |
getSubProcessInstanceId() |
String |
getSuperProcessInstanceId() |
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.
|
boolean |
isProcessInstancesOnly() |
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() ). |
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.
|
addVariable, ensureVariablesInitialized, getQueryVariableValues, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
addOrder, asc, assertParamNotNull, assertParamNotNull, checkQueryOk, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult
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 processDefinitionId
protected String processDefinitionKey
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 String superProcessInstanceId
protected String subProcessInstanceId
public ExecutionQueryImpl()
public ExecutionQueryImpl(CommandContext commandContext)
public ExecutionQueryImpl(CommandExecutor commandExecutor)
public boolean isProcessInstancesOnly()
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 eventSubscription(String 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 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 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 boolean getOnlyProcessInstances()
public String getProcessDefinitionKey()
public String getProcessDefinitionId()
public String getActivityId()
public String getProcessInstanceId()
public String getProcessInstanceIds()
public String getBusinessKey()
public String getExecutionId()
public String getSuperProcessInstanceId()
public String getSubProcessInstanceId()
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 © 2015. All rights reserved.