# Uses of Interface
org.flowable.task.api.history.HistoricTaskInstanceQuery

Packages that use HistoricTaskInstanceQuery
Package
Description
org.flowable.cmmn.api
org.flowable.engine
Public API of the Flowable engine.
Typical usage of the API starts by the creation of a `ProcessEngineConfiguration` (typically based on a configuration file), from which a `ProcessEngine` can be obtained.
Through the services obtained from such a `ProcessEngine`, BPM and workflow operation can be executed:
`RepositoryService`: Manages `Deployment`s.
`RuntimeService`: For starting and searching `ProcessInstance`s.
`TaskService`: Exposes operations to manage human (standalone) tasks, such as claiming, completing and assigning tasks.
`IdentityService`: Used for managing users, groups and the relations between them.
`ManagementService`: Exposes engine administration and maintenance operations, which have no relation to the runtime exection of business processes.
`HistoryService`: Exposes information about ongoing and past process instances.
`FormService`: Access to form data and rendered forms for starting new process instances and completing tasks.
org.flowable.task.api.history

- ## Uses of HistoricTaskInstanceQuery in org.flowable.cmmn.api

  Methods in org.flowable.cmmn.api that return HistoricTaskInstanceQuery
  Modifier and Type
  Method
  Description
  `HistoricTaskInstanceQuery`
  CmmnHistoryService.`createHistoricTaskInstanceQuery()`

- ## Uses of HistoricTaskInstanceQuery in org.flowable.engine

  Methods in org.flowable.engine that return HistoricTaskInstanceQuery
  Modifier and Type
  Method
  Description
  `HistoricTaskInstanceQuery`
  HistoryService.`createHistoricTaskInstanceQuery()`
  Creates a new programmatic query to search for `HistoricTaskInstance`s.

- ## Uses of HistoricTaskInstanceQuery in org.flowable.task.api.history

  Methods in org.flowable.task.api.history that return HistoricTaskInstanceQuery
  Modifier and Type
  Method
  Description
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`finished()`
  Only select historic task instances which are finished.
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`orderByDeleteReason()`
  Order by task delete reason (needs to be followed by `Query.asc()` or `Query.desc()`).
  `HistoricTaskInstanceQuery`
  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`
  HistoricTaskInstanceQuery.`orderByHistoricTaskInstanceDuration()`
  Order by duration (needs to be followed by `Query.asc()` or `Query.desc()`).
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`orderByHistoricTaskInstanceEndTime()`
  Order by end time (needs to be followed by `Query.asc()` or `Query.desc()`).
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`orderByHistoricTaskInstanceStartTime()`
  Order by start time (needs to be followed by `Query.asc()` or `Query.desc()`).
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`processFinished()`
  Only select historic task instances which are part of a process instance which is already finished.
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`processUnfinished()`
  Only select historic task instances which are part of a process instance which is not finished yet.
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`taskCompletedAfter(Date endDate)`
  Only select historic task instances which are completed after the given date
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`taskCompletedBefore(Date endDate)`
  Only select historic task instances which are completed before the given date
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`taskCompletedBy(String userId)`
  Only select historic task instances which are completed by the given user
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`taskCompletedOn(Date endDate)`
  Only select historic task instances which are completed on the given date
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`taskDeleteReason(String taskDeleteReason)`
  Only select historic task instances with the given task delete reason.
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`taskDeleteReasonLike(String taskDeleteReasonLike)`
  Only select historic task instances with a task description like the given value.
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`taskParentTaskId(String parentTaskId)`
  Only select subtasks of the given parent task
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`taskWithoutDeleteReason()`
  Only select historic tasks without a delete reason (completed normally)
  `HistoricTaskInstanceQuery`
  HistoricTaskInstanceQuery.`unfinished()`
  Only select historic task instances which aren't finished yet.
  Methods in org.flowable.task.api.history with parameters of type HistoricTaskInstanceQuery
  Modifier and Type
  Method
  Description
  `void`
  HistoricTaskQueryInterceptor.`afterHistoricTaskQueryExecute(HistoricTaskInstanceQuery taskQuery, List<HistoricTaskInstance> historicTasks)`
  `void`
  HistoricTaskQueryInterceptor.`beforeHistoricTaskQueryExecute(HistoricTaskInstanceQuery taskQuery)`