## Uses of Interface
org.activiti.engine.history.HistoricTaskInstanceQuery

- Packages that use HistoricTaskInstanceQuery
  Package | Description
  --- | ---
  org.activiti.engine | Public API of the Activiti 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) `Task`s, such as claiming, completing and assigning tasks `IdentityService`: Used for managing `User`s, `Group`s and the relations between them `ManagementService`: Exposes engine admin 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.activiti.engine.history | Classes related to the `HistoryService`.

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

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

  - ### Uses of HistoricTaskInstanceQuery in org.activiti.engine.history

    Methods in org.activiti.engine.history that return HistoricTaskInstanceQuery
    Modifier and Type | Method and 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.`orderByHistoricActivityInstanceStartTime()` Deprecated. use `orderByHistoricTaskInstanceStartTime()`
    `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()` Deprecated. Use `TaskInfoQuery.orderByTaskCreateTime()`
    `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 select historic task instances which are completed after the given date
    `HistoricTaskInstanceQuery` | HistoricTaskInstanceQuery.`taskCompletedBefore(Date endDate)` Only select select historic task instances which are completed before the given date
    `HistoricTaskInstanceQuery` | HistoricTaskInstanceQuery.`taskCompletedOn(Date endDate)` Only select 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.`unfinished()` Only select historic task instances which aren't finished yet.

Copyright © 2016 Alfresco. All rights reserved.