Package org.camunda.bpm.engine.history
Interface HistoricTaskInstanceQuery
- All Superinterfaces:
- Query<HistoricTaskInstanceQuery,- HistoricTaskInstance> 
- All Known Implementing Classes:
- HistoricTaskInstanceQueryImpl
public interface HistoricTaskInstanceQuery
extends Query<HistoricTaskInstanceQuery,HistoricTaskInstance> 
Allows programmatic querying for 
HistoricTaskInstances.- Author:
- Tom Baeyens
- 
Method SummaryModifier and TypeMethodDescriptionactivityInstanceIdIn(String... activityInstanceIds) Only select historic task instances which have one of the given activity instance ids.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.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 dateThe 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.startedAfter(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 dueDate) Only select select historic task instances which have a due date after the given date.taskDueBefore(Date dueDate) 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 followUpDate) Only select select historic task instances which have a follow-up date after the given date.taskFollowUpBefore(Date followUpDate) 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 candidateGroup) Only select historic task instances which have mapping with Historic identity links with the condition of group being a candidatetaskHadCandidateUser(String candidateUser) 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 involvedGroup) Only select historic task instances which have mapping with Historic identity links based on group idtaskInvolvedUser(String involvedUser) 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 interface org.camunda.bpm.engine.query.Queryasc, count, desc, list, listPage, singleResult, unlimitedList
- 
Method Details- 
taskIdOnly select historic task instances for the given task id.
- 
processInstanceIdOnly select historic task instances for the given process instance.
- 
rootProcessInstanceIdOnly select historic task instances for the given root process instance.
- 
processInstanceBusinessKeyOnly select historic tasks for the given process instance business key
- 
processInstanceBusinessKeyInOnly select historic tasks for any of the given the given process instance business keys.
- 
processInstanceBusinessKeyLikeOnly select historic tasks matching the given process instance business key. The syntax is that of SQL: for example usage: nameLike(%camunda%)
- 
executionIdOnly select historic task instances for the given execution.
- 
activityInstanceIdInOnly select historic task instances which have one of the given activity instance ids.
- 
processDefinitionIdOnly select historic task instances for the given process definition.
- 
processDefinitionKeyOnly select historic task instances which are part of a (historic) process instance which has the given process definition key.
- 
processDefinitionNameOnly select historic task instances which are part of a (historic) process instance which has the given definition name.
- 
caseDefinitionIdOnly select historic task instances for the given case definition.
- 
caseDefinitionKeyOnly select historic task instances which are part of a case instance which has the given case definition key.
- 
caseDefinitionNameOnly select historic task instances which are part of a (historic) case instance which has the given case definition name.
- 
caseInstanceIdOnly select historic task instances for the given case instance.
- 
caseExecutionIdOnly select historic task instances for the given case execution id.
- 
taskNameOnly 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.
- 
taskNameLikeOnly 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.
- 
taskDescriptionOnly 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.
- 
taskDescriptionLikeOnly 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.
- 
taskDefinitionKeyOnly select historic task instances with the given task definition key.- See Also:
 
- 
taskDefinitionKeyInOnly select historic task instances with one of the given task definition keys.- See Also:
 
- 
taskDeleteReasonOnly select historic task instances with the given task delete reason.
- 
taskDeleteReasonLikeOnly 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%.
- 
taskAssignedHistoricTaskInstanceQuery taskAssigned()Only select historic task instances with an assignee.
- 
taskUnassignedHistoricTaskInstanceQuery taskUnassigned()Only select historic task instances without an assignee.
- 
taskAssigneeOnly select historic task instances which were last taskAssigned to the given assignee.
- 
taskAssigneeLikeOnly 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%.
- 
taskOwnerOnly select historic task instances which have the given owner.
- 
taskOwnerLikeOnly 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%.
- 
taskPriorityOnly select historic task instances with the given priority.
- 
finishedHistoricTaskInstanceQuery finished()Only select historic task instances which are finished.
- 
unfinishedHistoricTaskInstanceQuery unfinished()Only select historic task instances which aren't finished yet.
- 
processFinishedHistoricTaskInstanceQuery processFinished()Only select historic task instances which are part of a process instance which is already finished.
- 
processUnfinishedHistoricTaskInstanceQuery processUnfinished()Only select historic task instances which are part of a process instance which is not finished yet.
- 
taskInvolvedUserOnly select historic task instances which have mapping with Historic identity links based on user id- Since:
- 7.5
 
- 
taskInvolvedGroupOnly select historic task instances which have mapping with Historic identity links based on group id- Since:
- 7.5
 
- 
taskHadCandidateUserOnly select historic task instances which have mapping with Historic identity links with the condition of user being a candidate- Since:
- 7.5
 
- 
taskHadCandidateGroupOnly select historic task instances which have mapping with Historic identity links with the condition of group being a candidate- Since:
- 7.5
 
- 
withCandidateGroupsHistoricTaskInstanceQuery withCandidateGroups()Only select historic task instances which have a candidate group
- 
withoutCandidateGroupsHistoricTaskInstanceQuery withoutCandidateGroups()Only select historic task instances which have no candidate group
- 
matchVariableNamesIgnoreCaseHistoricTaskInstanceQuery matchVariableNamesIgnoreCase()The query will match the names of task and process variables in a case-insensitive way.
- 
matchVariableValuesIgnoreCaseHistoricTaskInstanceQuery matchVariableValuesIgnoreCase()The query will match the values of task and process variables in a case-insensitive way.
- 
taskVariableValueEqualsOnly 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.
- 
taskParentTaskIdOnly select subtasks of the given parent task
- 
processVariableValueEqualsOnly 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.
- 
processVariableValueNotEqualsOnly 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.
- 
processVariableValueLikeOnly 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%)
- 
processVariableValueNotLikeOnly 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%)
- 
processVariableValueGreaterThanHistoricTaskInstanceQuery 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.
- 
processVariableValueGreaterThanOrEqualsHistoricTaskInstanceQuery 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.
- 
processVariableValueLessThanOnly 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.
- 
processVariableValueLessThanOrEqualsHistoricTaskInstanceQuery 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.
- 
taskDueDateOnly select select historic task instances with the given due date.
- 
taskDueBeforeOnly select select historic task instances which have a due date before the given date.
- 
taskDueAfterOnly select select historic task instances which have a due date after the given date.
- 
withoutTaskDueDateHistoricTaskInstanceQuery withoutTaskDueDate()Only select select historic task instances that have no due date.
- 
taskFollowUpDateOnly select select historic task instances with the given follow-up date.
- 
taskFollowUpBeforeOnly select select historic task instances which have a follow-up date before the given date.
- 
taskFollowUpAfterOnly select select historic task instances which have a follow-up date after the given date.
- 
tenantIdInOnly select historic task instances with one of the given tenant ids.
- 
withoutTenantIdHistoricTaskInstanceQuery withoutTenantId()Only selects historic task instances that have no tenant id.
- 
finishedAfterOnly select tasks where end time is after given date
- 
finishedBeforeOnly select tasks where end time is before given date
- 
startedAfterOnly select tasks where started after given date
- 
startedBeforeOnly select tasks where started before given date
- 
orderByTenantIdHistoricTaskInstanceQuery orderByTenantId()Order 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.
- 
orderByTaskIdHistoricTaskInstanceQuery orderByTaskId()Order by task id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByHistoricActivityInstanceIdHistoricTaskInstanceQuery orderByHistoricActivityInstanceId()Order by the historic activity instance id this task was used in (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByProcessDefinitionIdHistoricTaskInstanceQuery orderByProcessDefinitionId()Order by process definition id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByProcessInstanceIdHistoricTaskInstanceQuery orderByProcessInstanceId()Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByExecutionIdHistoricTaskInstanceQuery orderByExecutionId()Order by execution id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByHistoricTaskInstanceDurationHistoricTaskInstanceQuery orderByHistoricTaskInstanceDuration()Order by duration (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByHistoricTaskInstanceEndTimeHistoricTaskInstanceQuery orderByHistoricTaskInstanceEndTime()Order by end time (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByHistoricActivityInstanceStartTimeHistoricTaskInstanceQuery orderByHistoricActivityInstanceStartTime()Order by start time (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByTaskNameHistoricTaskInstanceQuery orderByTaskName()Order by task name (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByTaskDescriptionHistoricTaskInstanceQuery orderByTaskDescription()Order by task description (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByTaskAssigneeHistoricTaskInstanceQuery orderByTaskAssignee()Order by task assignee (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByTaskOwnerHistoricTaskInstanceQuery orderByTaskOwner()Order by task owner (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByTaskDueDateHistoricTaskInstanceQuery orderByTaskDueDate()Order by task due date (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByTaskFollowUpDateHistoricTaskInstanceQuery orderByTaskFollowUpDate()Order by task follow-up date (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByDeleteReasonHistoricTaskInstanceQuery orderByDeleteReason()Order by task delete reason (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByTaskDefinitionKeyHistoricTaskInstanceQuery orderByTaskDefinitionKey()Order by task definition key (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByTaskPriorityHistoricTaskInstanceQuery orderByTaskPriority()Order by task priority key (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByCaseDefinitionIdHistoricTaskInstanceQuery orderByCaseDefinitionId()Order by case definition id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByCaseInstanceIdHistoricTaskInstanceQuery orderByCaseInstanceId()Order by case instance id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orderByCaseExecutionIdHistoricTaskInstanceQuery orderByCaseExecutionId()Order by case execution id (needs to be followed byQuery.asc()orQuery.desc()).
- 
orAfter 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, endOr()must be invoked.- 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.
- Throws:
- ProcessEngineException- when or() has been invoked directly after or() or after or() and trailing filter criteria. To prevent throwing this exception,- endOr()must be invoked after a chain of filter criteria to mark the end of the OR query.
 
- 
endOrHistoricTaskInstanceQuery endOr()endOr() 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 or(), endOr() must be invoked. Filter criteria which are applied after calling endOr() are linked together by an AND expression.- 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.
- Throws:
- ProcessEngineException- when endOr() has been invoked before- or()was invoked. To prevent throwing this exception,- or()must be invoked first.
 
 
-