Package org.camunda.bpm.engine.history
Interface HistoricVariableInstanceQuery
- All Superinterfaces:
Query<HistoricVariableInstanceQuery,
HistoricVariableInstance>
- All Known Implementing Classes:
HistoricVariableInstanceQueryImpl
public interface HistoricVariableInstanceQuery
extends Query<HistoricVariableInstanceQuery,HistoricVariableInstance>
Programmatic querying for
HistoricVariableInstance
s.- Author:
- Christian Lipphardt (camunda)
-
Method Summary
Modifier and TypeMethodDescriptionactivityInstanceIdIn
(String... activityInstanceIds) Only select historic variable instances which have one of the activity instance ids.caseActivityIdIn
(String... caseActivityIds) Only select historic variable instances with one of the given case activity ids.caseExecutionIdIn
(String... caseExecutionIds) Only select historic variable instances which have one of the case executions ids.caseInstanceId
(String caseInstanceId) Only select historic case variables with the given case instance.Disable fetching of byte array and file values.Disable deserialization of variable values that are custom objects.executionIdIn
(String... executionIds) Only select historic variable instances which have one of the executions ids.Include variables that has been already deleted during the executionThe query will match the names of task and process variables in a case-insensitive way.The query will match the values of task and process variables in a case-insensitive way.Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).processDefinitionId
(String processDefinitionId) Only select historic process variables for the given process definitionprocessDefinitionKey
(String processDefinitionKey) Only select historic process variables for the given process definition keyprocessInstanceId
(String processInstanceId) Only select historic process variables with the given process instance.processInstanceIdIn
(String... processInstanceIds) Only select historic process variables with the given process instance ids.Only select historic variable instances which have one of the task ids.tenantIdIn
(String... tenantIds) Only select historic variable instances with one of the given tenant ids.variableId
(String id) Only select the variable with the given IdvariableName
(String variableName) Only select historic process variables with the given variable name.variableNameIn
(String... names) Only select historic process variables with the given variable names.variableNameLike
(String variableNameLike) Only select historic process variables where the given variable name is like.variableTypeIn
(String... variableTypes) Only select historic process variables which match one of the given variable types.variableValueEquals
(String variableName, Object variableValue) only select historic process variables with the given name and valueOnly selects historic variable instances that have no tenant id.Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Method Details
-
variableId
Only select the variable with the given Id- Parameters:
id
- of the variable to select- Returns:
- the query object
-
processInstanceId
Only select historic process variables with the given process instance. -
processDefinitionId
Only select historic process variables for the given process definition -
processDefinitionKey
Only select historic process variables for the given process definition key -
caseInstanceId
Only select historic case variables with the given case instance. -
variableName
Only select historic process variables with the given variable name. -
variableNameLike
Only select historic process variables where the given variable name is like. -
variableTypeIn
Only select historic process variables which match one of the given variable types. -
matchVariableNamesIgnoreCase
HistoricVariableInstanceQuery matchVariableNamesIgnoreCase()The query will match the names of task and process variables in a case-insensitive way. -
matchVariableValuesIgnoreCase
HistoricVariableInstanceQuery matchVariableValuesIgnoreCase()The query will match the values of task and process variables in a case-insensitive way. -
variableValueEquals
only select historic process variables with the given name and value -
orderByProcessInstanceId
HistoricVariableInstanceQuery orderByProcessInstanceId() -
orderByVariableName
HistoricVariableInstanceQuery orderByVariableName() -
processInstanceIdIn
Only select historic process variables with the given process instance ids. -
taskIdIn
Only select historic variable instances which have one of the task ids. -
executionIdIn
Only select historic variable instances which have one of the executions ids. -
caseExecutionIdIn
Only select historic variable instances which have one of the case executions ids. -
caseActivityIdIn
Only select historic variable instances with one of the given case activity ids. -
activityInstanceIdIn
Only select historic variable instances which have one of the activity instance ids. -
tenantIdIn
Only select historic variable instances with one of the given tenant ids. -
withoutTenantId
HistoricVariableInstanceQuery withoutTenantId()Only selects historic variable instances that have no tenant id. -
orderByTenantId
HistoricVariableInstanceQuery orderByTenantId()Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of historic variable instances without tenant id is database-specific. -
disableBinaryFetching
HistoricVariableInstanceQuery disableBinaryFetching()Disable fetching of byte array and file values. By default, the query will fetch such values. By calling this method you can prevent the values of (potentially large) blob data chunks to be fetched. The variables themselves are nonetheless included in the query result.- Returns:
- the query builder
-
disableCustomObjectDeserialization
HistoricVariableInstanceQuery disableCustomObjectDeserialization()Disable deserialization of variable values that are custom objects. By default, the query will attempt to deserialize the value of these variables. By calling this method you can prevent such attempts in environments where their classes are not available. Independent of this setting, variable serialized values are accessible. -
includeDeleted
HistoricVariableInstanceQuery includeDeleted()Include variables that has been already deleted during the execution -
variableNameIn
Only select historic process variables with the given variable names.
-