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[]
activityIds
protected java.lang.String
businessKey
protected java.lang.String
businessKeyLike
protected java.lang.String
caseInstanceId
protected java.lang.String
deploymentId
protected java.lang.String
incidentId
protected java.lang.String
incidentMessage
protected java.lang.String
incidentMessageLike
protected java.lang.String
incidentType
protected boolean
isLeafProcessInstances
protected boolean
isOrQueryActive
protected boolean
isProcessDefinitionWithoutTenantId
protected boolean
isRootProcessInstances
protected boolean
isTenantIdSet
protected java.lang.String
processDefinitionId
protected java.lang.String
processDefinitionKey
protected java.lang.String[]
processDefinitionKeyNotIn
protected java.lang.String[]
processDefinitionKeys
protected java.lang.String
processInstanceId
protected java.util.Set<java.lang.String>
processInstanceIds
protected java.util.List<ProcessInstanceQueryImpl>
queries
protected java.lang.String
subCaseInstanceId
protected java.lang.String
subProcessInstanceId
protected java.lang.String
superCaseInstanceId
protected java.lang.String
superProcessInstanceId
protected SuspensionState
suspensionState
protected java.lang.String[]
tenantIds
protected boolean
withIncident
-
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 ProcessInstanceQuery
active()
Only selects process instances which are active, which means that neither the process instance nor the corresponding process definition are suspended.ProcessInstanceQuery
activityIdIn(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.void
addOrQuery(ProcessInstanceQueryImpl orQuery)
ProcessInstanceQuery
caseInstanceId(java.lang.String caseInstanceId)
Selects the process instances which are associated with the given case instance id.protected void
checkQueryOk()
ProcessInstanceQuery
deploymentId(java.lang.String deploymentId)
Selects the process instances which belong to the given deployment id.ProcessInstanceQuery
endOr()
endOr() terminates an OR query on which an arbitrary amount of filter criteria were applied.protected void
ensureVariablesInitialized()
long
executeCount(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.String
getBusinessKey()
java.lang.String
getBusinessKeyLike()
java.lang.String
getCaseInstanceId()
java.lang.String
getDeploymentId()
java.lang.String
getIncidentId()
java.lang.String
getIncidentMessage()
java.lang.String
getIncidentMessageLike()
java.lang.String
getIncidentType()
java.lang.String
getProcessDefinitionId()
java.lang.String
getProcessDefinitionKey()
java.lang.String[]
getProcessDefinitionKeyNotIn()
java.lang.String[]
getProcessDefinitionKeys()
java.lang.String
getProcessInstanceId()
java.util.Set<java.lang.String>
getProcessInstanceIds()
java.util.List<ProcessInstanceQueryImpl>
getQueries()
java.lang.String
getSubCaseInstanceId()
java.lang.String
getSubProcessInstanceId()
java.lang.String
getSuperCaseInstanceId()
java.lang.String
getSuperProcessInstanceId()
SuspensionState
getSuspensionState()
java.lang.String[]
getTenantIds()
ProcessInstanceQuery
incidentId(java.lang.String incidentId)
Only selects process instances with the given incident id.ProcessInstanceQuery
incidentMessage(java.lang.String incidentMessage)
Only selects process instances with the given incident message.ProcessInstanceQuery
incidentMessageLike(java.lang.String incidentMessageLike)
Only selects process instances with an incident message like the given.ProcessInstanceQuery
incidentType(java.lang.String incidentType)
Only selects process instances with the given incident type.boolean
isLeafProcessInstances()
boolean
isOrQueryActive()
boolean
isProcessDefinitionWithoutTenantId()
boolean
isRootProcessInstances()
boolean
isTenantIdSet()
boolean
isWithIncident()
ProcessInstanceQuery
leafProcessInstances()
Only selects process instances which don't have subprocesses and thus are leaves of the execution tree.ProcessInstanceQuery
or()
After calling or(), a chain of several filter criteria could follow.ProcessInstanceQuery
orderByBusinessKey()
Order by the business key (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessInstanceQuery
orderByProcessDefinitionId()
Order by process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessInstanceQuery
orderByProcessDefinitionKey()
Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessInstanceQuery
orderByProcessInstanceId()
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessInstanceQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).ProcessInstanceQueryImpl
processDefinitionId(java.lang.String processDefinitionId)
Selects the process instances which are defined by a process definition with the given id.ProcessInstanceQueryImpl
processDefinitionKey(java.lang.String processDefinitionKey)
Select the process instances which are defined by a process definition with the given key.ProcessInstanceQuery
processDefinitionKeyIn(java.lang.String... processDefinitionKeys)
Select the process instances for any given process definition keys.ProcessInstanceQuery
processDefinitionKeyNotIn(java.lang.String... processDefinitionKeys)
Select historic process instances that don't have a process-definition of which the key is present in the given listProcessInstanceQuery
processDefinitionWithoutTenantId()
Only selects process instances which process definition has no tenant id.ProcessInstanceQuery
processInstanceBusinessKey(java.lang.String businessKey)
Select process instances with the given business keyProcessInstanceQuery
processInstanceBusinessKey(java.lang.String businessKey, java.lang.String processDefinitionKey)
Select process instance with the given business key, unique for the given process definitionProcessInstanceQuery
processInstanceBusinessKeyLike(java.lang.String businessKeyLike)
Select process instances with a business key like the given value.ProcessInstanceQueryImpl
processInstanceId(java.lang.String processInstanceId)
Select the process instance with the given idProcessInstanceQuery
processInstanceIds(java.util.Set<java.lang.String> processInstanceIds)
Select process instances whose id is in the given set of idsProcessInstanceQuery
rootProcessInstances()
Only selects process instances which are top level process instances.void
setOrQueryActive()
void
setSuspensionState(SuspensionState suspensionState)
ProcessInstanceQuery
subCaseInstanceId(java.lang.String subCaseInstanceId)
Select the process instance that has as sub case instance the given case instance.ProcessInstanceQuery
subProcessInstanceId(java.lang.String subProcessInstanceId)
Select the process instance that have as sub process instance the given process instance.ProcessInstanceQuery
superCaseInstanceId(java.lang.String superCaseInstanceId)
Select the process instances which are a sub process instance of the given super case instance.ProcessInstanceQuery
superProcessInstanceId(java.lang.String superProcessInstanceId)
Select the process instances which are a sub process instance of the given super process instance.ProcessInstanceQuery
suspended()
Only selects process instances which are suspended, either because the process instance itself is suspended or because the corresponding process definition is suspendedProcessInstanceQuery
tenantIdIn(java.lang.String... tenantIds)
Only select process instances with one of the given tenant ids.ProcessInstanceQuery
withIncident()
Only selects process instances with at least one incident.ProcessInstanceQuery
withoutTenantId()
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:ProcessInstanceQuery
Select the process instance with the given id- Specified by:
processInstanceId
in interfaceProcessInstanceQuery
-
processInstanceIds
public ProcessInstanceQuery processInstanceIds(java.util.Set<java.lang.String> processInstanceIds)
Description copied from interface:ProcessInstanceQuery
Select process instances whose id is in the given set of ids- Specified by:
processInstanceIds
in interfaceProcessInstanceQuery
-
processInstanceBusinessKey
public ProcessInstanceQuery processInstanceBusinessKey(java.lang.String businessKey)
Description copied from interface:ProcessInstanceQuery
Select process instances with the given business key- Specified by:
processInstanceBusinessKey
in interfaceProcessInstanceQuery
-
processInstanceBusinessKey
public ProcessInstanceQuery processInstanceBusinessKey(java.lang.String businessKey, java.lang.String processDefinitionKey)
Description copied from interface:ProcessInstanceQuery
Select process instance with the given business key, unique for the given process definition- Specified by:
processInstanceBusinessKey
in interfaceProcessInstanceQuery
-
processInstanceBusinessKeyLike
public ProcessInstanceQuery processInstanceBusinessKeyLike(java.lang.String businessKeyLike)
Description copied from interface:ProcessInstanceQuery
Select process instances with a business key like the given value.- Specified by:
processInstanceBusinessKeyLike
in 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:ProcessInstanceQuery
Selects the process instances which are defined by a process definition with the given id.- Specified by:
processDefinitionId
in interfaceProcessInstanceQuery
-
processDefinitionKey
public ProcessInstanceQueryImpl processDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:ProcessInstanceQuery
Select the process instances which are defined by a process definition with the given key.- Specified by:
processDefinitionKey
in interfaceProcessInstanceQuery
-
processDefinitionKeyIn
public ProcessInstanceQuery processDefinitionKeyIn(java.lang.String... processDefinitionKeys)
Description copied from interface:ProcessInstanceQuery
Select the process instances for any given process definition keys.- Specified by:
processDefinitionKeyIn
in interfaceProcessInstanceQuery
-
processDefinitionKeyNotIn
public ProcessInstanceQuery processDefinitionKeyNotIn(java.lang.String... processDefinitionKeys)
Description copied from interface:ProcessInstanceQuery
Select historic process instances that don't have a process-definition of which the key is present in the given list- Specified by:
processDefinitionKeyNotIn
in interfaceProcessInstanceQuery
-
deploymentId
public ProcessInstanceQuery deploymentId(java.lang.String deploymentId)
Description copied from interface:ProcessInstanceQuery
Selects the process instances which belong to the given deployment id.- Specified by:
deploymentId
in interfaceProcessInstanceQuery
-
superProcessInstanceId
public ProcessInstanceQuery superProcessInstanceId(java.lang.String superProcessInstanceId)
Description copied from interface:ProcessInstanceQuery
Select the process instances which are a sub process instance of the given super process instance.- Specified by:
superProcessInstanceId
in interfaceProcessInstanceQuery
-
subProcessInstanceId
public ProcessInstanceQuery subProcessInstanceId(java.lang.String subProcessInstanceId)
Description copied from interface:ProcessInstanceQuery
Select 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:
subProcessInstanceId
in interfaceProcessInstanceQuery
-
caseInstanceId
public ProcessInstanceQuery caseInstanceId(java.lang.String caseInstanceId)
Description copied from interface:ProcessInstanceQuery
Selects the process instances which are associated with the given case instance id.- Specified by:
caseInstanceId
in interfaceProcessInstanceQuery
-
superCaseInstanceId
public ProcessInstanceQuery superCaseInstanceId(java.lang.String superCaseInstanceId)
Description copied from interface:ProcessInstanceQuery
Select the process instances which are a sub process instance of the given super case instance.- Specified by:
superCaseInstanceId
in interfaceProcessInstanceQuery
-
subCaseInstanceId
public ProcessInstanceQuery subCaseInstanceId(java.lang.String subCaseInstanceId)
Description copied from interface:ProcessInstanceQuery
Select 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:
subCaseInstanceId
in interfaceProcessInstanceQuery
-
orderByProcessInstanceId
public ProcessInstanceQuery orderByProcessInstanceId()
Description copied from interface:ProcessInstanceQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceId
in interfaceProcessInstanceQuery
-
orderByProcessDefinitionId
public ProcessInstanceQuery orderByProcessDefinitionId()
Description copied from interface:ProcessInstanceQuery
Order by process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionId
in interfaceProcessInstanceQuery
-
orderByProcessDefinitionKey
public ProcessInstanceQuery orderByProcessDefinitionKey()
Description copied from interface:ProcessInstanceQuery
Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionKey
in interfaceProcessInstanceQuery
-
orderByTenantId
public ProcessInstanceQuery orderByTenantId()
Description copied from interface:ProcessInstanceQuery
Order 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:
orderByTenantId
in interfaceProcessInstanceQuery
-
orderByBusinessKey
public ProcessInstanceQuery orderByBusinessKey()
Description copied from interface:ProcessInstanceQuery
Order by the business key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByBusinessKey
in interfaceProcessInstanceQuery
-
active
public ProcessInstanceQuery active()
Description copied from interface:ProcessInstanceQuery
Only selects process instances which are active, which means that neither the process instance nor the corresponding process definition are suspended.- Specified by:
active
in interfaceProcessInstanceQuery
-
suspended
public ProcessInstanceQuery suspended()
Description copied from interface:ProcessInstanceQuery
Only selects process instances which are suspended, either because the process instance itself is suspended or because the corresponding process definition is suspended- Specified by:
suspended
in interfaceProcessInstanceQuery
-
withIncident
public ProcessInstanceQuery withIncident()
Description copied from interface:ProcessInstanceQuery
Only selects process instances with at least one incident.- Specified by:
withIncident
in interfaceProcessInstanceQuery
-
incidentType
public ProcessInstanceQuery incidentType(java.lang.String incidentType)
Description copied from interface:ProcessInstanceQuery
Only selects process instances with the given incident type.- Specified by:
incidentType
in interfaceProcessInstanceQuery
-
incidentId
public ProcessInstanceQuery incidentId(java.lang.String incidentId)
Description copied from interface:ProcessInstanceQuery
Only selects process instances with the given incident id.- Specified by:
incidentId
in interfaceProcessInstanceQuery
-
incidentMessage
public ProcessInstanceQuery incidentMessage(java.lang.String incidentMessage)
Description copied from interface:ProcessInstanceQuery
Only selects process instances with the given incident message.- Specified by:
incidentMessage
in interfaceProcessInstanceQuery
-
incidentMessageLike
public ProcessInstanceQuery incidentMessageLike(java.lang.String incidentMessageLike)
Description copied from interface:ProcessInstanceQuery
Only selects process instances with an incident message like the given.- Specified by:
incidentMessageLike
in interfaceProcessInstanceQuery
-
tenantIdIn
public ProcessInstanceQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:ProcessInstanceQuery
Only select process instances with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceProcessInstanceQuery
-
withoutTenantId
public ProcessInstanceQuery withoutTenantId()
Description copied from interface:ProcessInstanceQuery
Only selects process instances which have no tenant id.- Specified by:
withoutTenantId
in interfaceProcessInstanceQuery
-
activityIdIn
public ProcessInstanceQuery activityIdIn(java.lang.String... activityIds)
Description copied from interface:ProcessInstanceQuery
Only 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:
activityIdIn
in interfaceProcessInstanceQuery
-
rootProcessInstances
public ProcessInstanceQuery rootProcessInstances()
Description copied from interface:ProcessInstanceQuery
Only selects process instances which are top level process instances.- Specified by:
rootProcessInstances
in interfaceProcessInstanceQuery
-
leafProcessInstances
public ProcessInstanceQuery leafProcessInstances()
Description copied from interface:ProcessInstanceQuery
Only selects process instances which don't have subprocesses and thus are leaves of the execution tree.- Specified by:
leafProcessInstances
in interfaceProcessInstanceQuery
-
processDefinitionWithoutTenantId
public ProcessInstanceQuery processDefinitionWithoutTenantId()
Description copied from interface:ProcessInstanceQuery
Only selects process instances which process definition has no tenant id.- Specified by:
processDefinitionWithoutTenantId
in interfaceProcessInstanceQuery
-
checkQueryOk
protected void checkQueryOk()
- Overrides:
checkQueryOk
in classAbstractQuery<ProcessInstanceQuery,ProcessInstance>
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractVariableQueryImpl<ProcessInstanceQuery,ProcessInstance>
-
executeList
public java.util.List<ProcessInstance> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in 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:
executeIdsList
in classAbstractQuery<ProcessInstanceQuery,ProcessInstance>
-
executeDeploymentIdMappingsList
public java.util.List<ImmutablePair<java.lang.String,java.lang.String>> executeDeploymentIdMappingsList(CommandContext commandContext)
- Overrides:
executeDeploymentIdMappingsList
in classAbstractQuery<ProcessInstanceQuery,ProcessInstance>
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
- Overrides:
ensureVariablesInitialized
in 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:ProcessInstanceQuery
After 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:
or
in interfaceProcessInstanceQuery
- Returns:
- an object of the type
ProcessInstanceQuery
on 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:ProcessInstanceQuery
endOr() 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:
endOr
in interfaceProcessInstanceQuery
- Returns:
- an object of the type
ProcessInstanceQuery
on which an arbitrary amount of filter criteria could be applied. The filter criteria will be linked together by an AND expression.
-
-