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 Summary
 HistoricTaskInstanceQuery activityInstanceIdIn(String... activityInstanceIds)
          Only select historic task instances which have one of the given activity instance ids.
 HistoricTaskInstanceQuery caseDefinitionId(String caseDefinitionId)
          Only select historic task instances for the given case definition.
 HistoricTaskInstanceQuery caseDefinitionKey(String caseDefinitionKey)
          Only select historic task instances which are part of a case instance which has the given case definition key.
 HistoricTaskInstanceQuery caseDefinitionName(String caseDefinitionName)
          Only select historic task instances which are part of a (historic) case instance which has the given case definition name.
 HistoricTaskInstanceQuery caseExecutionId(String caseExecutionId)
          Only select historic task instances for the given case execution id.
 HistoricTaskInstanceQuery caseInstanceId(String caseInstanceId)
          Only select historic task instances for the given case instance.
 HistoricTaskInstanceQuery executionId(String executionId)
          Only select historic task instances for the given execution.
 HistoricTaskInstanceQuery finished()
          Only select historic task instances which are finished.
 HistoricTaskInstanceQuery orderByCaseDefinitionId()
          Order by case definition id (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByCaseExecutionId()
          Order by case execution id (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByCaseInstanceId()
          Order by case instance id (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByDeleteReason()
          Order by task delete reason (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByExecutionId()
          Order by execution id (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByHistoricActivityInstanceId()
          Order by the historic activity instance id this task was used in (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByHistoricActivityInstanceStartTime()
          Order by start time (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByHistoricTaskInstanceDuration()
          Order by duration (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByHistoricTaskInstanceEndTime()
          Order by end time (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByProcessDefinitionId()
          Order by process definition id (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByProcessInstanceId()
          Order by process instance id (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByTaskAssignee()
          Order by task assignee (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByTaskDefinitionKey()
          Order by task definition key (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByTaskDescription()
          Order by task description (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByTaskDueDate()
          Order by task due date (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByTaskFollowUpDate()
          Order by task follow-up date (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByTaskId()
          Order by task id (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByTaskName()
          Order by task name (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByTaskOwner()
          Order by task owner (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery orderByTaskPriority()
          Order by task priority key (needs to be followed by Query.asc() or Query.desc()).
 HistoricTaskInstanceQuery processDefinitionId(String processDefinitionId)
          Only select historic task instances for the given process definition.
 HistoricTaskInstanceQuery processDefinitionKey(String processDefinitionKey)
          Only select historic task instances which are part of a (historic) process instance which has the given process definition key.
 HistoricTaskInstanceQuery processDefinitionName(String processDefinitionName)
          Only select historic task instances which are part of a (historic) process instance which has the given definition name.
 HistoricTaskInstanceQuery processFinished()
          Only select historic task instances which are part of a process instance which is already finished.
 HistoricTaskInstanceQuery processInstanceId(String processInstanceId)
          Only select historic task instances for the given process instance.
 HistoricTaskInstanceQuery processUnfinished()
          Only select historic task instances which are part of a process instance which is not finished yet.
 HistoricTaskInstanceQuery 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.
 HistoricTaskInstanceQuery taskAssignee(String taskAssignee)
          Only select historic task instances which were last assigned to the given assignee.
 HistoricTaskInstanceQuery taskAssigneeLike(String taskAssigneeLike)
          Only select historic task instances which were last assigned to an assignee like the given value.
 HistoricTaskInstanceQuery taskDefinitionKey(String taskDefinitionKey)
          Only select historic task instances with the given task definition key.
 HistoricTaskInstanceQuery taskDeleteReason(String taskDeleteReason)
          Only select historic task instances with the given task delete reason.
 HistoricTaskInstanceQuery taskDeleteReasonLike(String taskDeleteReasonLike)
          Only select historic task instances with a task description like the given value.
 HistoricTaskInstanceQuery taskDescription(String taskDescription)
          Only select historic task instances with the given task description.
 HistoricTaskInstanceQuery taskDescriptionLike(String taskDescriptionLike)
          Only select historic task instances with a task description like the given value.
 HistoricTaskInstanceQuery taskDueAfter(Date dueDate)
          Only select select historic task instances which have a due date after the given date.
 HistoricTaskInstanceQuery taskDueBefore(Date dueDate)
          Only select select historic task instances which have a due date before the given date.
 HistoricTaskInstanceQuery taskDueDate(Date dueDate)
          Only select select historic task instances with the given due date.
 HistoricTaskInstanceQuery taskFollowUpAfter(Date followUpDate)
          Only select select historic task instances which have a follow-up date after the given date.
 HistoricTaskInstanceQuery taskFollowUpBefore(Date followUpDate)
          Only select select historic task instances which have a follow-up date before the given date.
 HistoricTaskInstanceQuery taskFollowUpDate(Date followUpDate)
          Only select select historic task instances with the given follow-up date.
 HistoricTaskInstanceQuery taskId(String taskId)
          Only select historic task instances for the given task id.
 HistoricTaskInstanceQuery taskName(String taskName)
          Only select historic task instances with the given task name.
 HistoricTaskInstanceQuery taskNameLike(String taskNameLike)
          Only select historic task instances with a task name like the given value.
 HistoricTaskInstanceQuery taskOwner(String taskOwner)
          Only select historic task instances which have the given owner.
 HistoricTaskInstanceQuery taskOwnerLike(String taskOwnerLike)
          Only select historic task instances which have an owner like the one specified.
 HistoricTaskInstanceQuery taskParentTaskId(String parentTaskId)
          Only select subtasks of the given parent task
 HistoricTaskInstanceQuery taskPriority(Integer taskPriority)
          Only select historic task instances with the given priority.
 HistoricTaskInstanceQuery 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.
 HistoricTaskInstanceQuery unfinished()
          Only select historic task instances which aren't finished yet.
 
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult
 

Method Detail

taskId

HistoricTaskInstanceQuery taskId(String taskId)
Only select historic task instances for the given task id.


processInstanceId

HistoricTaskInstanceQuery processInstanceId(String processInstanceId)
Only select historic task instances for the given process instance.


executionId

HistoricTaskInstanceQuery executionId(String executionId)
Only select historic task instances for the given execution.


activityInstanceIdIn

HistoricTaskInstanceQuery activityInstanceIdIn(String... activityInstanceIds)
Only select historic task instances which have one of the given activity instance ids.


processDefinitionId

HistoricTaskInstanceQuery processDefinitionId(String processDefinitionId)
Only select historic task instances for the given process definition.


processDefinitionKey

HistoricTaskInstanceQuery processDefinitionKey(String processDefinitionKey)
Only select historic task instances which are part of a (historic) process instance which has the given process definition key.


processDefinitionName

HistoricTaskInstanceQuery processDefinitionName(String processDefinitionName)
Only select historic task instances which are part of a (historic) process instance which has the given definition name.


caseDefinitionId

HistoricTaskInstanceQuery caseDefinitionId(String caseDefinitionId)
Only select historic task instances for the given case definition.


caseDefinitionKey

HistoricTaskInstanceQuery caseDefinitionKey(String caseDefinitionKey)
Only select historic task instances which are part of a case instance which has the given case definition key.


caseDefinitionName

HistoricTaskInstanceQuery caseDefinitionName(String caseDefinitionName)
Only select historic task instances which are part of a (historic) case instance which has the given case definition name.


caseInstanceId

HistoricTaskInstanceQuery caseInstanceId(String caseInstanceId)
Only select historic task instances for the given case instance.


caseExecutionId

HistoricTaskInstanceQuery caseExecutionId(String caseExecutionId)
Only select historic task instances for the given case execution id.


taskName

HistoricTaskInstanceQuery taskName(String taskName)
Only select historic task instances with the given task name. This is the last name given to the task.


taskNameLike

HistoricTaskInstanceQuery taskNameLike(String taskNameLike)
Only 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%.


taskDescription

HistoricTaskInstanceQuery taskDescription(String taskDescription)
Only select historic task instances with the given task description. This is the last description given to the task.


taskDescriptionLike

HistoricTaskInstanceQuery taskDescriptionLike(String taskDescriptionLike)
Only 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%.


taskDefinitionKey

HistoricTaskInstanceQuery taskDefinitionKey(String taskDefinitionKey)
Only select historic task instances with the given task definition key.

See Also:
Task.getTaskDefinitionKey()

taskDeleteReason

HistoricTaskInstanceQuery taskDeleteReason(String taskDeleteReason)
Only select historic task instances with the given task delete reason.


taskDeleteReasonLike

HistoricTaskInstanceQuery taskDeleteReasonLike(String taskDeleteReasonLike)
Only 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%.


taskAssignee

HistoricTaskInstanceQuery taskAssignee(String taskAssignee)
Only select historic task instances which were last assigned to the given assignee.


taskAssigneeLike

HistoricTaskInstanceQuery taskAssigneeLike(String taskAssigneeLike)
Only select historic task instances which were last assigned to an assignee like the given value. The syntax that should be used is the same as in SQL, eg. %activiti%.


taskOwner

HistoricTaskInstanceQuery taskOwner(String taskOwner)
Only select historic task instances which have the given owner.


taskOwnerLike

HistoricTaskInstanceQuery taskOwnerLike(String taskOwnerLike)
Only 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%.


taskPriority

HistoricTaskInstanceQuery taskPriority(Integer taskPriority)
Only select historic task instances with the given priority.


finished

HistoricTaskInstanceQuery finished()
Only select historic task instances which are finished.


unfinished

HistoricTaskInstanceQuery unfinished()
Only select historic task instances which aren't finished yet.


processFinished

HistoricTaskInstanceQuery processFinished()
Only select historic task instances which are part of a process instance which is already finished.


processUnfinished

HistoricTaskInstanceQuery processUnfinished()
Only select historic task instances which are part of a process instance which is not finished yet.


taskVariableValueEquals

HistoricTaskInstanceQuery 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. Make sure history-level is configured >= AUDIT when this feature is used.


taskParentTaskId

HistoricTaskInstanceQuery taskParentTaskId(String parentTaskId)
Only select subtasks of the given parent task


processVariableValueEquals

HistoricTaskInstanceQuery 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. 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.


taskDueDate

HistoricTaskInstanceQuery taskDueDate(Date dueDate)
Only select select historic task instances with the given due date.


taskDueBefore

HistoricTaskInstanceQuery taskDueBefore(Date dueDate)
Only select select historic task instances which have a due date before the given date.


taskDueAfter

HistoricTaskInstanceQuery taskDueAfter(Date dueDate)
Only select select historic task instances which have a due date after the given date.


taskFollowUpDate

HistoricTaskInstanceQuery taskFollowUpDate(Date followUpDate)
Only select select historic task instances with the given follow-up date.


taskFollowUpBefore

HistoricTaskInstanceQuery taskFollowUpBefore(Date followUpDate)
Only select select historic task instances which have a follow-up date before the given date.


taskFollowUpAfter

HistoricTaskInstanceQuery taskFollowUpAfter(Date followUpDate)
Only select select historic task instances which have a follow-up date after the given date.


orderByTaskId

HistoricTaskInstanceQuery orderByTaskId()
Order by task id (needs to be followed by Query.asc() or Query.desc()).


orderByHistoricActivityInstanceId

HistoricTaskInstanceQuery orderByHistoricActivityInstanceId()
Order by the historic activity instance id this task was used in (needs to be followed by Query.asc() or Query.desc()).


orderByProcessDefinitionId

HistoricTaskInstanceQuery orderByProcessDefinitionId()
Order by process definition id (needs to be followed by Query.asc() or Query.desc()).


orderByProcessInstanceId

HistoricTaskInstanceQuery orderByProcessInstanceId()
Order by process instance id (needs to be followed by Query.asc() or Query.desc()).


orderByExecutionId

HistoricTaskInstanceQuery orderByExecutionId()
Order by execution id (needs to be followed by Query.asc() or Query.desc()).


orderByHistoricTaskInstanceDuration

HistoricTaskInstanceQuery orderByHistoricTaskInstanceDuration()
Order by duration (needs to be followed by Query.asc() or Query.desc()).


orderByHistoricTaskInstanceEndTime

HistoricTaskInstanceQuery orderByHistoricTaskInstanceEndTime()
Order by end time (needs to be followed by Query.asc() or Query.desc()).


orderByHistoricActivityInstanceStartTime

HistoricTaskInstanceQuery orderByHistoricActivityInstanceStartTime()
Order by start time (needs to be followed by Query.asc() or Query.desc()).


orderByTaskName

HistoricTaskInstanceQuery orderByTaskName()
Order by task name (needs to be followed by Query.asc() or Query.desc()).


orderByTaskDescription

HistoricTaskInstanceQuery orderByTaskDescription()
Order by task description (needs to be followed by Query.asc() or Query.desc()).


orderByTaskAssignee

HistoricTaskInstanceQuery orderByTaskAssignee()
Order by task assignee (needs to be followed by Query.asc() or Query.desc()).


orderByTaskOwner

HistoricTaskInstanceQuery orderByTaskOwner()
Order by task owner (needs to be followed by Query.asc() or Query.desc()).


orderByTaskDueDate

HistoricTaskInstanceQuery orderByTaskDueDate()
Order by task due date (needs to be followed by Query.asc() or Query.desc()).


orderByTaskFollowUpDate

HistoricTaskInstanceQuery orderByTaskFollowUpDate()
Order by task follow-up date (needs to be followed by Query.asc() or Query.desc()).


orderByDeleteReason

HistoricTaskInstanceQuery orderByDeleteReason()
Order by task delete reason (needs to be followed by Query.asc() or Query.desc()).


orderByTaskDefinitionKey

HistoricTaskInstanceQuery orderByTaskDefinitionKey()
Order by task definition key (needs to be followed by Query.asc() or Query.desc()).


orderByTaskPriority

HistoricTaskInstanceQuery orderByTaskPriority()
Order by task priority key (needs to be followed by Query.asc() or Query.desc()).


orderByCaseDefinitionId

HistoricTaskInstanceQuery orderByCaseDefinitionId()
Order by case definition id (needs to be followed by Query.asc() or Query.desc()).


orderByCaseInstanceId

HistoricTaskInstanceQuery orderByCaseInstanceId()
Order by case instance id (needs to be followed by Query.asc() or Query.desc()).


orderByCaseExecutionId

HistoricTaskInstanceQuery orderByCaseExecutionId()
Order by case execution id (needs to be followed by Query.asc() or Query.desc()).



Copyright © 2016 camunda services GmbH. All rights reserved.