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
FieldsModifier and TypeFieldDescriptionprotected String[]protected String[]protected Stringprotected Stringprotected Stringprotected Stringprotected String[]protected Stringprotected String[]protected Stringprotected Stringprotected Stringprotected String[]protected Stringprotected Stringprotected Dateprotected Dateprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected String[]protected StringFields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validatorsFields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck -
Constructor Summary
Constructors -
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.longexecuteCount(CommandContext commandContext) executeDeploymentIdMappingsList(CommandContext commandContext) executeList(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.String[]String[]String[]Enable fetchingHistoricDecisionInputInstanceof evaluated decision.Enable fetchingHistoricDecisionOutputInstanceof evaluated decision.booleanbooleanbooleanbooleanbooleanbooleanOrder 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, validateMethods 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, setTenantCheckMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:HistoricDecisionInstanceQueryOnly select historic decision instances with the given decision instance id.- Specified by:
decisionInstanceIdin interfaceHistoricDecisionInstanceQuery
-
decisionInstanceIdIn
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances whose id is in the given list of ids.- Specified by:
decisionInstanceIdInin interfaceHistoricDecisionInstanceQuery
-
decisionDefinitionId
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances for the given decision definition- Specified by:
decisionDefinitionIdin interfaceHistoricDecisionInstanceQuery
-
decisionDefinitionIdIn
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances for the given decision definitions- Specified by:
decisionDefinitionIdInin interfaceHistoricDecisionInstanceQuery
-
decisionDefinitionKey
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances with the given key of the decision definition.- Specified by:
decisionDefinitionKeyin interfaceHistoricDecisionInstanceQuery
-
decisionDefinitionKeyIn
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances with the given keys of the decision definition.- Specified by:
decisionDefinitionKeyInin interfaceHistoricDecisionInstanceQuery
-
decisionDefinitionName
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances with the given name of the decision definition.- Specified by:
decisionDefinitionNamein interfaceHistoricDecisionInstanceQuery
-
decisionDefinitionNameLike
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances with the given name of the decision definition using LIKE construct.- Specified by:
decisionDefinitionNameLikein interfaceHistoricDecisionInstanceQuery
-
processDefinitionKey
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that are evaluated inside a process with the given process definition key.- Specified by:
processDefinitionKeyin interfaceHistoricDecisionInstanceQuery
-
processDefinitionId
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that are evaluated inside a process with the given process definition id.- Specified by:
processDefinitionIdin interfaceHistoricDecisionInstanceQuery
-
processInstanceId
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that are evaluated inside a process with the given process instance id.- Specified by:
processInstanceIdin interfaceHistoricDecisionInstanceQuery
-
caseDefinitionKey
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that are evaluated inside a case with the given case definition key.- Specified by:
caseDefinitionKeyin interfaceHistoricDecisionInstanceQuery
-
caseDefinitionId
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that are evaluated inside a case with the given case definition id.- Specified by:
caseDefinitionIdin interfaceHistoricDecisionInstanceQuery
-
caseInstanceId
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that are evaluated inside a case with the given case instance id.- Specified by:
caseInstanceIdin interfaceHistoricDecisionInstanceQuery
-
activityIdIn
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that are evaluated inside a process or a case which have one of the activity ids.- Specified by:
activityIdInin interfaceHistoricDecisionInstanceQuery
-
activityInstanceIdIn
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that are evaluated inside a process or a case which have one of the activity instance ids.- Specified by:
activityInstanceIdInin interfaceHistoricDecisionInstanceQuery
-
evaluatedBefore
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that were evaluated before the given date.- Specified by:
evaluatedBeforein interfaceHistoricDecisionInstanceQuery
-
evaluatedAfter
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that were evaluated after the given date.- Specified by:
evaluatedAfterin interfaceHistoricDecisionInstanceQuery
-
tenantIdIn
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances with one of the given tenant ids.- Specified by:
tenantIdInin interfaceHistoricDecisionInstanceQuery
-
withoutTenantId
Description copied from interface:HistoricDecisionInstanceQueryOnly selects historic decision instances that have no tenant id.- Specified by:
withoutTenantIdin interfaceHistoricDecisionInstanceQuery
-
orderByTenantId
Description copied from interface:HistoricDecisionInstanceQueryOrder 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:
orderByTenantIdin interfaceHistoricDecisionInstanceQuery
-
userId
Description copied from interface:HistoricDecisionInstanceQueryOnly 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:
userIdin interfaceHistoricDecisionInstanceQuery
-
orderByEvaluationTime
Description copied from interface:HistoricDecisionInstanceQueryOrder by the time when the decisions was evaluated (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByEvaluationTimein interfaceHistoricDecisionInstanceQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<HistoricDecisionInstanceQuery,HistoricDecisionInstance>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin 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:HistoricDecisionInstanceQueryEnable fetchingHistoricDecisionInputInstanceof evaluated decision.- Specified by:
includeInputsin interfaceHistoricDecisionInstanceQuery
-
includeOutputs
Description copied from interface:HistoricDecisionInstanceQueryEnable fetchingHistoricDecisionOutputInstanceof evaluated decision.- Specified by:
includeOutputsin interfaceHistoricDecisionInstanceQuery
-
isIncludeInput
public boolean isIncludeInput() -
isIncludeOutputs
public boolean isIncludeOutputs() -
disableBinaryFetching
Description copied from interface:HistoricDecisionInstanceQueryDisable 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:
disableBinaryFetchingin interfaceHistoricDecisionInstanceQuery
-
disableCustomObjectDeserialization
Description copied from interface:HistoricDecisionInstanceQueryDisable 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:
disableCustomObjectDeserializationin interfaceHistoricDecisionInstanceQuery
-
isByteArrayFetchingEnabled
public boolean isByteArrayFetchingEnabled() -
isCustomObjectDeserializationEnabled
public boolean isCustomObjectDeserializationEnabled() -
getRootDecisionInstanceId
-
rootDecisionInstanceId
Description copied from interface:HistoricDecisionInstanceQueryOnly 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:
rootDecisionInstanceIdin interfaceHistoricDecisionInstanceQuery
-
isRootDecisionInstancesOnly
public boolean isRootDecisionInstancesOnly() -
rootDecisionInstancesOnly
Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that are the root decision instance of an evaluation.- Specified by:
rootDecisionInstancesOnlyin interfaceHistoricDecisionInstanceQuery
-
decisionRequirementsDefinitionId
public HistoricDecisionInstanceQuery decisionRequirementsDefinitionId(String decisionRequirementsDefinitionId) Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that belongs to a decision requirements definition with the given id.- Specified by:
decisionRequirementsDefinitionIdin interfaceHistoricDecisionInstanceQuery
-
decisionRequirementsDefinitionKey
public HistoricDecisionInstanceQuery decisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey) Description copied from interface:HistoricDecisionInstanceQueryOnly select historic decision instances that belongs to a decision requirements definition with the given key.- Specified by:
decisionRequirementsDefinitionKeyin interfaceHistoricDecisionInstanceQuery
-
getDecisionRequirementsDefinitionId
-
getDecisionRequirementsDefinitionKey
-
isTenantIdSet
public boolean isTenantIdSet()
-