Class ProcessInstanceQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<T,U>
-
- org.camunda.bpm.engine.impl.AbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
-
- org.camunda.bpm.engine.impl.ProcessInstanceQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable,Command<java.lang.Object>,Query<ProcessInstanceQuery,ProcessInstance>,ProcessInstanceQuery
public class ProcessInstanceQueryImpl extends AbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance> implements ProcessInstanceQuery, java.io.Serializable
- Author:
- Tom Baeyens, Joram Barrez, Frederik Heremans, Falko Menge, Daniel Meyer
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]activityIdsprotected java.lang.StringbusinessKeyprotected java.lang.StringbusinessKeyLikeprotected java.lang.StringcaseInstanceIdprotected java.lang.StringdeploymentIdprotected java.lang.StringincidentIdprotected java.lang.StringincidentMessageprotected java.lang.StringincidentMessageLikeprotected java.lang.StringincidentTypeprotected booleanisLeafProcessInstancesprotected booleanisOrQueryActiveprotected booleanisProcessDefinitionWithoutTenantIdprotected booleanisRootProcessInstancesprotected booleanisTenantIdSetprotected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessDefinitionKeyprotected java.lang.String[]processDefinitionKeyNotInprotected java.lang.String[]processDefinitionKeysprotected java.lang.StringprocessInstanceIdprotected java.util.Set<java.lang.String>processInstanceIdsprotected java.util.List<ProcessInstanceQueryImpl>queriesprotected java.lang.StringsubCaseInstanceIdprotected java.lang.StringsubProcessInstanceIdprotected java.lang.StringsuperCaseInstanceIdprotected java.lang.StringsuperProcessInstanceIdprotected SuspensionStatesuspensionStateprotected java.lang.String[]tenantIdsprotected booleanwithIncident-
Fields inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
queryVariableValues, variableNamesIgnoreCase, variableValuesIgnoreCase
-
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
-
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
-
Constructor Summary
Constructors Constructor Description ProcessInstanceQueryImpl()ProcessInstanceQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessInstanceQueryactive()Only selects process instances which are active, which means that neither the process instance nor the corresponding process definition are suspended.ProcessInstanceQueryactivityIdIn(java.lang.String... activityIds)Only selects process instances with leaf activity instances or transition instances (async before, async after) in at least one of the given activity ids.voidaddOrQuery(ProcessInstanceQueryImpl orQuery)ProcessInstanceQuerycaseInstanceId(java.lang.String caseInstanceId)Selects the process instances which are associated with the given case instance id.protected voidcheckQueryOk()ProcessInstanceQuerydeploymentId(java.lang.String deploymentId)Selects the process instances which belong to the given deployment id.ProcessInstanceQueryendOr()endOr() terminates an OR query on which an arbitrary amount of filter criteria were applied.protected voidensureVariablesInitialized()longexecuteCount(CommandContext commandContext)java.util.List<ImmutablePair<java.lang.String,java.lang.String>>executeDeploymentIdMappingsList(CommandContext commandContext)java.util.List<java.lang.String>executeIdsList(CommandContext commandContext)java.util.List<ProcessInstance>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.java.lang.String[]getActivityIds()java.lang.StringgetBusinessKey()java.lang.StringgetBusinessKeyLike()java.lang.StringgetCaseInstanceId()java.lang.StringgetDeploymentId()java.lang.StringgetIncidentId()java.lang.StringgetIncidentMessage()java.lang.StringgetIncidentMessageLike()java.lang.StringgetIncidentType()java.lang.StringgetProcessDefinitionId()java.lang.StringgetProcessDefinitionKey()java.lang.String[]getProcessDefinitionKeyNotIn()java.lang.String[]getProcessDefinitionKeys()java.lang.StringgetProcessInstanceId()java.util.Set<java.lang.String>getProcessInstanceIds()java.util.List<ProcessInstanceQueryImpl>getQueries()java.lang.StringgetSubCaseInstanceId()java.lang.StringgetSubProcessInstanceId()java.lang.StringgetSuperCaseInstanceId()java.lang.StringgetSuperProcessInstanceId()SuspensionStategetSuspensionState()java.lang.String[]getTenantIds()ProcessInstanceQueryincidentId(java.lang.String incidentId)Only selects process instances with the given incident id.ProcessInstanceQueryincidentMessage(java.lang.String incidentMessage)Only selects process instances with the given incident message.ProcessInstanceQueryincidentMessageLike(java.lang.String incidentMessageLike)Only selects process instances with an incident message like the given.ProcessInstanceQueryincidentType(java.lang.String incidentType)Only selects process instances with the given incident type.booleanisLeafProcessInstances()booleanisOrQueryActive()booleanisProcessDefinitionWithoutTenantId()booleanisRootProcessInstances()booleanisTenantIdSet()booleanisWithIncident()ProcessInstanceQueryleafProcessInstances()Only selects process instances which don't have subprocesses and thus are leaves of the execution tree.ProcessInstanceQueryor()After calling or(), a chain of several filter criteria could follow.ProcessInstanceQueryorderByBusinessKey()Order by the business key (needs to be followed byQuery.asc()orQuery.desc()).ProcessInstanceQueryorderByProcessDefinitionId()Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).ProcessInstanceQueryorderByProcessDefinitionKey()Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).ProcessInstanceQueryorderByProcessInstanceId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).ProcessInstanceQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).ProcessInstanceQueryImplprocessDefinitionId(java.lang.String processDefinitionId)Selects the process instances which are defined by a process definition with the given id.ProcessInstanceQueryImplprocessDefinitionKey(java.lang.String processDefinitionKey)Select the process instances which are defined by a process definition with the given key.ProcessInstanceQueryprocessDefinitionKeyIn(java.lang.String... processDefinitionKeys)Select the process instances for any given process definition keys.ProcessInstanceQueryprocessDefinitionKeyNotIn(java.lang.String... processDefinitionKeys)Select historic process instances that don't have a process-definition of which the key is present in the given listProcessInstanceQueryprocessDefinitionWithoutTenantId()Only selects process instances which process definition has no tenant id.ProcessInstanceQueryprocessInstanceBusinessKey(java.lang.String businessKey)Select process instances with the given business keyProcessInstanceQueryprocessInstanceBusinessKey(java.lang.String businessKey, java.lang.String processDefinitionKey)Select process instance with the given business key, unique for the given process definitionProcessInstanceQueryprocessInstanceBusinessKeyLike(java.lang.String businessKeyLike)Select process instances with a business key like the given value.ProcessInstanceQueryImplprocessInstanceId(java.lang.String processInstanceId)Select the process instance with the given idProcessInstanceQueryprocessInstanceIds(java.util.Set<java.lang.String> processInstanceIds)Select process instances whose id is in the given set of idsProcessInstanceQueryrootProcessInstances()Only selects process instances which are top level process instances.voidsetOrQueryActive()voidsetSuspensionState(SuspensionState suspensionState)ProcessInstanceQuerysubCaseInstanceId(java.lang.String subCaseInstanceId)Select the process instance that has as sub case instance the given case instance.ProcessInstanceQuerysubProcessInstanceId(java.lang.String subProcessInstanceId)Select the process instance that have as sub process instance the given process instance.ProcessInstanceQuerysuperCaseInstanceId(java.lang.String superCaseInstanceId)Select the process instances which are a sub process instance of the given super case instance.ProcessInstanceQuerysuperProcessInstanceId(java.lang.String superProcessInstanceId)Select the process instances which are a sub process instance of the given super process instance.ProcessInstanceQuerysuspended()Only selects process instances which are suspended, either because the process instance itself is suspended or because the corresponding process definition is suspendedProcessInstanceQuerytenantIdIn(java.lang.String... tenantIds)Only select process instances with one of the given tenant ids.ProcessInstanceQuerywithIncident()Only selects process instances with at least one incident.ProcessInstanceQuerywithoutTenantId()Only selects process instances which have no tenant id.-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractVariableQueryImpl
addVariable, createQueryVariableValue, getQueryVariableValues, isVariableNamesIgnoreCase, isVariableValuesIgnoreCase, matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, validateVariable, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals, variableValueNotLike
-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeResult, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validate
-
Methods 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, setTenantCheck
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
Methods inherited from interface org.camunda.bpm.engine.runtime.ProcessInstanceQuery
matchVariableNamesIgnoreCase, matchVariableValuesIgnoreCase, variableValueEquals, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueNotEquals
-
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
-
-
-
Field Detail
-
processInstanceId
protected java.lang.String processInstanceId
-
businessKey
protected java.lang.String businessKey
-
businessKeyLike
protected java.lang.String businessKeyLike
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processInstanceIds
protected java.util.Set<java.lang.String> processInstanceIds
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
processDefinitionKeys
protected java.lang.String[] processDefinitionKeys
-
processDefinitionKeyNotIn
protected java.lang.String[] processDefinitionKeyNotIn
-
deploymentId
protected java.lang.String deploymentId
-
superProcessInstanceId
protected java.lang.String superProcessInstanceId
-
subProcessInstanceId
protected java.lang.String subProcessInstanceId
-
suspensionState
protected SuspensionState suspensionState
-
withIncident
protected boolean withIncident
-
incidentType
protected java.lang.String incidentType
-
incidentId
protected java.lang.String incidentId
-
incidentMessage
protected java.lang.String incidentMessage
-
incidentMessageLike
protected java.lang.String incidentMessageLike
-
caseInstanceId
protected java.lang.String caseInstanceId
-
superCaseInstanceId
protected java.lang.String superCaseInstanceId
-
subCaseInstanceId
protected java.lang.String subCaseInstanceId
-
activityIds
protected java.lang.String[] activityIds
-
isRootProcessInstances
protected boolean isRootProcessInstances
-
isLeafProcessInstances
protected boolean isLeafProcessInstances
-
isTenantIdSet
protected boolean isTenantIdSet
-
tenantIds
protected java.lang.String[] tenantIds
-
isProcessDefinitionWithoutTenantId
protected boolean isProcessDefinitionWithoutTenantId
-
queries
protected java.util.List<ProcessInstanceQueryImpl> queries
-
isOrQueryActive
protected boolean isOrQueryActive
-
-
Constructor Detail
-
ProcessInstanceQueryImpl
public ProcessInstanceQueryImpl()
-
ProcessInstanceQueryImpl
public ProcessInstanceQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
processInstanceId
public ProcessInstanceQueryImpl processInstanceId(java.lang.String processInstanceId)
Description copied from interface:ProcessInstanceQuerySelect the process instance with the given id- Specified by:
processInstanceIdin interfaceProcessInstanceQuery
-
processInstanceIds
public ProcessInstanceQuery processInstanceIds(java.util.Set<java.lang.String> processInstanceIds)
Description copied from interface:ProcessInstanceQuerySelect process instances whose id is in the given set of ids- Specified by:
processInstanceIdsin interfaceProcessInstanceQuery
-
processInstanceBusinessKey
public ProcessInstanceQuery processInstanceBusinessKey(java.lang.String businessKey)
Description copied from interface:ProcessInstanceQuerySelect process instances with the given business key- Specified by:
processInstanceBusinessKeyin interfaceProcessInstanceQuery
-
processInstanceBusinessKey
public ProcessInstanceQuery processInstanceBusinessKey(java.lang.String businessKey, java.lang.String processDefinitionKey)
Description copied from interface:ProcessInstanceQuerySelect process instance with the given business key, unique for the given process definition- Specified by:
processInstanceBusinessKeyin interfaceProcessInstanceQuery
-
processInstanceBusinessKeyLike
public ProcessInstanceQuery processInstanceBusinessKeyLike(java.lang.String businessKeyLike)
Description copied from interface:ProcessInstanceQuerySelect process instances with a business key like the given value.- Specified by:
processInstanceBusinessKeyLikein interfaceProcessInstanceQuery- Parameters:
businessKeyLike- The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
processDefinitionId
public ProcessInstanceQueryImpl processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:ProcessInstanceQuerySelects the process instances which are defined by a process definition with the given id.- Specified by:
processDefinitionIdin interfaceProcessInstanceQuery
-
processDefinitionKey
public ProcessInstanceQueryImpl processDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:ProcessInstanceQuerySelect the process instances which are defined by a process definition with the given key.- Specified by:
processDefinitionKeyin interfaceProcessInstanceQuery
-
processDefinitionKeyIn
public ProcessInstanceQuery processDefinitionKeyIn(java.lang.String... processDefinitionKeys)
Description copied from interface:ProcessInstanceQuerySelect the process instances for any given process definition keys.- Specified by:
processDefinitionKeyInin interfaceProcessInstanceQuery
-
processDefinitionKeyNotIn
public ProcessInstanceQuery processDefinitionKeyNotIn(java.lang.String... processDefinitionKeys)
Description copied from interface:ProcessInstanceQuerySelect historic process instances that don't have a process-definition of which the key is present in the given list- Specified by:
processDefinitionKeyNotInin interfaceProcessInstanceQuery
-
deploymentId
public ProcessInstanceQuery deploymentId(java.lang.String deploymentId)
Description copied from interface:ProcessInstanceQuerySelects the process instances which belong to the given deployment id.- Specified by:
deploymentIdin interfaceProcessInstanceQuery
-
superProcessInstanceId
public ProcessInstanceQuery superProcessInstanceId(java.lang.String superProcessInstanceId)
Description copied from interface:ProcessInstanceQuerySelect the process instances which are a sub process instance of the given super process instance.- Specified by:
superProcessInstanceIdin interfaceProcessInstanceQuery
-
subProcessInstanceId
public ProcessInstanceQuery subProcessInstanceId(java.lang.String subProcessInstanceId)
Description copied from interface:ProcessInstanceQuerySelect the process instance that have as sub process instance the given process instance. Note that there will always be maximum only one such process instance that can be the result of this query.- Specified by:
subProcessInstanceIdin interfaceProcessInstanceQuery
-
caseInstanceId
public ProcessInstanceQuery caseInstanceId(java.lang.String caseInstanceId)
Description copied from interface:ProcessInstanceQuerySelects the process instances which are associated with the given case instance id.- Specified by:
caseInstanceIdin interfaceProcessInstanceQuery
-
superCaseInstanceId
public ProcessInstanceQuery superCaseInstanceId(java.lang.String superCaseInstanceId)
Description copied from interface:ProcessInstanceQuerySelect the process instances which are a sub process instance of the given super case instance.- Specified by:
superCaseInstanceIdin interfaceProcessInstanceQuery
-
subCaseInstanceId
public ProcessInstanceQuery subCaseInstanceId(java.lang.String subCaseInstanceId)
Description copied from interface:ProcessInstanceQuerySelect the process instance that has as sub case instance the given case instance. Note that there will always be at most one such process instance that can be the result of this query.- Specified by:
subCaseInstanceIdin interfaceProcessInstanceQuery
-
orderByProcessInstanceId
public ProcessInstanceQuery orderByProcessInstanceId()
Description copied from interface:ProcessInstanceQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceProcessInstanceQuery
-
orderByProcessDefinitionId
public ProcessInstanceQuery orderByProcessDefinitionId()
Description copied from interface:ProcessInstanceQueryOrder by process definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceProcessInstanceQuery
-
orderByProcessDefinitionKey
public ProcessInstanceQuery orderByProcessDefinitionKey()
Description copied from interface:ProcessInstanceQueryOrder by process definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceProcessInstanceQuery
-
orderByTenantId
public ProcessInstanceQuery orderByTenantId()
Description copied from interface:ProcessInstanceQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()). Note that the ordering of process instances without tenant id is database-specific.- Specified by:
orderByTenantIdin interfaceProcessInstanceQuery
-
orderByBusinessKey
public ProcessInstanceQuery orderByBusinessKey()
Description copied from interface:ProcessInstanceQueryOrder by the business key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByBusinessKeyin interfaceProcessInstanceQuery
-
active
public ProcessInstanceQuery active()
Description copied from interface:ProcessInstanceQueryOnly selects process instances which are active, which means that neither the process instance nor the corresponding process definition are suspended.- Specified by:
activein interfaceProcessInstanceQuery
-
suspended
public ProcessInstanceQuery suspended()
Description copied from interface:ProcessInstanceQueryOnly selects process instances which are suspended, either because the process instance itself is suspended or because the corresponding process definition is suspended- Specified by:
suspendedin interfaceProcessInstanceQuery
-
withIncident
public ProcessInstanceQuery withIncident()
Description copied from interface:ProcessInstanceQueryOnly selects process instances with at least one incident.- Specified by:
withIncidentin interfaceProcessInstanceQuery
-
incidentType
public ProcessInstanceQuery incidentType(java.lang.String incidentType)
Description copied from interface:ProcessInstanceQueryOnly selects process instances with the given incident type.- Specified by:
incidentTypein interfaceProcessInstanceQuery
-
incidentId
public ProcessInstanceQuery incidentId(java.lang.String incidentId)
Description copied from interface:ProcessInstanceQueryOnly selects process instances with the given incident id.- Specified by:
incidentIdin interfaceProcessInstanceQuery
-
incidentMessage
public ProcessInstanceQuery incidentMessage(java.lang.String incidentMessage)
Description copied from interface:ProcessInstanceQueryOnly selects process instances with the given incident message.- Specified by:
incidentMessagein interfaceProcessInstanceQuery
-
incidentMessageLike
public ProcessInstanceQuery incidentMessageLike(java.lang.String incidentMessageLike)
Description copied from interface:ProcessInstanceQueryOnly selects process instances with an incident message like the given.- Specified by:
incidentMessageLikein interfaceProcessInstanceQuery
-
tenantIdIn
public ProcessInstanceQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:ProcessInstanceQueryOnly select process instances with one of the given tenant ids.- Specified by:
tenantIdInin interfaceProcessInstanceQuery
-
withoutTenantId
public ProcessInstanceQuery withoutTenantId()
Description copied from interface:ProcessInstanceQueryOnly selects process instances which have no tenant id.- Specified by:
withoutTenantIdin interfaceProcessInstanceQuery
-
activityIdIn
public ProcessInstanceQuery activityIdIn(java.lang.String... activityIds)
Description copied from interface:ProcessInstanceQueryOnly selects process instances with leaf activity instances or transition instances (async before, async after) in at least one of the given activity ids.
Leaf instance means this filter works for instances of a user task is matched, but not the embedded sub process it is contained in.
- Specified by:
activityIdInin interfaceProcessInstanceQuery
-
rootProcessInstances
public ProcessInstanceQuery rootProcessInstances()
Description copied from interface:ProcessInstanceQueryOnly selects process instances which are top level process instances.- Specified by:
rootProcessInstancesin interfaceProcessInstanceQuery
-
leafProcessInstances
public ProcessInstanceQuery leafProcessInstances()
Description copied from interface:ProcessInstanceQueryOnly selects process instances which don't have subprocesses and thus are leaves of the execution tree.- Specified by:
leafProcessInstancesin interfaceProcessInstanceQuery
-
processDefinitionWithoutTenantId
public ProcessInstanceQuery processDefinitionWithoutTenantId()
Description copied from interface:ProcessInstanceQueryOnly selects process instances which process definition has no tenant id.- Specified by:
processDefinitionWithoutTenantIdin interfaceProcessInstanceQuery
-
checkQueryOk
protected void checkQueryOk()
- Overrides:
checkQueryOkin classAbstractQuery<ProcessInstanceQuery,ProcessInstance>
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
-
executeList
public java.util.List<ProcessInstance> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>page- used if the results must be paged. If null, no paging will be applied.
-
executeIdsList
public java.util.List<java.lang.String> executeIdsList(CommandContext commandContext)
- Overrides:
executeIdsListin classAbstractQuery<ProcessInstanceQuery,ProcessInstance>
-
executeDeploymentIdMappingsList
public java.util.List<ImmutablePair<java.lang.String,java.lang.String>> executeDeploymentIdMappingsList(CommandContext commandContext)
- Overrides:
executeDeploymentIdMappingsListin classAbstractQuery<ProcessInstanceQuery,ProcessInstance>
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
- Overrides:
ensureVariablesInitializedin classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
getProcessInstanceIds
public java.util.Set<java.lang.String> getProcessInstanceIds()
-
getQueries
public java.util.List<ProcessInstanceQueryImpl> getQueries()
-
addOrQuery
public void addOrQuery(ProcessInstanceQueryImpl orQuery)
-
setOrQueryActive
public void setOrQueryActive()
-
isOrQueryActive
public boolean isOrQueryActive()
-
getActivityIds
public java.lang.String[] getActivityIds()
-
getBusinessKey
public java.lang.String getBusinessKey()
-
getBusinessKeyLike
public java.lang.String getBusinessKeyLike()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
-
getProcessDefinitionKeys
public java.lang.String[] getProcessDefinitionKeys()
-
getProcessDefinitionKeyNotIn
public java.lang.String[] getProcessDefinitionKeyNotIn()
-
getDeploymentId
public java.lang.String getDeploymentId()
-
getSuperProcessInstanceId
public java.lang.String getSuperProcessInstanceId()
-
getSubProcessInstanceId
public java.lang.String getSubProcessInstanceId()
-
getSuspensionState
public SuspensionState getSuspensionState()
-
setSuspensionState
public void setSuspensionState(SuspensionState suspensionState)
-
isWithIncident
public boolean isWithIncident()
-
getIncidentId
public java.lang.String getIncidentId()
-
getIncidentType
public java.lang.String getIncidentType()
-
getIncidentMessage
public java.lang.String getIncidentMessage()
-
getIncidentMessageLike
public java.lang.String getIncidentMessageLike()
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
-
getSuperCaseInstanceId
public java.lang.String getSuperCaseInstanceId()
-
getSubCaseInstanceId
public java.lang.String getSubCaseInstanceId()
-
isTenantIdSet
public boolean isTenantIdSet()
-
isRootProcessInstances
public boolean isRootProcessInstances()
-
isProcessDefinitionWithoutTenantId
public boolean isProcessDefinitionWithoutTenantId()
-
isLeafProcessInstances
public boolean isLeafProcessInstances()
-
getTenantIds
public java.lang.String[] getTenantIds()
-
or
public ProcessInstanceQuery or()
Description copied from interface:ProcessInstanceQueryAfter calling or(), a chain of several filter criteria could follow. Each filter criterion that follows or() will be linked together with an OR expression until the OR query is terminated. To terminate the OR query right after the last filter criterion was applied,
ProcessInstanceQuery.endOr()must be invoked.- Specified by:
orin interfaceProcessInstanceQuery- Returns:
- an object of the type
ProcessInstanceQueryon which an arbitrary amount of filter criteria could be applied. The several filter criteria will be linked together by an OR expression.
-
endOr
public ProcessInstanceQuery endOr()
Description copied from interface:ProcessInstanceQueryendOr() terminates an OR query on which an arbitrary amount of filter criteria were applied. To terminate the OR query which has been started by invoking
ProcessInstanceQuery.or(), endOr() must be invoked. Filter criteria which are applied after calling endOr() are linked together by an AND expression.- Specified by:
endOrin interfaceProcessInstanceQuery- Returns:
- an object of the type
ProcessInstanceQueryon which an arbitrary amount of filter criteria could be applied. The filter criteria will be linked together by an AND expression.
-
-