Package org.camunda.bpm.engine.impl
Class HistoricVariableInstanceQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<HistoricVariableInstanceQuery,HistoricVariableInstance>
-
- org.camunda.bpm.engine.impl.HistoricVariableInstanceQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable,HistoricVariableInstanceQuery,Command<java.lang.Object>,Query<HistoricVariableInstanceQuery,HistoricVariableInstance>
public class HistoricVariableInstanceQueryImpl extends AbstractQuery<HistoricVariableInstanceQuery,HistoricVariableInstance> implements HistoricVariableInstanceQuery
- Author:
- Christian Lipphardt (camunda)
- 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[]activityInstanceIdsprotected java.lang.String[]caseActivityIdsprotected java.lang.String[]caseExecutionIdsprotected java.lang.StringcaseInstanceIdprotected java.lang.String[]executionIdsprotected booleanincludeDeletedprotected booleanisByteArrayFetchingEnabledprotected booleanisCustomObjectDeserializationEnabledprotected booleanisTenantIdSetprotected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessDefinitionKeyprotected java.lang.StringprocessInstanceIdprotected java.lang.String[]processInstanceIdsprotected QueryVariableValuequeryVariableValueprotected java.lang.String[]taskIdsprotected java.lang.String[]tenantIdsprotected java.lang.StringvariableIdprotected java.lang.StringvariableNameprotected java.lang.StringvariableNameLikeprotected java.lang.BooleanvariableNamesIgnoreCaseprotected java.lang.String[]variableTypesprotected java.lang.BooleanvariableValuesIgnoreCase-
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 HistoricVariableInstanceQueryImpl()HistoricVariableInstanceQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoricVariableInstanceQueryactivityInstanceIdIn(java.lang.String... activityInstanceIds)Only select historic variable instances which have one of the activity instance ids.HistoricVariableInstanceQuerycaseActivityIdIn(java.lang.String... caseActivityIds)Only select historic variable instances with one of the given case activity ids.HistoricVariableInstanceQuerycaseExecutionIdIn(java.lang.String... caseExecutionIds)Only select historic variable instances which have one of the case executions ids.HistoricVariableInstanceQuerycaseInstanceId(java.lang.String caseInstanceId)Only select historic case variables with the given case instance.HistoricVariableInstanceQuerydisableBinaryFetching()Disable fetching of byte array and file values.HistoricVariableInstanceQuerydisableCustomObjectDeserialization()Disable deserialization of variable values that are custom objects.protected voidensureVariablesInitialized()longexecuteCount(CommandContext commandContext)java.util.List<HistoricVariableInstance>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.HistoricVariableInstanceQueryexecutionIdIn(java.lang.String... executionIds)Only select historic variable instances which have one of the executions ids.java.lang.String[]getActivityInstanceIds()java.lang.String[]getCaseActivityIds()java.lang.String[]getCaseExecutionIds()java.lang.StringgetCaseInstanceId()java.lang.String[]getExecutionIds()java.lang.StringgetProcessDefinitionId()java.lang.StringgetProcessDefinitionKey()java.lang.StringgetProcessInstanceId()java.lang.String[]getProcessInstanceIds()QueryVariableValuegetQueryVariableValue()java.lang.String[]getTaskIds()java.lang.StringgetVariableName()java.lang.StringgetVariableNameLike()java.lang.BooleangetVariableNamesIgnoreCase()java.lang.BooleangetVariableValuesIgnoreCase()HistoricVariableInstanceQueryincludeDeleted()Include variables that has been already deleted during the executionbooleanisTenantIdSet()HistoricVariableInstanceQuerymatchVariableNamesIgnoreCase()The query will match the names of task and process variables in a case-insensitive way.HistoricVariableInstanceQuerymatchVariableValuesIgnoreCase()The query will match the values of task and process variables in a case-insensitive way.HistoricVariableInstanceQueryorderByProcessInstanceId()HistoricVariableInstanceQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).HistoricVariableInstanceQueryorderByVariableName()HistoricVariableInstanceQueryprocessDefinitionId(java.lang.String processDefinitionId)Only select historic process variables for the given process definitionHistoricVariableInstanceQueryprocessDefinitionKey(java.lang.String processDefinitionKey)Only select historic process variables for the given process definition keyHistoricVariableInstanceQueryImplprocessInstanceId(java.lang.String processInstanceId)Only select historic process variables with the given process instance.HistoricVariableInstanceQueryprocessInstanceIdIn(java.lang.String... processInstanceIds)Only select historic process variables with the given process instance ids.protected booleanshouldFetchValue(HistoricVariableInstanceEntity entity)HistoricVariableInstanceQuerytaskIdIn(java.lang.String... taskIds)Only select historic variable instances which have one of the task ids.HistoricVariableInstanceQuerytenantIdIn(java.lang.String... tenantIds)Only select historic variable instances with one of the given tenant ids.HistoricVariableInstanceQueryvariableId(java.lang.String id)Only select the variable with the given IdHistoricVariableInstanceQueryvariableName(java.lang.String variableName)Only select historic process variables with the given variable name.HistoricVariableInstanceQueryvariableNameLike(java.lang.String variableNameLike)Only select historic process variables where the given variable name is like.HistoricVariableInstanceQueryvariableTypeIn(java.lang.String... variableTypes)Only select historic process variables which match one of the given variable types.HistoricVariableInstanceQueryvariableValueEquals(java.lang.String variableName, java.lang.Object variableValue)only select historic process variables with the given name and valueHistoricVariableInstanceQuerywithoutTenantId()Only selects historic variable instances that have no tenant id.-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeDeploymentIdMappingsList, executeIdsList, 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.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
-
-
-
Field Detail
-
variableId
protected java.lang.String variableId
-
processInstanceId
protected java.lang.String processInstanceId
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
caseInstanceId
protected java.lang.String caseInstanceId
-
variableName
protected java.lang.String variableName
-
variableNameLike
protected java.lang.String variableNameLike
-
queryVariableValue
protected QueryVariableValue queryVariableValue
-
variableNamesIgnoreCase
protected java.lang.Boolean variableNamesIgnoreCase
-
variableValuesIgnoreCase
protected java.lang.Boolean variableValuesIgnoreCase
-
variableTypes
protected java.lang.String[] variableTypes
-
taskIds
protected java.lang.String[] taskIds
-
executionIds
protected java.lang.String[] executionIds
-
caseExecutionIds
protected java.lang.String[] caseExecutionIds
-
caseActivityIds
protected java.lang.String[] caseActivityIds
-
activityInstanceIds
protected java.lang.String[] activityInstanceIds
-
tenantIds
protected java.lang.String[] tenantIds
-
isTenantIdSet
protected boolean isTenantIdSet
-
processInstanceIds
protected java.lang.String[] processInstanceIds
-
includeDeleted
protected boolean includeDeleted
-
isByteArrayFetchingEnabled
protected boolean isByteArrayFetchingEnabled
-
isCustomObjectDeserializationEnabled
protected boolean isCustomObjectDeserializationEnabled
-
-
Constructor Detail
-
HistoricVariableInstanceQueryImpl
public HistoricVariableInstanceQueryImpl()
-
HistoricVariableInstanceQueryImpl
public HistoricVariableInstanceQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
variableId
public HistoricVariableInstanceQuery variableId(java.lang.String id)
Description copied from interface:HistoricVariableInstanceQueryOnly select the variable with the given Id- Specified by:
variableIdin interfaceHistoricVariableInstanceQuery- Parameters:
id- of the variable to select- Returns:
- the query object
-
processInstanceId
public HistoricVariableInstanceQueryImpl processInstanceId(java.lang.String processInstanceId)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic process variables with the given process instance.- Specified by:
processInstanceIdin interfaceHistoricVariableInstanceQuery
-
processDefinitionId
public HistoricVariableInstanceQuery processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic process variables for the given process definition- Specified by:
processDefinitionIdin interfaceHistoricVariableInstanceQuery
-
processDefinitionKey
public HistoricVariableInstanceQuery processDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic process variables for the given process definition key- Specified by:
processDefinitionKeyin interfaceHistoricVariableInstanceQuery
-
caseInstanceId
public HistoricVariableInstanceQuery caseInstanceId(java.lang.String caseInstanceId)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic case variables with the given case instance.- Specified by:
caseInstanceIdin interfaceHistoricVariableInstanceQuery
-
variableTypeIn
public HistoricVariableInstanceQuery variableTypeIn(java.lang.String... variableTypes)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic process variables which match one of the given variable types.- Specified by:
variableTypeInin interfaceHistoricVariableInstanceQuery
-
matchVariableNamesIgnoreCase
public HistoricVariableInstanceQuery matchVariableNamesIgnoreCase()
Description copied from interface:HistoricVariableInstanceQueryThe query will match the names of task and process variables in a case-insensitive way.- Specified by:
matchVariableNamesIgnoreCasein interfaceHistoricVariableInstanceQuery
-
matchVariableValuesIgnoreCase
public HistoricVariableInstanceQuery matchVariableValuesIgnoreCase()
Description copied from interface:HistoricVariableInstanceQueryThe query will match the values of task and process variables in a case-insensitive way.- Specified by:
matchVariableValuesIgnoreCasein interfaceHistoricVariableInstanceQuery
-
processInstanceIdIn
public HistoricVariableInstanceQuery processInstanceIdIn(java.lang.String... processInstanceIds)
Only select historic process variables with the given process instance ids.- Specified by:
processInstanceIdInin interfaceHistoricVariableInstanceQuery
-
taskIdIn
public HistoricVariableInstanceQuery taskIdIn(java.lang.String... taskIds)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic variable instances which have one of the task ids.- Specified by:
taskIdInin interfaceHistoricVariableInstanceQuery
-
executionIdIn
public HistoricVariableInstanceQuery executionIdIn(java.lang.String... executionIds)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic variable instances which have one of the executions ids.- Specified by:
executionIdInin interfaceHistoricVariableInstanceQuery
-
caseExecutionIdIn
public HistoricVariableInstanceQuery caseExecutionIdIn(java.lang.String... caseExecutionIds)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic variable instances which have one of the case executions ids.- Specified by:
caseExecutionIdInin interfaceHistoricVariableInstanceQuery
-
caseActivityIdIn
public HistoricVariableInstanceQuery caseActivityIdIn(java.lang.String... caseActivityIds)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic variable instances with one of the given case activity ids.- Specified by:
caseActivityIdInin interfaceHistoricVariableInstanceQuery
-
activityInstanceIdIn
public HistoricVariableInstanceQuery activityInstanceIdIn(java.lang.String... activityInstanceIds)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic variable instances which have one of the activity instance ids.- Specified by:
activityInstanceIdInin interfaceHistoricVariableInstanceQuery
-
variableName
public HistoricVariableInstanceQuery variableName(java.lang.String variableName)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic process variables with the given variable name.- Specified by:
variableNamein interfaceHistoricVariableInstanceQuery
-
variableValueEquals
public HistoricVariableInstanceQuery variableValueEquals(java.lang.String variableName, java.lang.Object variableValue)
Description copied from interface:HistoricVariableInstanceQueryonly select historic process variables with the given name and value- Specified by:
variableValueEqualsin interfaceHistoricVariableInstanceQuery
-
variableNameLike
public HistoricVariableInstanceQuery variableNameLike(java.lang.String variableNameLike)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic process variables where the given variable name is like.- Specified by:
variableNameLikein interfaceHistoricVariableInstanceQuery
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
-
disableBinaryFetching
public HistoricVariableInstanceQuery disableBinaryFetching()
Description copied from interface:HistoricVariableInstanceQueryDisable 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.- Specified by:
disableBinaryFetchingin interfaceHistoricVariableInstanceQuery- Returns:
- the query builder
-
disableCustomObjectDeserialization
public HistoricVariableInstanceQuery disableCustomObjectDeserialization()
Description copied from interface:HistoricVariableInstanceQueryDisable 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.- Specified by:
disableCustomObjectDeserializationin interfaceHistoricVariableInstanceQuery
-
tenantIdIn
public HistoricVariableInstanceQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:HistoricVariableInstanceQueryOnly select historic variable instances with one of the given tenant ids.- Specified by:
tenantIdInin interfaceHistoricVariableInstanceQuery
-
withoutTenantId
public HistoricVariableInstanceQuery withoutTenantId()
Description copied from interface:HistoricVariableInstanceQueryOnly selects historic variable instances that have no tenant id.- Specified by:
withoutTenantIdin interfaceHistoricVariableInstanceQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<HistoricVariableInstanceQuery,HistoricVariableInstance>
-
executeList
public java.util.List<HistoricVariableInstance> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<HistoricVariableInstanceQuery,HistoricVariableInstance>page- used if the results must be paged. If null, no paging will be applied.
-
shouldFetchValue
protected boolean shouldFetchValue(HistoricVariableInstanceEntity entity)
-
orderByProcessInstanceId
public HistoricVariableInstanceQuery orderByProcessInstanceId()
- Specified by:
orderByProcessInstanceIdin interfaceHistoricVariableInstanceQuery
-
orderByVariableName
public HistoricVariableInstanceQuery orderByVariableName()
- Specified by:
orderByVariableNamein interfaceHistoricVariableInstanceQuery
-
orderByTenantId
public HistoricVariableInstanceQuery orderByTenantId()
Description copied from interface:HistoricVariableInstanceQueryOrder 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.- Specified by:
orderByTenantIdin interfaceHistoricVariableInstanceQuery
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
-
getActivityInstanceIds
public java.lang.String[] getActivityInstanceIds()
-
getProcessInstanceIds
public java.lang.String[] getProcessInstanceIds()
-
getTaskIds
public java.lang.String[] getTaskIds()
-
getExecutionIds
public java.lang.String[] getExecutionIds()
-
getCaseExecutionIds
public java.lang.String[] getCaseExecutionIds()
-
getCaseActivityIds
public java.lang.String[] getCaseActivityIds()
-
isTenantIdSet
public boolean isTenantIdSet()
-
getVariableName
public java.lang.String getVariableName()
-
getVariableNameLike
public java.lang.String getVariableNameLike()
-
getQueryVariableValue
public QueryVariableValue getQueryVariableValue()
-
getVariableNamesIgnoreCase
public java.lang.Boolean getVariableNamesIgnoreCase()
-
getVariableValuesIgnoreCase
public java.lang.Boolean getVariableValuesIgnoreCase()
-
includeDeleted
public HistoricVariableInstanceQuery includeDeleted()
Description copied from interface:HistoricVariableInstanceQueryInclude variables that has been already deleted during the execution- Specified by:
includeDeletedin interfaceHistoricVariableInstanceQuery
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
-
-