Package org.camunda.bpm.engine.impl
Class HistoricDecisionInstanceQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<HistoricDecisionInstanceQuery,HistoricDecisionInstance>
org.camunda.bpm.engine.impl.HistoricDecisionInstanceQueryImpl
- All Implemented Interfaces:
Serializable
,HistoricDecisionInstanceQuery
,Command<Object>
,Query<HistoricDecisionInstanceQuery,
HistoricDecisionInstance>
public class HistoricDecisionInstanceQueryImpl
extends AbstractQuery<HistoricDecisionInstanceQuery,HistoricDecisionInstance>
implements HistoricDecisionInstanceQuery
- Author:
- Philipp Ossler
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
Field Summary
Modifier and TypeFieldDescriptionprotected String[]
protected String[]
protected String
protected String
protected String
protected String
protected String[]
protected String
protected String[]
protected String
protected String
protected String
protected String[]
protected String
protected String
protected Date
protected Date
protected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected String
protected String
protected String
protected String
protected boolean
protected String[]
protected String
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
-
Method Summary
Modifier and TypeMethodDescriptionactivityIdIn
(String... activityIds) Only select historic decision instances that are evaluated inside a process or a case which have one of the activity ids.activityInstanceIdIn
(String... activityInstanceIds) Only select historic decision instances that are evaluated inside a process or a case which have one of the activity instance ids.caseDefinitionId
(String caseDefinitionId) Only select historic decision instances that are evaluated inside a case with the given case definition id.caseDefinitionKey
(String caseDefinitionKey) Only select historic decision instances that are evaluated inside a case with the given case definition key.caseInstanceId
(String caseInstanceId) Only select historic decision instances that are evaluated inside a case with the given case instance id.decisionDefinitionId
(String decisionDefinitionId) Only select historic decision instances for the given decision definitiondecisionDefinitionIdIn
(String... decisionDefinitionIdIn) Only select historic decision instances for the given decision definitionsdecisionDefinitionKey
(String decisionDefinitionKey) Only select historic decision instances with the given key of the decision definition.decisionDefinitionKeyIn
(String... decisionDefinitionKeyIn) Only select historic decision instances with the given keys of the decision definition.decisionDefinitionName
(String decisionDefinitionName) Only select historic decision instances with the given name of the decision definition.decisionDefinitionNameLike
(String decisionDefinitionNameLike) Only select historic decision instances with the given name of the decision definition using LIKE construct.decisionInstanceId
(String decisionInstanceId) Only select historic decision instances with the given decision instance id.decisionInstanceIdIn
(String... decisionInstanceIdIn) Only select historic decision instances whose id is in the given list of ids.decisionRequirementsDefinitionId
(String decisionRequirementsDefinitionId) Only select historic decision instances that belongs to a decision requirements definition with the given id.decisionRequirementsDefinitionKey
(String decisionRequirementsDefinitionKey) Only select historic decision instances that belongs to a decision requirements definition with the given key.Disable fetching of byte array input and output values.Disable deserialization of input and output values that are custom objects.evaluatedAfter
(Date evaluatedAfter) Only select historic decision instances that were evaluated after the given date.evaluatedBefore
(Date evaluatedBefore) Only select historic decision instances that were evaluated before the given date.long
executeCount
(CommandContext commandContext) executeDeploymentIdMappingsList
(CommandContext commandContext) executeList
(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.String[]
String[]
String[]
Enable fetchingHistoricDecisionInputInstance
of evaluated decision.Enable fetchingHistoricDecisionOutputInstance
of evaluated decision.boolean
boolean
boolean
boolean
boolean
boolean
Order by the time when the decisions was evaluated (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).processDefinitionId
(String processDefinitionId) Only select historic decision instances that are evaluated inside a process with the given process definition id.processDefinitionKey
(String processDefinitionKey) Only select historic decision instances that are evaluated inside a process with the given process definition key.processInstanceId
(String processInstanceId) Only select historic decision instances that are evaluated inside a process with the given process instance id.rootDecisionInstanceId
(String rootDecisionInstanceId) Only select historic decision instances with a given root historic decision instance id.Only select historic decision instances that are the root decision instance of an evaluation.tenantIdIn
(String... tenantIds) Only select historic decision instances with one of the given tenant ids.Only select historic decision instances that were evaluated by the user with the given user ID.Only selects historic decision 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, 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.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
decisionInstanceId
-
decisionInstanceIdIn
-
decisionDefinitionId
-
decisionDefinitionIdIn
-
decisionDefinitionKey
-
decisionDefinitionKeyIn
-
decisionDefinitionName
-
decisionDefinitionNameLike
-
processDefinitionKey
-
processDefinitionId
-
processInstanceId
-
caseDefinitionKey
-
caseDefinitionId
-
caseInstanceId
-
activityInstanceIds
-
activityIds
-
evaluatedBefore
-
evaluatedAfter
-
userId
-
includeInput
protected boolean includeInput -
includeOutputs
protected boolean includeOutputs -
isByteArrayFetchingEnabled
protected boolean isByteArrayFetchingEnabled -
isCustomObjectDeserializationEnabled
protected boolean isCustomObjectDeserializationEnabled -
rootDecisionInstanceId
-
rootDecisionInstancesOnly
protected boolean rootDecisionInstancesOnly -
decisionRequirementsDefinitionId
-
decisionRequirementsDefinitionKey
-
tenantIds
-
isTenantIdSet
protected boolean isTenantIdSet
-
-
Constructor Details
-
HistoricDecisionInstanceQueryImpl
public HistoricDecisionInstanceQueryImpl() -
HistoricDecisionInstanceQueryImpl
-
-
Method Details
-
decisionInstanceId
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances with the given decision instance id.- Specified by:
decisionInstanceId
in interfaceHistoricDecisionInstanceQuery
-
decisionInstanceIdIn
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances whose id is in the given list of ids.- Specified by:
decisionInstanceIdIn
in interfaceHistoricDecisionInstanceQuery
-
decisionDefinitionId
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances for the given decision definition- Specified by:
decisionDefinitionId
in interfaceHistoricDecisionInstanceQuery
-
decisionDefinitionIdIn
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances for the given decision definitions- Specified by:
decisionDefinitionIdIn
in interfaceHistoricDecisionInstanceQuery
-
decisionDefinitionKey
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances with the given key of the decision definition.- Specified by:
decisionDefinitionKey
in interfaceHistoricDecisionInstanceQuery
-
decisionDefinitionKeyIn
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances with the given keys of the decision definition.- Specified by:
decisionDefinitionKeyIn
in interfaceHistoricDecisionInstanceQuery
-
decisionDefinitionName
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances with the given name of the decision definition.- Specified by:
decisionDefinitionName
in interfaceHistoricDecisionInstanceQuery
-
decisionDefinitionNameLike
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances with the given name of the decision definition using LIKE construct.- Specified by:
decisionDefinitionNameLike
in interfaceHistoricDecisionInstanceQuery
-
processDefinitionKey
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that are evaluated inside a process with the given process definition key.- Specified by:
processDefinitionKey
in interfaceHistoricDecisionInstanceQuery
-
processDefinitionId
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that are evaluated inside a process with the given process definition id.- Specified by:
processDefinitionId
in interfaceHistoricDecisionInstanceQuery
-
processInstanceId
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that are evaluated inside a process with the given process instance id.- Specified by:
processInstanceId
in interfaceHistoricDecisionInstanceQuery
-
caseDefinitionKey
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that are evaluated inside a case with the given case definition key.- Specified by:
caseDefinitionKey
in interfaceHistoricDecisionInstanceQuery
-
caseDefinitionId
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that are evaluated inside a case with the given case definition id.- Specified by:
caseDefinitionId
in interfaceHistoricDecisionInstanceQuery
-
caseInstanceId
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that are evaluated inside a case with the given case instance id.- Specified by:
caseInstanceId
in interfaceHistoricDecisionInstanceQuery
-
activityIdIn
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that are evaluated inside a process or a case which have one of the activity ids.- Specified by:
activityIdIn
in interfaceHistoricDecisionInstanceQuery
-
activityInstanceIdIn
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that are evaluated inside a process or a case which have one of the activity instance ids.- Specified by:
activityInstanceIdIn
in interfaceHistoricDecisionInstanceQuery
-
evaluatedBefore
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that were evaluated before the given date.- Specified by:
evaluatedBefore
in interfaceHistoricDecisionInstanceQuery
-
evaluatedAfter
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that were evaluated after the given date.- Specified by:
evaluatedAfter
in interfaceHistoricDecisionInstanceQuery
-
tenantIdIn
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceHistoricDecisionInstanceQuery
-
withoutTenantId
Description copied from interface:HistoricDecisionInstanceQuery
Only selects historic decision instances that have no tenant id.- Specified by:
withoutTenantId
in interfaceHistoricDecisionInstanceQuery
-
orderByTenantId
Description copied from interface:HistoricDecisionInstanceQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of historic decision instances without tenant id is database-specific.- Specified by:
orderByTenantId
in interfaceHistoricDecisionInstanceQuery
-
userId
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that were evaluated by the user with the given user ID.The user ID is saved for decisions which are evaluated by a authenticated user without a process or case instance
- Specified by:
userId
in interfaceHistoricDecisionInstanceQuery
-
orderByEvaluationTime
Description copied from interface:HistoricDecisionInstanceQuery
Order by the time when the decisions was evaluated (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByEvaluationTime
in interfaceHistoricDecisionInstanceQuery
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<HistoricDecisionInstanceQuery,
HistoricDecisionInstance>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<HistoricDecisionInstanceQuery,
HistoricDecisionInstance> page
- used if the results must be paged. If null, no paging will be applied.
-
executeDeploymentIdMappingsList
public List<ImmutablePair<String,String>> executeDeploymentIdMappingsList(CommandContext commandContext) -
getDecisionDefinitionId
-
getDecisionDefinitionKey
-
getDecisionDefinitionName
-
getProcessDefinitionKey
-
getProcessDefinitionId
-
getProcessInstanceId
-
getCaseDefinitionKey
-
getCaseDefinitionId
-
getCaseInstanceId
-
getActivityInstanceIds
-
getActivityIds
-
getTenantIds
-
includeInputs
Description copied from interface:HistoricDecisionInstanceQuery
Enable fetchingHistoricDecisionInputInstance
of evaluated decision.- Specified by:
includeInputs
in interfaceHistoricDecisionInstanceQuery
-
includeOutputs
Description copied from interface:HistoricDecisionInstanceQuery
Enable fetchingHistoricDecisionOutputInstance
of evaluated decision.- Specified by:
includeOutputs
in interfaceHistoricDecisionInstanceQuery
-
isIncludeInput
public boolean isIncludeInput() -
isIncludeOutputs
public boolean isIncludeOutputs() -
disableBinaryFetching
Description copied from interface:HistoricDecisionInstanceQuery
Disable fetching of byte array input and output values. By default, the query will fetch the value of a byte array. By calling this method you can prevent the values of (potentially large) blob data chunks to be fetched.- Specified by:
disableBinaryFetching
in interfaceHistoricDecisionInstanceQuery
-
disableCustomObjectDeserialization
Description copied from interface:HistoricDecisionInstanceQuery
Disable deserialization of input and output 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:
disableCustomObjectDeserialization
in interfaceHistoricDecisionInstanceQuery
-
isByteArrayFetchingEnabled
public boolean isByteArrayFetchingEnabled() -
isCustomObjectDeserializationEnabled
public boolean isCustomObjectDeserializationEnabled() -
getRootDecisionInstanceId
-
rootDecisionInstanceId
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances with a given root historic decision instance id. This also includes the historic decision instance with the given id.- Specified by:
rootDecisionInstanceId
in interfaceHistoricDecisionInstanceQuery
-
isRootDecisionInstancesOnly
public boolean isRootDecisionInstancesOnly() -
rootDecisionInstancesOnly
Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that are the root decision instance of an evaluation.- Specified by:
rootDecisionInstancesOnly
in interfaceHistoricDecisionInstanceQuery
-
decisionRequirementsDefinitionId
public HistoricDecisionInstanceQuery decisionRequirementsDefinitionId(String decisionRequirementsDefinitionId) Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that belongs to a decision requirements definition with the given id.- Specified by:
decisionRequirementsDefinitionId
in interfaceHistoricDecisionInstanceQuery
-
decisionRequirementsDefinitionKey
public HistoricDecisionInstanceQuery decisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey) Description copied from interface:HistoricDecisionInstanceQuery
Only select historic decision instances that belongs to a decision requirements definition with the given key.- Specified by:
decisionRequirementsDefinitionKey
in interfaceHistoricDecisionInstanceQuery
-
getDecisionRequirementsDefinitionId
-
getDecisionRequirementsDefinitionKey
-
isTenantIdSet
public boolean isTenantIdSet()
-