Class CmmnVariableInstanceQueryImpl
java.lang.Object
org.flowable.cmmn.engine.impl.runtime.CmmnVariableInstanceQueryImpl
- All Implemented Interfaces:
VariableInstanceQuery
,Query<VariableInstanceQuery,
VariableInstance>
Wrapper class around the
VariableInstanceQueryImpl
from the variable service, specialized for usage in CMMN.- Author:
- Joram Barrez
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCmmnVariableInstanceQueryImpl
(CommandExecutor commandExecutor, CmmnEngineConfiguration cmmnEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionasc()
Order the results ascending on the given property as defined in this class (needs to come after a call to one of the orderByXxxx methods).caseInstanceId
(String caseInstanceId) Only select historic variables with the given case instance.long
count()
Executes the query and returns the number of resultsdesc()
Order the results descending on the given property as defined in this class (needs to come after a call to one of the orderByXxxx methods).Only select historic process variables which were not set local.Only select historic variables which were not set task-local.Don't initialize variable values.Only select a historic variable with the given id.list()
Executes the query and get a list of entities as the result.listPage
(int firstResult, int maxResults) Executes the query and get a list of entities as the result.orderBy
(QueryProperty property) orderBy
(QueryProperty property, Query.NullHandlingOnOrder nullHandlingOnOrder) order historic variables by the name.planItemInstanceId
(String planItemInstanceId) Only select historic variables with the given plan item instance id.Executes the query and returns the resulting entity or null if no entity matches the query criteria.Only select historic variables with the given task.Only select historic variables whose id is in the given set of ids.variableName
(String variableName) Only select historic variables with the given variable name.variableNameLike
(String variableNameLike) Only select historic variables where the given variable name is like.variableValueEquals
(String variableName, Object variableValue) only select historic variables with the given name and valuevariableValueLike
(String variableName, String variableValue) only select historic variables like the given name and valuevariableValueLikeIgnoreCase
(String variableName, String variableValue) only select historic variables like the given name and value (case insensitive)variableValueNotEquals
(String variableName, Object variableValue) only select historic variables that don't have the given name and value
-
Field Details
-
wrappedVariableInstanceQuery
-
-
Constructor Details
-
CmmnVariableInstanceQueryImpl
public CmmnVariableInstanceQueryImpl(CommandExecutor commandExecutor, CmmnEngineConfiguration cmmnEngineConfiguration)
-
-
Method Details
-
id
Description copied from interface:VariableInstanceQuery
Only select a historic variable with the given id.- Specified by:
id
in interfaceVariableInstanceQuery
-
caseInstanceId
Description copied from interface:VariableInstanceQuery
Only select historic variables with the given case instance.- Specified by:
caseInstanceId
in interfaceVariableInstanceQuery
-
planItemInstanceId
Description copied from interface:VariableInstanceQuery
Only select historic variables with the given plan item instance id.- Specified by:
planItemInstanceId
in interfaceVariableInstanceQuery
-
taskId
Description copied from interface:VariableInstanceQuery
Only select historic variables with the given task.- Specified by:
taskId
in interfaceVariableInstanceQuery
-
taskIds
Description copied from interface:VariableInstanceQuery
Only select historic variables whose id is in the given set of ids.- Specified by:
taskIds
in interfaceVariableInstanceQuery
-
variableName
Description copied from interface:VariableInstanceQuery
Only select historic variables with the given variable name.- Specified by:
variableName
in interfaceVariableInstanceQuery
-
variableNameLike
Description copied from interface:VariableInstanceQuery
Only select historic variables where the given variable name is like.- Specified by:
variableNameLike
in interfaceVariableInstanceQuery
-
excludeTaskVariables
Description copied from interface:VariableInstanceQuery
Only select historic variables which were not set task-local.- Specified by:
excludeTaskVariables
in interfaceVariableInstanceQuery
-
excludeLocalVariables
Description copied from interface:VariableInstanceQuery
Only select historic process variables which were not set local.- Specified by:
excludeLocalVariables
in interfaceVariableInstanceQuery
-
excludeVariableInitialization
Description copied from interface:VariableInstanceQuery
Don't initialize variable values. This is foremost a way to deal with variable delete queries- Specified by:
excludeVariableInitialization
in interfaceVariableInstanceQuery
-
variableValueEquals
Description copied from interface:VariableInstanceQuery
only select historic variables with the given name and value- Specified by:
variableValueEquals
in interfaceVariableInstanceQuery
-
variableValueNotEquals
Description copied from interface:VariableInstanceQuery
only select historic variables that don't have the given name and value- Specified by:
variableValueNotEquals
in interfaceVariableInstanceQuery
-
variableValueLike
Description copied from interface:VariableInstanceQuery
only select historic variables like the given name and value- Specified by:
variableValueLike
in interfaceVariableInstanceQuery
-
variableValueLikeIgnoreCase
Description copied from interface:VariableInstanceQuery
only select historic variables like the given name and value (case insensitive)- Specified by:
variableValueLikeIgnoreCase
in interfaceVariableInstanceQuery
-
orderByVariableName
Description copied from interface:VariableInstanceQuery
order historic variables by the name. Use asc() or desc() afterwards.- Specified by:
orderByVariableName
in interfaceVariableInstanceQuery
-
asc
Description copied from interface:Query
Order the results ascending on the given property as defined in this class (needs to come after a call to one of the orderByXxxx methods).- Specified by:
asc
in interfaceQuery<VariableInstanceQuery,
VariableInstance>
-
desc
Description copied from interface:Query
Order the results descending on the given property as defined in this class (needs to come after a call to one of the orderByXxxx methods).- Specified by:
desc
in interfaceQuery<VariableInstanceQuery,
VariableInstance>
-
orderBy
- Specified by:
orderBy
in interfaceQuery<VariableInstanceQuery,
VariableInstance>
-
orderBy
public VariableInstanceQuery orderBy(QueryProperty property, Query.NullHandlingOnOrder nullHandlingOnOrder) - Specified by:
orderBy
in interfaceQuery<VariableInstanceQuery,
VariableInstance>
-
count
public long count()Description copied from interface:Query
Executes the query and returns the number of results- Specified by:
count
in interfaceQuery<VariableInstanceQuery,
VariableInstance>
-
singleResult
Description copied from interface:Query
Executes the query and returns the resulting entity or null if no entity matches the query criteria.- Specified by:
singleResult
in interfaceQuery<VariableInstanceQuery,
VariableInstance>
-
list
Description copied from interface:Query
Executes the query and get a list of entities as the result.- Specified by:
list
in interfaceQuery<VariableInstanceQuery,
VariableInstance>
-
listPage
Description copied from interface:Query
Executes the query and get a list of entities as the result.- Specified by:
listPage
in interfaceQuery<VariableInstanceQuery,
VariableInstance>
-