Interface PlanItemInstanceQuery
- All Superinterfaces:
org.flowable.common.engine.api.query.Query<PlanItemInstanceQuery,
PlanItemInstance>
PlanItemInstance
s.
By default, as with other Flowable runtime API's, only runtime (not ended) plan item instances are returned.
However, PlanItemInstance
entities are only removed once a case instance has ended.
This means that PlanItemInstance
entities can still be queries when the case instance hasn't finished yet.
To return the 'ended' (i.e. completed/terminated/exit/occurred) instances, use the ended()
or includeEnded()
methods.- Author:
- Joram Barrez, Tijs Rademakers
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
org.flowable.common.engine.api.query.Query.NullHandlingOnOrder
-
Method Summary
Modifier and TypeMethodDescriptioncaseDefinitionId
(String caseDefinitionId) caseInstanceId
(String caseInstanceId) caseVariableExists
(String name) Only select plan item instances which have a global variable with the given name.caseVariableNotExists
(String name) Only select plan item instances which don't have a global variable with the given name.caseVariableValueEquals
(Object value) Only select plan item instances which have at least one global variable with the given value.caseVariableValueEquals
(String name, Object value) Only select plan item instances which have a global variable with the given value.caseVariableValueEqualsIgnoreCase
(String name, String value) Only select plan item instances which have a global string variable with the given value, case insensitive.caseVariableValueGreaterThan
(String name, Object value) Only select plan item instances which have a global variable value greater than the passed value.caseVariableValueGreaterThanOrEqual
(String name, Object value) Only select plan item instances which have a global variable value greater than or equal to the passed value.caseVariableValueLessThan
(String name, Object value) Only select plan item instances which have a global variable value less than the passed value.caseVariableValueLessThanOrEqual
(String name, Object value) Only select plan item instances which have a global variable value less than or equal to the passed value.caseVariableValueLike
(String name, String value) Only select plan item instances which have a global variable value like the given value.caseVariableValueLikeIgnoreCase
(String name, String value) Only select plan item instances which have a global variable value like the given value (case insensitive).caseVariableValueNotEquals
(String name, Object value) Only select plan item instances which have a global variable with the given name, but with a different value than the passed value.caseVariableValueNotEqualsIgnoreCase
(String name, String value) Only select plan item instances which have a global string variable which is not the given value, case insensitive.derivedCaseDefinitionId
(String derivedCaseDefinitionId) ended()
endOr()
End an OR statement.Include local plan item instance variables in the query resultinvolvedGroups
(Collection<String> involvedGroups) involvedUser
(String involvedUser) Localize plan item name to specified locale.or()
Begin an OR statement.planItemDefinitionId
(String planItemDefinitionId) planItemDefinitionType
(String planItemDefinitionType) planItemDefinitionTypes
(List<String> planItemDefinitionType) planItemInstanceCompletedAfter
(Date completedAfter) planItemInstanceCompletedBefore
(Date completedBefore) planItemInstanceCreatedAfter
(Date createdAfter) planItemInstanceCreatedBefore
(Date createdBefore) planItemInstanceElementId
(String elementId) planItemInstanceEndedAfter
(Date endedAfter) planItemInstanceEndedBefore
(Date endedBefore) planItemInstanceEntryCriterionId
(String entryCriterionId) planItemInstanceExitAfter
(Date exitAfter) planItemInstanceExitBefore
(Date exitBefore) planItemInstanceExitCriterionId
(String exitCriterionId) planItemInstanceExtraValue
(String extraValue) planItemInstanceFormKey
(String formKey) planItemInstanceId
(String planItemInstanceId) planItemInstanceLastAvailableAfter
(Date availableAfter) planItemInstanceLastAvailableBefore
(Date availableBefore) planItemInstanceLastDisabledAfter
(Date disabledAfter) planItemInstanceLastDisabledBefore
(Date disabledBefore) planItemInstanceLastEnabledAfter
(Date enabledAfter) planItemInstanceLastEnabledBefore
(Date enabledBefore) planItemInstanceLastStartedAfter
(Date startedAfter) planItemInstanceLastStartedBefore
(Date startedBefore) planItemInstanceLastSuspendedAfter
(Date suspendedAfter) planItemInstanceLastSuspendedBefore
(Date suspendedBefore) planItemInstanceLastUnavailableAfter
(Date unavailableAfter) planItemInstanceLastUnavailableBefore
(Date unavailableBefore) planItemInstanceName
(String name) planItemInstanceOccurredAfter
(Date occurredAfter) planItemInstanceOccurredBefore
(Date occurredBefore) planItemInstanceReferenceId
(String referenceId) planItemInstanceReferenceType
(String referenceType) planItemInstanceStartUserId
(String startUserId) planItemInstanceState
(String state) planItemInstanceTenantId
(String tenantId) planItemInstanceTerminatedAfter
(Date terminatedAfter) planItemInstanceTerminatedBefore
(Date terminatedBefore) stageInstanceId
(String stageInstanceId) variableExists
(String name) Only select plan item instances which have a local variable with the given name.variableNotExists
(String name) Only select plan item instances which don't have a local variable with the given name.variableValueEquals
(Object value) Only select plan item instances which have at least one local variable with the given value.variableValueEquals
(String name, Object value) Only select plan item instances which have a local variable with the given value.variableValueEqualsIgnoreCase
(String name, String value) Only select plan item instances which have a local string variable with the given value, case insensitive.variableValueGreaterThan
(String name, Object value) Only select plan item instances which have a local variable value greater than the passed value.variableValueGreaterThanOrEqual
(String name, Object value) Only select plan item instances which have a local variable value greater than or equal to the passed value.variableValueLessThan
(String name, Object value) Only select plan item instances which have a local variable value less than the passed value.variableValueLessThanOrEqual
(String name, Object value) Only select plan item instances which have a local variable value less than or equal to the passed value.variableValueLike
(String name, String value) Only select plan item instances which have a local variable value like the given value.variableValueLikeIgnoreCase
(String name, String value) Only select plan item instances which have a local variable value like the given value (case insensitive).variableValueNotEquals
(String name, Object value) Only select plan item instances which have a local variable with the given name, but with a different value than the passed value.variableValueNotEqualsIgnoreCase
(String name, String value) Only select plan item instances which have a local string variable which is not the given value, case insensitive.Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found.Methods inherited from interface org.flowable.common.engine.api.query.Query
asc, count, desc, list, listPage, orderBy, orderBy, singleResult
-
Method Details
-
caseDefinitionId
-
derivedCaseDefinitionId
-
caseInstanceId
-
stageInstanceId
-
planItemInstanceId
-
planItemInstanceElementId
-
planItemInstanceName
-
planItemInstanceState
-
planItemInstanceStateWaitingForRepetition
PlanItemInstanceQuery planItemInstanceStateWaitingForRepetition() -
planItemInstanceStateEnabled
PlanItemInstanceQuery planItemInstanceStateEnabled() -
planItemInstanceStateDisabled
PlanItemInstanceQuery planItemInstanceStateDisabled() -
planItemInstanceStateActive
PlanItemInstanceQuery planItemInstanceStateActive() -
planItemInstanceStateAsyncActive
PlanItemInstanceQuery planItemInstanceStateAsyncActive() -
planItemInstanceStateAsyncActiveLeave
PlanItemInstanceQuery planItemInstanceStateAsyncActiveLeave() -
planItemInstanceStateAvailable
PlanItemInstanceQuery planItemInstanceStateAvailable() -
planItemInstanceStateCompleted
PlanItemInstanceQuery planItemInstanceStateCompleted() -
planItemInstanceStateTerminated
PlanItemInstanceQuery planItemInstanceStateTerminated() -
planItemInstanceCreatedBefore
-
planItemInstanceCreatedAfter
-
planItemInstanceLastAvailableBefore
-
planItemInstanceLastAvailableAfter
-
planItemInstanceLastEnabledBefore
-
planItemInstanceLastEnabledAfter
-
planItemInstanceLastDisabledBefore
-
planItemInstanceLastDisabledAfter
-
planItemInstanceLastStartedBefore
-
planItemInstanceLastStartedAfter
-
planItemInstanceLastSuspendedBefore
-
planItemInstanceLastSuspendedAfter
-
planItemInstanceCompletedBefore
-
planItemInstanceCompletedAfter
-
planItemInstanceOccurredBefore
-
planItemInstanceOccurredAfter
-
planItemInstanceTerminatedBefore
-
planItemInstanceTerminatedAfter
-
planItemInstanceExitBefore
-
planItemInstanceExitAfter
-
planItemInstanceEndedBefore
-
planItemInstanceEndedAfter
-
planItemInstanceStartUserId
-
planItemInstanceReferenceId
-
planItemInstanceReferenceType
-
planItemInstanceEntryCriterionId
-
planItemInstanceExitCriterionId
-
planItemInstanceFormKey
-
planItemInstanceExtraValue
-
planItemInstanceCompletable
PlanItemInstanceQuery planItemInstanceCompletable() -
onlyStages
PlanItemInstanceQuery onlyStages() -
involvedUser
-
involvedGroups
-
planItemInstanceTenantId
-
planItemInstanceWithoutTenantId
PlanItemInstanceQuery planItemInstanceWithoutTenantId() -
planItemDefinitionId
-
planItemDefinitionType
-
planItemDefinitionTypes
-
or
Begin an OR statement. Make sure you invoke the endOr method at the end of your OR statement. -
endOr
PlanItemInstanceQuery endOr()End an OR statement. -
ended
PlanItemInstanceQuery ended()- Returns:
- The query will only return ended (completed/terminated/occurred/exited) plan item instances. No runtime instances will be returned.
-
includeEnded
PlanItemInstanceQuery includeEnded()- Returns:
- The query will include both runtime and ended (completed/terminated/occurred/exited) plan item instances.
-
variableValueEquals
Only select plan item instances which have a local variable with the given value. The type of variable is determined based on the value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- name of the variable, cannot be null.
-
variableValueEquals
Only select plan item instances which have at least one local variable with the given value. The type of variable is determined based on the value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported. -
variableValueEqualsIgnoreCase
Only select plan item instances which have a local string variable with the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Parameters:
name
- name of the variable, cannot be null.value
- value of the variable, cannot be null.
-
variableValueNotEquals
Only select plan item instances which have a local variable with the given name, but with a different value than the passed value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- name of the variable, cannot be null.
-
variableValueNotEqualsIgnoreCase
Only select plan item instances which have a local string variable which is not the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Parameters:
name
- name of the variable, cannot be null.value
- value of the variable, cannot be null.
-
variableValueGreaterThan
Only select plan item instances which have a local variable value greater than the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
variableValueGreaterThanOrEqual
Only select plan item instances which have a local variable value greater than or equal to the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
variableValueLessThan
Only select plan item instances which have a local variable value less than the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
variableValueLessThanOrEqual
Only select plan item instances which have a local variable value less than or equal to the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
variableValueLike
Only select plan item instances which have a local variable value like the given value. This be used on string variables only.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
variableValueLikeIgnoreCase
Only select plan item instances which have a local variable value like the given value (case insensitive). This be used on string variables only.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
variableExists
Only select plan item instances which have a local variable with the given name.- Parameters:
name
- cannot be null.
-
variableNotExists
Only select plan item instances which don't have a local variable with the given name.- Parameters:
name
- cannot be null.
-
caseVariableValueEquals
Only select plan item instances which have a global variable with the given value. The type of variable is determined based on the value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- name of the variable, cannot be null.
-
caseVariableValueEquals
Only select plan item instances which have at least one global variable with the given value. The type of variable is determined based on the value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported. -
caseVariableValueEqualsIgnoreCase
Only select plan item instances which have a global string variable with the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Parameters:
name
- name of the variable, cannot be null.value
- value of the variable, cannot be null.
-
caseVariableValueNotEquals
Only select plan item instances which have a global variable with the given name, but with a different value than the passed value. Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- name of the variable, cannot be null.
-
caseVariableValueNotEqualsIgnoreCase
Only select plan item instances which have a global string variable which is not the given value, case insensitive.This method only works if your database has encoding/collation that supports case-sensitive queries. For example, use "collate UTF-8" on MySQL and for MSSQL, select one of the case-sensitive Collations available (MSDN Server Collation Reference).
- Parameters:
name
- name of the variable, cannot be null.value
- value of the variable, cannot be null.
-
caseVariableValueGreaterThan
Only select plan item instances which have a global variable value greater than the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
caseVariableValueGreaterThanOrEqual
Only select plan item instances which have a global variable value greater than or equal to the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
caseVariableValueLessThan
Only select plan item instances which have a global variable value less than the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
caseVariableValueLessThanOrEqual
Only select plan item instances which have a global variable value less than or equal to the passed value. Booleans, Byte-arrays andSerializable
objects (which are not primitive type wrappers) are not supported.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null.
-
caseVariableValueLike
Only select plan item instances which have a global variable value like the given value. This be used on string variables only.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
caseVariableValueLikeIgnoreCase
Only select plan item instances which have a global variable value like the given value (case insensitive). This be used on string variables only.- Parameters:
name
- variable name, cannot be null.value
- variable value, cannot be null. The string can include the wildcard character '%' to express like-strategy: starts with (string%), ends with (%string) or contains (%string%).
-
caseVariableExists
Only select plan item instances which have a global variable with the given name.- Parameters:
name
- cannot be null.
-
caseVariableNotExists
Only select plan item instances which don't have a global variable with the given name.- Parameters:
name
- cannot be null.
-
includeLocalVariables
PlanItemInstanceQuery includeLocalVariables()Include local plan item instance variables in the query result -
locale
Localize plan item name to specified locale. -
withLocalizationFallback
PlanItemInstanceQuery withLocalizationFallback()Instruct localization to fallback to more general locales including the default locale of the JVM if the specified locale is not found. -
orderByCreateTime
PlanItemInstanceQuery orderByCreateTime() -
orderByEndTime
PlanItemInstanceQuery orderByEndTime() -
orderByName
PlanItemInstanceQuery orderByName()
-