Package org.camunda.bpm.engine.impl
Class ExecutionQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<T,U>
org.camunda.bpm.engine.impl.AbstractVariableQueryImpl<ExecutionQuery,Execution>
org.camunda.bpm.engine.impl.ExecutionQueryImpl
- All Implemented Interfaces:
Serializable,Command<Object>,Query<ExecutionQuery,,Execution> ExecutionQuery
public class ExecutionQueryImpl
extends AbstractVariableQueryImpl<ExecutionQuery,Execution>
implements ExecutionQuery
- Author:
- Joram Barrez, Frederik Heremans, Daniel Meyer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected List<EventSubscriptionQueryValue>protected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected SuspensionStateprotected String[]Fields inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
queryVariableValues, variableNamesIgnoreCase, variableValuesIgnoreCaseFields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validatorsFields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactive()Only selects executions which are active (i.e.activityId(String activityId) Only select executions which contain an activity with the given id.eventSubscription(EventType eventType, String eventName) longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.executionId(String executionId) Only select executions with the given id.incidentId(String incidentId) Only selects executions with the given incident id.incidentMessage(String incidentMessage) Only selects executions with the given incident message.incidentMessageLike(String incidentMessageLike) Only selects executions with an incident message like the given.incidentType(String incidentType) Only selects executions with the given incident type.Only select executions that have a message event subscription.messageEventSubscriptionName(String messageName) Only select executions which have a message event subscription for the given messageName.Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).Order by id (needs to be followed byQuery.asc()orQuery.desc()).Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).processDefinitionId(String processDefinitionId) Only select executions which have the given process definition id.processDefinitionKey(String processDefinitionKey) Only select executions which have the given process definition key.processInstanceBusinessKey(String businessKey) Only select executions that belong to a process instance with the given business keyprocessInstanceId(String processInstanceId) Only select executions which have the given process instance id.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.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.voidsetEventSubscriptions(List<EventSubscriptionQueryValue> eventSubscriptions) voidsetSuspensionState(SuspensionState suspensionState) signalEventSubscription(String signalName) signalEventSubscriptionName(String signalName) Only select executions which have a signal event subscription for the given signal name.Only selects executions which are suspended, because their process instance is suspended.tenantIdIn(String... tenantIds) Only selects executions with one of the given tenant ids.Only selects executions which have no tenant id.Methods inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
addVariable, createQueryVariableValue, ensureVariablesInitialized, getQueryVariableValues, isVariableNamesIgnoreCase, isVariableValuesIgnoreCase, matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, validateVariable, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals, variableValueNotLikeMethods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
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, validateMethods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheckMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.runtime.ExecutionQuery
matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEqualsMethods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
processDefinitionId
-
processDefinitionKey
-
businessKey
-
activityId
-
executionId
-
processInstanceId
-
eventSubscriptions
-
suspensionState
-
incidentType
-
incidentId
-
incidentMessage
-
incidentMessageLike
-
isTenantIdSet
protected boolean isTenantIdSet -
tenantIds
-
-
Constructor Details
-
ExecutionQueryImpl
public ExecutionQueryImpl() -
ExecutionQueryImpl
-
-
Method Details
-
processDefinitionId
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition id.- Specified by:
processDefinitionIdin interfaceExecutionQuery
-
processDefinitionKey
Description copied from interface:ExecutionQueryOnly select executions which have the given process definition key.- Specified by:
processDefinitionKeyin interfaceExecutionQuery
-
processInstanceId
Description copied from interface:ExecutionQueryOnly select executions which have the given process instance id.- Specified by:
processInstanceIdin interfaceExecutionQuery
-
processInstanceBusinessKey
Description copied from interface:ExecutionQueryOnly select executions that belong to a process instance with the given business key- Specified by:
processInstanceBusinessKeyin interfaceExecutionQuery
-
executionId
Description copied from interface:ExecutionQueryOnly select executions with the given id.- Specified by:
executionIdin interfaceExecutionQuery
-
activityId
Description copied from interface:ExecutionQueryOnly select executions which contain an activity with the given id.- Specified by:
activityIdin interfaceExecutionQuery
-
signalEventSubscription
- Specified by:
signalEventSubscriptionin interfaceExecutionQuery- See Also:
-
signalEventSubscriptionName
Description copied from interface:ExecutionQueryOnly select executions which have a signal event subscription for the given signal name.(The signalName is specified using the 'name' attribute of the signal element in the BPMN 2.0 XML.)
- Specified by:
signalEventSubscriptionNamein interfaceExecutionQuery- Parameters:
signalName- the name of the signal the execution has subscribed to
-
messageEventSubscriptionName
Description copied from interface:ExecutionQueryOnly select executions which have a message event subscription for the given messageName.(The messageName is specified using the 'name' attribute of the message element in the BPMN 2.0 XML.)
- Specified by:
messageEventSubscriptionNamein interfaceExecutionQuery- Parameters:
messageName- the name of the message the execution has subscribed to
-
messageEventSubscription
Description copied from interface:ExecutionQueryOnly select executions that have a message event subscription. UseExecutionQuery.messageEventSubscriptionName(String)to filter for executions with message event subscriptions with a certain name.- Specified by:
messageEventSubscriptionin interfaceExecutionQuery
-
eventSubscription
-
suspended
Description copied from interface:ExecutionQueryOnly selects executions which are suspended, because their process instance is suspended.- Specified by:
suspendedin interfaceExecutionQuery
-
active
Description copied from interface:ExecutionQueryOnly selects executions which are active (i.e. not suspended).- Specified by:
activein interfaceExecutionQuery
-
processVariableValueEquals
Description copied from interface:ExecutionQueryOnly select executions which are part of a process that have a variable with the given name set to the given value.- Specified by:
processVariableValueEqualsin interfaceExecutionQuery
-
processVariableValueNotEquals
Description copied from interface:ExecutionQueryOnly 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. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueNotEqualsin interfaceExecutionQuery
-
incidentType
Description copied from interface:ExecutionQueryOnly selects executions with the given incident type.- Specified by:
incidentTypein interfaceExecutionQuery
-
incidentId
Description copied from interface:ExecutionQueryOnly selects executions with the given incident id.- Specified by:
incidentIdin interfaceExecutionQuery
-
incidentMessage
Description copied from interface:ExecutionQueryOnly selects executions with the given incident message.- Specified by:
incidentMessagein interfaceExecutionQuery
-
incidentMessageLike
Description copied from interface:ExecutionQueryOnly selects executions with an incident message like the given.- Specified by:
incidentMessageLikein interfaceExecutionQuery
-
tenantIdIn
Description copied from interface:ExecutionQueryOnly selects executions with one of the given tenant ids.- Specified by:
tenantIdInin interfaceExecutionQuery
-
withoutTenantId
Description copied from interface:ExecutionQueryOnly selects executions which have no tenant id.- Specified by:
withoutTenantIdin interfaceExecutionQuery
-
orderByProcessInstanceId
Description copied from interface:ExecutionQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceExecutionQuery
-
orderByProcessDefinitionId
Description copied from interface:ExecutionQueryOrder by process definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceExecutionQuery
-
orderByProcessDefinitionKey
Description copied from interface:ExecutionQueryOrder by process definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceExecutionQuery
-
orderByTenantId
Description copied from interface:ExecutionQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()). Note that the ordering of executions without tenant id is database-specific.- Specified by:
orderByTenantIdin interfaceExecutionQuery
-
executeCount
- Specified by:
executeCountin classAbstractVariableQueryImpl<ExecutionQuery,Execution>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<ExecutionQuery,Execution> page- used if the results must be paged. If null, no paging will be applied.
-
getProcessDefinitionKey
-
getProcessDefinitionId
-
getActivityId
-
getProcessInstanceId
-
getProcessInstanceIds
-
getBusinessKey
-
getExecutionId
-
getSuspensionState
-
setSuspensionState
-
getEventSubscriptions
-
setEventSubscriptions
-
getIncidentId
-
getIncidentType
-
getIncidentMessage
-
getIncidentMessageLike
-