Package org.camunda.bpm.engine.impl
Class HistoricTaskInstanceQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<HistoricTaskInstanceQuery,HistoricTaskInstance>
org.camunda.bpm.engine.impl.HistoricTaskInstanceQueryImpl
- All Implemented Interfaces:
Serializable,HistoricTaskInstanceQuery,Command<Object>,Query<HistoricTaskInstanceQuery,HistoricTaskInstance>
public class HistoricTaskInstanceQueryImpl
extends AbstractQuery<HistoricTaskInstanceQuery,HistoricTaskInstance>
implements HistoricTaskInstanceQuery
- Author:
- Tom Baeyens
- 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 Booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Dateprotected Dateprotected Dateprotected Stringprotected booleanprotected Dateprotected Dateprotected Dateprotected Dateprotected Dateprotected booleanprotected booleanprotected booleanprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected String[]protected Stringprotected booleanprotected List<HistoricTaskInstanceQueryImpl>protected Stringprotected Dateprotected Dateprotected Stringprotected Stringprotected String[]protected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Integerprotected String[]protected Booleanprotected booleanprotected Booleanprotected List<TaskQueryVariableValue>protected Booleanprotected Booleanprotected BooleanFields 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 TypeMethodDescriptionactivityInstanceIdIn(String... activityInstanceIds) Only select historic task instances which have one of the given activity instance ids.voidaddOrQuery(HistoricTaskInstanceQueryImpl orQuery) voidaddVariable(String name, Object value, QueryOperator operator, boolean isTaskVariable, boolean isProcessInstanceVariable) protected voidaddVariable(TaskQueryVariableValue taskQueryVariableValue) caseDefinitionId(String caseDefinitionId) Only select historic task instances for the given case definition.caseDefinitionKey(String caseDefinitionKey) Only select historic task instances which are part of a case instance which has the given case definition key.caseDefinitionName(String caseDefinitionName) Only select historic task instances which are part of a (historic) case instance which has the given case definition name.caseExecutionId(String caseExecutionId) Only select historic task instances for the given case execution id.caseInstanceId(String caseInstanceId) Only select historic task instances for the given case instance.endOr()endOr() terminates an OR query on which an arbitrary amount of filter criteria were applied.protected voidlongexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.executionId(String executionId) Only select historic task instances for the given execution.finished()Only select historic task instances which are finished.finishedAfter(Date date) Only select tasks where end time is after given datefinishedBefore(Date date) Only select tasks where end time is before given dateString[]String[]String[]String[]protected booleanWhether or not the query has excluding conditions.booleanbooleanbooleanbooleanbooleanbooleanbooleanThe 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.or()After calling or(), a chain of several filter criteria could follow.Order by case definition id (needs to be followed byQuery.asc()orQuery.desc()).Order by case execution id (needs to be followed byQuery.asc()orQuery.desc()).Order by case instance id (needs to be followed byQuery.asc()orQuery.desc()).Order by task delete reason (needs to be followed byQuery.asc()orQuery.desc()).Order by execution id (needs to be followed byQuery.asc()orQuery.desc()).Order by the historic activity instance id this task was used in (needs to be followed byQuery.asc()orQuery.desc()).Order by start time (needs to be followed byQuery.asc()orQuery.desc()).Order by duration (needs to be followed byQuery.asc()orQuery.desc()).Order by end time (needs to be followed byQuery.asc()orQuery.desc()).Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).Order by task assignee (needs to be followed byQuery.asc()orQuery.desc()).Order by task definition key (needs to be followed byQuery.asc()orQuery.desc()).Order by task description (needs to be followed byQuery.asc()orQuery.desc()).Order by task due date (needs to be followed byQuery.asc()orQuery.desc()).Order by task follow-up date (needs to be followed byQuery.asc()orQuery.desc()).Order by task id (needs to be followed byQuery.asc()orQuery.desc()).Order by task name (needs to be followed byQuery.asc()orQuery.desc()).Order by task owner (needs to be followed byQuery.asc()orQuery.desc()).Order by task priority key (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 task instances for the given process definition.processDefinitionKey(String processDefinitionKey) Only select historic task instances which are part of a (historic) process instance which has the given process definition key.processDefinitionName(String processDefinitionName) Only select historic task instances which are part of a (historic) process instance which has the given definition name.Only select historic task instances which are part of a process instance which is already finished.processInstanceBusinessKey(String processInstanceBusinessKey) Only select historic tasks for the given process instance business keyprocessInstanceBusinessKeyIn(String... processInstanceBusinessKeys) Only select historic tasks for any of the given the given process instance business keys.processInstanceBusinessKeyLike(String processInstanceBusinessKey) Only select historic tasks matching the given process instance business key.processInstanceId(String processInstanceId) Only select historic task instances for the given process instance.Only select historic task instances which are part of a process instance which is not finished yet.processVariableValueEquals(String variableName, Object variableValue) Only select historic task instances which are part of a process instance which have a variable with the given name set to the given value.processVariableValueGreaterThan(String variableName, Object variableValue) Only select historic task instances which are part of a process that have a variable with the given name and a value greater than the given one.processVariableValueGreaterThanOrEquals(String variableName, Object variableValue) Only select historic task instances which are part of a process that have a variable with the given name and a value greater than or equal to the given one.processVariableValueLessThan(String variableName, Object variableValue) Only select historic task instances which are part of a process that have a variable with the given name and a value less than the given one.processVariableValueLessThanOrEquals(String variableName, Object variableValue) Only select historic task instances which are part of a process that have a variable with the given name and a value less than or equal to the given one.processVariableValueLike(String variableName, Object variableValue) Only select historic task instances which are part of a process that have a variable with the given name and matching the given value.processVariableValueNotEquals(String variableName, Object variableValue) Only select historic task instances which have a variable with the given name, but with a different value than the passed value.processVariableValueNotLike(String variableName, Object variableValue) Only select historic task instances which are part of a process that have a variable with the given name and not matching the given value.rootProcessInstanceId(String rootProcessInstanceId) Only select historic task instances for the given root process instance.voidstartedAfter(Date date) Only select tasks where started after given datestartedBefore(Date date) Only select tasks where started before given dateOnly select historic task instances with an assignee.taskAssignee(String taskAssignee) Only select historic task instances which were last taskAssigned to the given assignee.taskAssigneeLike(String taskAssigneeLike) Only select historic task instances which were last taskAssigned to an assignee like the given value.taskDefinitionKey(String taskDefinitionKey) Only select historic task instances with the given task definition key.taskDefinitionKeyIn(String... taskDefinitionKeys) Only select historic task instances with one of the given task definition keys.taskDeleteReason(String taskDeleteReason) Only select historic task instances with the given task delete reason.taskDeleteReasonLike(String taskDeleteReasonLike) Only select historic task instances with a task description like the given value.taskDescription(String taskDescription) Only select historic task instances with the given task description.taskDescriptionLike(String taskDescriptionLike) Only select historic task instances with a task description like the given value.taskDueAfter(Date dueAfter) Only select select historic task instances which have a due date after the given date.taskDueBefore(Date dueBefore) Only select select historic task instances which have a due date before the given date.taskDueDate(Date dueDate) Only select select historic task instances with the given due date.taskFollowUpAfter(Date followUpAfter) Only select select historic task instances which have a follow-up date after the given date.taskFollowUpBefore(Date followUpBefore) Only select select historic task instances which have a follow-up date before the given date.taskFollowUpDate(Date followUpDate) Only select select historic task instances with the given follow-up date.taskHadCandidateGroup(String groupId) Only select historic task instances which have mapping with Historic identity links with the condition of group being a candidatetaskHadCandidateUser(String userId) Only select historic task instances which have mapping with Historic identity links with the condition of user being a candidateOnly select historic task instances for the given task id.taskInvolvedGroup(String groupId) Only select historic task instances which have mapping with Historic identity links based on group idtaskInvolvedUser(String userId) Only select historic task instances which have mapping with Historic identity links based on user idOnly select historic task instances with the given task name.taskNameLike(String taskNameLike) Only select historic task instances with a task name like the given value.Only select historic task instances which have the given owner.taskOwnerLike(String taskOwnerLike) Only select historic task instances which have an owner like the one specified.taskParentTaskId(String parentTaskId) Only select subtasks of the given parent tasktaskPriority(Integer taskPriority) Only select historic task instances with the given priority.Only select historic task instances without an assignee.taskVariableValueEquals(String variableName, Object variableValue) Only select historic task instances which have a local task variable with the given name set to the given value.tenantIdIn(String... tenantIds) Only select historic task instances with one of the given tenant ids.Only select historic task instances which aren't finished yet.Only select historic task instances which have a candidate groupOnly select historic task instances which have no candidate groupOnly select select historic task instances that have no due date.Only selects historic task 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, 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
-
processDefinitionId
-
processDefinitionKey
-
processDefinitionName
-
processInstanceId
-
rootProcessInstanceId
-
processInstanceBusinessKey
-
processInstanceBusinessKeys
-
processInstanceBusinessKeyLike
-
executionId
-
activityInstanceIds
-
taskId
-
taskName
-
taskNameLike
-
taskParentTaskId
-
taskDescription
-
taskDescriptionLike
-
taskDeleteReason
-
taskDeleteReasonLike
-
taskOwner
-
taskOwnerLike
-
assigned
-
unassigned
-
taskAssignee
-
taskAssigneeLike
-
taskDefinitionKeys
-
taskInvolvedUser
-
taskInvolvedGroup
-
taskHadCandidateUser
-
taskHadCandidateGroup
-
withCandidateGroups
-
withoutCandidateGroups
-
taskPriority
-
finished
protected boolean finished -
unfinished
protected boolean unfinished -
processFinished
protected boolean processFinished -
processUnfinished
protected boolean processUnfinished -
variables
-
variableNamesIgnoreCase
-
variableValuesIgnoreCase
-
dueDate
-
dueAfter
-
dueBefore
-
isWithoutTaskDueDate
protected boolean isWithoutTaskDueDate -
followUpDate
-
followUpBefore
-
followUpAfter
-
tenantIds
-
isTenantIdSet
protected boolean isTenantIdSet -
caseDefinitionId
-
caseDefinitionKey
-
caseDefinitionName
-
caseInstanceId
-
caseExecutionId
-
finishedAfter
-
finishedBefore
-
startedAfter
-
startedBefore
-
queries
-
isOrQueryActive
protected boolean isOrQueryActive
-
-
Constructor Details
-
HistoricTaskInstanceQueryImpl
public HistoricTaskInstanceQueryImpl() -
HistoricTaskInstanceQueryImpl
-
-
Method Details
-
executeCount
- Specified by:
executeCountin classAbstractQuery<HistoricTaskInstanceQuery,HistoricTaskInstance>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<HistoricTaskInstanceQuery,HistoricTaskInstance> page- used if the results must be paged. If null, no paging will be applied.
-
processInstanceId
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances for the given process instance.- Specified by:
processInstanceIdin interfaceHistoricTaskInstanceQuery
-
rootProcessInstanceId
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances for the given root process instance.- Specified by:
rootProcessInstanceIdin interfaceHistoricTaskInstanceQuery
-
processInstanceBusinessKey
Description copied from interface:HistoricTaskInstanceQueryOnly select historic tasks for the given process instance business key- Specified by:
processInstanceBusinessKeyin interfaceHistoricTaskInstanceQuery
-
processInstanceBusinessKeyIn
public HistoricTaskInstanceQuery processInstanceBusinessKeyIn(String... processInstanceBusinessKeys) Description copied from interface:HistoricTaskInstanceQueryOnly select historic tasks for any of the given the given process instance business keys.- Specified by:
processInstanceBusinessKeyInin interfaceHistoricTaskInstanceQuery
-
processInstanceBusinessKeyLike
Description copied from interface:HistoricTaskInstanceQueryOnly select historic tasks matching the given process instance business key. The syntax is that of SQL: for example usage: nameLike(%camunda%)- Specified by:
processInstanceBusinessKeyLikein interfaceHistoricTaskInstanceQuery
-
executionId
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances for the given execution.- Specified by:
executionIdin interfaceHistoricTaskInstanceQuery
-
activityInstanceIdIn
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which have one of the given activity instance ids.- Specified by:
activityInstanceIdInin interfaceHistoricTaskInstanceQuery
-
processDefinitionId
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances for the given process definition.- Specified by:
processDefinitionIdin interfaceHistoricTaskInstanceQuery
-
processDefinitionKey
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a (historic) process instance which has the given process definition key.- Specified by:
processDefinitionKeyin interfaceHistoricTaskInstanceQuery
-
processDefinitionName
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a (historic) process instance which has the given definition name.- Specified by:
processDefinitionNamein interfaceHistoricTaskInstanceQuery
-
taskId
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances for the given task id.- Specified by:
taskIdin interfaceHistoricTaskInstanceQuery
-
taskName
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances with the given task name. This is the last name given to the task. The query will match the names of historic task instances in a case-insensitive way.- Specified by:
taskNamein interfaceHistoricTaskInstanceQuery
-
taskNameLike
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances with a task name like the given value. This is the last name given to the task. The syntax that should be used is the same as in SQL, eg. %activiti%. The query will match the names of historic task instances in a case-insensitive way.- Specified by:
taskNameLikein interfaceHistoricTaskInstanceQuery
-
taskParentTaskId
Description copied from interface:HistoricTaskInstanceQueryOnly select subtasks of the given parent task- Specified by:
taskParentTaskIdin interfaceHistoricTaskInstanceQuery
-
taskDescription
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances with the given task description. This is the last description given to the task. The query will match the descriptions of historic task instances in a case-insensitive way.- Specified by:
taskDescriptionin interfaceHistoricTaskInstanceQuery
-
taskDescriptionLike
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances with a task description like the given value. This is the last description given to the task. The syntax that should be used is the same as in SQL, eg. %activiti%. The query will match the descriptions of historice task instances in a case-insensitive way.- Specified by:
taskDescriptionLikein interfaceHistoricTaskInstanceQuery
-
taskDeleteReason
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances with the given task delete reason.- Specified by:
taskDeleteReasonin interfaceHistoricTaskInstanceQuery
-
taskDeleteReasonLike
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances with a task description like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.- Specified by:
taskDeleteReasonLikein interfaceHistoricTaskInstanceQuery
-
taskAssigned
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances with an assignee.- Specified by:
taskAssignedin interfaceHistoricTaskInstanceQuery
-
taskUnassigned
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances without an assignee.- Specified by:
taskUnassignedin interfaceHistoricTaskInstanceQuery
-
taskAssignee
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which were last taskAssigned to the given assignee.- Specified by:
taskAssigneein interfaceHistoricTaskInstanceQuery
-
taskAssigneeLike
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which were last taskAssigned to an assignee like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.- Specified by:
taskAssigneeLikein interfaceHistoricTaskInstanceQuery
-
taskOwner
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which have the given owner.- Specified by:
taskOwnerin interfaceHistoricTaskInstanceQuery
-
taskOwnerLike
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which have an owner like the one specified. The syntax that should be used is the same as in SQL, eg. %activiti%.- Specified by:
taskOwnerLikein interfaceHistoricTaskInstanceQuery
-
caseDefinitionId
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances for the given case definition.- Specified by:
caseDefinitionIdin interfaceHistoricTaskInstanceQuery
-
caseDefinitionKey
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a case instance which has the given case definition key.- Specified by:
caseDefinitionKeyin interfaceHistoricTaskInstanceQuery
-
caseDefinitionName
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a (historic) case instance which has the given case definition name.- Specified by:
caseDefinitionNamein interfaceHistoricTaskInstanceQuery
-
caseInstanceId
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances for the given case instance.- Specified by:
caseInstanceIdin interfaceHistoricTaskInstanceQuery
-
caseExecutionId
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances for the given case execution id.- Specified by:
caseExecutionIdin interfaceHistoricTaskInstanceQuery
-
finished
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are finished.- Specified by:
finishedin interfaceHistoricTaskInstanceQuery
-
unfinished
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which aren't finished yet.- Specified by:
unfinishedin interfaceHistoricTaskInstanceQuery
-
matchVariableNamesIgnoreCase
Description copied from interface:HistoricTaskInstanceQueryThe query will match the names of task and process variables in a case-insensitive way.- Specified by:
matchVariableNamesIgnoreCasein interfaceHistoricTaskInstanceQuery
-
matchVariableValuesIgnoreCase
Description copied from interface:HistoricTaskInstanceQueryThe query will match the values of task and process variables in a case-insensitive way.- Specified by:
matchVariableValuesIgnoreCasein interfaceHistoricTaskInstanceQuery
-
taskVariableValueEquals
public HistoricTaskInstanceQueryImpl taskVariableValueEquals(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which have a local task variable with the given name set to the given value. Make sure history-level is configured >= AUDIT when this feature is used.- Specified by:
taskVariableValueEqualsin interfaceHistoricTaskInstanceQuery
-
processVariableValueEquals
public HistoricTaskInstanceQuery processVariableValueEquals(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a process instance which have a variable with the given name set to the given value. The last variable value in the variable updates (HistoricDetail) will be used, so make sure history-level is configured >= AUDIT when this feature is used.- Specified by:
processVariableValueEqualsin interfaceHistoricTaskInstanceQuery
-
processVariableValueNotEquals
public HistoricTaskInstanceQuery processVariableValueNotEquals(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which have a variable with the given name, but with a different value than the passed value. Byte-arrays andSerializableobjects (which are not primitive type wrappers) are not supported.- Specified by:
processVariableValueNotEqualsin interfaceHistoricTaskInstanceQuery
-
processVariableValueLike
public HistoricTaskInstanceQuery processVariableValueLike(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a process that have a variable with the given name and matching the given value. The syntax is that of SQL: for example usage: valueLike(%value%)- Specified by:
processVariableValueLikein interfaceHistoricTaskInstanceQuery
-
processVariableValueNotLike
public HistoricTaskInstanceQuery processVariableValueNotLike(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a process that have a variable with the given name and not matching the given value. The syntax is that of SQL: for example usage: valueNotLike(%value%)- Specified by:
processVariableValueNotLikein interfaceHistoricTaskInstanceQuery
-
processVariableValueGreaterThan
public HistoricTaskInstanceQuery processVariableValueGreaterThan(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a process that have a variable with the given name and a value greater than the given one.- Specified by:
processVariableValueGreaterThanin interfaceHistoricTaskInstanceQuery
-
processVariableValueGreaterThanOrEquals
public HistoricTaskInstanceQuery processVariableValueGreaterThanOrEquals(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a process that have a variable with the given name and a value greater than or equal to the given one.- Specified by:
processVariableValueGreaterThanOrEqualsin interfaceHistoricTaskInstanceQuery
-
processVariableValueLessThan
public HistoricTaskInstanceQuery processVariableValueLessThan(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a process that have a variable with the given name and a value less than the given one.- Specified by:
processVariableValueLessThanin interfaceHistoricTaskInstanceQuery
-
processVariableValueLessThanOrEquals
public HistoricTaskInstanceQuery processVariableValueLessThanOrEquals(String variableName, Object variableValue) Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a process that have a variable with the given name and a value less than or equal to the given one.- Specified by:
processVariableValueLessThanOrEqualsin interfaceHistoricTaskInstanceQuery
-
taskDefinitionKey
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances with the given task definition key.- Specified by:
taskDefinitionKeyin interfaceHistoricTaskInstanceQuery- See Also:
-
taskDefinitionKeyIn
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances with one of the given task definition keys.- Specified by:
taskDefinitionKeyInin interfaceHistoricTaskInstanceQuery- See Also:
-
taskPriority
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances with the given priority.- Specified by:
taskPriorityin interfaceHistoricTaskInstanceQuery
-
processFinished
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a process instance which is already finished.- Specified by:
processFinishedin interfaceHistoricTaskInstanceQuery
-
taskInvolvedUser
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which have mapping with Historic identity links based on user id- Specified by:
taskInvolvedUserin interfaceHistoricTaskInstanceQuery
-
taskInvolvedGroup
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which have mapping with Historic identity links based on group id- Specified by:
taskInvolvedGroupin interfaceHistoricTaskInstanceQuery
-
taskHadCandidateUser
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which have mapping with Historic identity links with the condition of user being a candidate- Specified by:
taskHadCandidateUserin interfaceHistoricTaskInstanceQuery
-
taskHadCandidateGroup
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which have mapping with Historic identity links with the condition of group being a candidate- Specified by:
taskHadCandidateGroupin interfaceHistoricTaskInstanceQuery
-
withCandidateGroups
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which have a candidate group- Specified by:
withCandidateGroupsin interfaceHistoricTaskInstanceQuery
-
withoutCandidateGroups
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which have no candidate group- Specified by:
withoutCandidateGroupsin interfaceHistoricTaskInstanceQuery
-
processUnfinished
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances which are part of a process instance which is not finished yet.- Specified by:
processUnfinishedin interfaceHistoricTaskInstanceQuery
-
ensureVariablesInitialized
protected void ensureVariablesInitialized() -
addVariable
public void addVariable(String name, Object value, QueryOperator operator, boolean isTaskVariable, boolean isProcessInstanceVariable) -
addVariable
-
taskDueDate
Description copied from interface:HistoricTaskInstanceQueryOnly select select historic task instances with the given due date.- Specified by:
taskDueDatein interfaceHistoricTaskInstanceQuery
-
taskDueAfter
Description copied from interface:HistoricTaskInstanceQueryOnly select select historic task instances which have a due date after the given date.- Specified by:
taskDueAfterin interfaceHistoricTaskInstanceQuery
-
taskDueBefore
Description copied from interface:HistoricTaskInstanceQueryOnly select select historic task instances which have a due date before the given date.- Specified by:
taskDueBeforein interfaceHistoricTaskInstanceQuery
-
withoutTaskDueDate
Description copied from interface:HistoricTaskInstanceQueryOnly select select historic task instances that have no due date.- Specified by:
withoutTaskDueDatein interfaceHistoricTaskInstanceQuery
-
taskFollowUpDate
Description copied from interface:HistoricTaskInstanceQueryOnly select select historic task instances with the given follow-up date.- Specified by:
taskFollowUpDatein interfaceHistoricTaskInstanceQuery
-
taskFollowUpBefore
Description copied from interface:HistoricTaskInstanceQueryOnly select select historic task instances which have a follow-up date before the given date.- Specified by:
taskFollowUpBeforein interfaceHistoricTaskInstanceQuery
-
taskFollowUpAfter
Description copied from interface:HistoricTaskInstanceQueryOnly select select historic task instances which have a follow-up date after the given date.- Specified by:
taskFollowUpAfterin interfaceHistoricTaskInstanceQuery
-
tenantIdIn
Description copied from interface:HistoricTaskInstanceQueryOnly select historic task instances with one of the given tenant ids.- Specified by:
tenantIdInin interfaceHistoricTaskInstanceQuery
-
withoutTenantId
Description copied from interface:HistoricTaskInstanceQueryOnly selects historic task instances that have no tenant id.- Specified by:
withoutTenantIdin interfaceHistoricTaskInstanceQuery
-
finishedAfter
Description copied from interface:HistoricTaskInstanceQueryOnly select tasks where end time is after given date- Specified by:
finishedAfterin interfaceHistoricTaskInstanceQuery
-
finishedBefore
Description copied from interface:HistoricTaskInstanceQueryOnly select tasks where end time is before given date- Specified by:
finishedBeforein interfaceHistoricTaskInstanceQuery
-
startedAfter
Description copied from interface:HistoricTaskInstanceQueryOnly select tasks where started after given date- Specified by:
startedAfterin interfaceHistoricTaskInstanceQuery
-
startedBefore
Description copied from interface:HistoricTaskInstanceQueryOnly select tasks where started before given date- Specified by:
startedBeforein interfaceHistoricTaskInstanceQuery
-
hasExcludingConditions
protected boolean hasExcludingConditions()Description copied from class:AbstractQueryWhether or not the query has excluding conditions. If the query has excluding conditions, (e.g. task due date before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries.- Overrides:
hasExcludingConditionsin classAbstractQuery<HistoricTaskInstanceQuery,HistoricTaskInstance> - Returns:
trueif the query does have excluding conditions,falseotherwise
-
orderByTaskId
Description copied from interface:HistoricTaskInstanceQueryOrder by task id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskIdin interfaceHistoricTaskInstanceQuery
-
orderByHistoricActivityInstanceId
Description copied from interface:HistoricTaskInstanceQueryOrder by the historic activity instance id this task was used in (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByHistoricActivityInstanceIdin interfaceHistoricTaskInstanceQuery
-
orderByProcessDefinitionId
Description copied from interface:HistoricTaskInstanceQueryOrder by process definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceHistoricTaskInstanceQuery
-
orderByProcessInstanceId
Description copied from interface:HistoricTaskInstanceQueryOrder by process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceHistoricTaskInstanceQuery
-
orderByExecutionId
Description copied from interface:HistoricTaskInstanceQueryOrder by execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceHistoricTaskInstanceQuery
-
orderByHistoricTaskInstanceDuration
Description copied from interface:HistoricTaskInstanceQueryOrder by duration (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByHistoricTaskInstanceDurationin interfaceHistoricTaskInstanceQuery
-
orderByHistoricTaskInstanceEndTime
Description copied from interface:HistoricTaskInstanceQueryOrder by end time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByHistoricTaskInstanceEndTimein interfaceHistoricTaskInstanceQuery
-
orderByHistoricActivityInstanceStartTime
Description copied from interface:HistoricTaskInstanceQueryOrder by start time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByHistoricActivityInstanceStartTimein interfaceHistoricTaskInstanceQuery
-
orderByTaskName
Description copied from interface:HistoricTaskInstanceQueryOrder by task name (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskNamein interfaceHistoricTaskInstanceQuery
-
orderByTaskDescription
Description copied from interface:HistoricTaskInstanceQueryOrder by task description (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskDescriptionin interfaceHistoricTaskInstanceQuery
-
orderByTaskAssignee
Description copied from interface:HistoricTaskInstanceQueryOrder by task assignee (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskAssigneein interfaceHistoricTaskInstanceQuery
-
orderByTaskOwner
Description copied from interface:HistoricTaskInstanceQueryOrder by task owner (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskOwnerin interfaceHistoricTaskInstanceQuery
-
orderByTaskDueDate
Description copied from interface:HistoricTaskInstanceQueryOrder by task due date (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskDueDatein interfaceHistoricTaskInstanceQuery
-
orderByTaskFollowUpDate
Description copied from interface:HistoricTaskInstanceQueryOrder by task follow-up date (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskFollowUpDatein interfaceHistoricTaskInstanceQuery
-
orderByDeleteReason
Description copied from interface:HistoricTaskInstanceQueryOrder by task delete reason (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeleteReasonin interfaceHistoricTaskInstanceQuery
-
orderByTaskDefinitionKey
Description copied from interface:HistoricTaskInstanceQueryOrder by task definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskDefinitionKeyin interfaceHistoricTaskInstanceQuery
-
orderByTaskPriority
Description copied from interface:HistoricTaskInstanceQueryOrder by task priority key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTaskPriorityin interfaceHistoricTaskInstanceQuery
-
orderByCaseDefinitionId
Description copied from interface:HistoricTaskInstanceQueryOrder by case definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseDefinitionIdin interfaceHistoricTaskInstanceQuery
-
orderByCaseInstanceId
Description copied from interface:HistoricTaskInstanceQueryOrder by case instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseInstanceIdin interfaceHistoricTaskInstanceQuery
-
orderByCaseExecutionId
Description copied from interface:HistoricTaskInstanceQueryOrder by case execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCaseExecutionIdin interfaceHistoricTaskInstanceQuery
-
orderByTenantId
Description copied from interface:HistoricTaskInstanceQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()). Note that the ordering of historic task instances without tenant id is database-specific.- Specified by:
orderByTenantIdin interfaceHistoricTaskInstanceQuery
-
getProcessInstanceId
-
getRootProcessInstanceId
-
getProcessInstanceBusinessKey
-
getProcessInstanceBusinessKeys
-
getProcessInstanceBusinessKeyLike
-
getProcessDefinitionKey
-
getProcessDefinitionName
-
getExecutionId
-
getActivityInstanceIds
-
getProcessDefinitionId
-
isAssigned
-
isUnassigned
-
isWithCandidateGroups
-
isWithoutCandidateGroups
-
isFinished
public boolean isFinished() -
isProcessFinished
public boolean isProcessFinished() -
isUnfinished
public boolean isUnfinished() -
isProcessUnfinished
public boolean isProcessUnfinished() -
getDueDate
-
getDueBefore
-
getDueAfter
-
isWithoutTaskDueDate
public boolean isWithoutTaskDueDate() -
getFollowUpDate
-
getFollowUpBefore
-
getFollowUpAfter
-
getTaskName
-
getTaskNameLike
-
getTaskDescription
-
getTaskDescriptionLike
-
getTaskDeleteReason
-
getTaskDeleteReasonLike
-
getTaskAssignee
-
getTaskAssigneeLike
-
getTaskId
-
getTaskInvolvedGroup
-
getTaskInvolvedUser
-
getTaskHadCandidateGroup
-
getTaskHadCandidateUser
-
getTaskDefinitionKeys
-
getVariables
-
getVariableNamesIgnoreCase
-
getVariableValuesIgnoreCase
-
getTaskOwnerLike
-
getTaskOwner
-
getTaskPriority
-
getTaskParentTaskId
-
getTenantIds
-
getCaseDefinitionId
-
getCaseDefinitionKey
-
getCaseDefinitionName
-
getCaseInstanceId
-
getCaseExecutionId
-
getFinishedAfter
-
getFinishedBefore
-
getStartedAfter
-
getStartedBefore
-
isTenantIdSet
public boolean isTenantIdSet() -
getQueries
-
isOrQueryActive
public boolean isOrQueryActive() -
addOrQuery
-
setOrQueryActive
public void setOrQueryActive() -
or
Description copied from interface:HistoricTaskInstanceQueryAfter calling or(), a chain of several filter criteria could follow. Each filter criterion that follows or() will be linked together with an OR expression until the OR query is terminated. To terminate the OR query right after the last filter criterion was applied,
HistoricTaskInstanceQuery.endOr()must be invoked.- Specified by:
orin interfaceHistoricTaskInstanceQuery- Returns:
- an object of the type
HistoricTaskInstanceQueryon which an arbitrary amount of filter criteria could be applied. The several filter criteria will be linked together by an OR expression.
-
endOr
Description copied from interface:HistoricTaskInstanceQueryendOr() terminates an OR query on which an arbitrary amount of filter criteria were applied. To terminate the OR query which has been started by invoking
HistoricTaskInstanceQuery.or(), endOr() must be invoked. Filter criteria which are applied after calling endOr() are linked together by an AND expression.- Specified by:
endOrin interfaceHistoricTaskInstanceQuery- Returns:
- an object of the type
HistoricTaskInstanceQueryon which an arbitrary amount of filter criteria could be applied. The filter criteria will be linked together by an AND expression.
-