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

- Packages that use HistoricActivityInstanceQuery
  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 HistoricActivityInstanceQuery in org.activiti.engine

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

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

    Methods in org.activiti.engine.history that return HistoricActivityInstanceQuery
    Modifier and Type | Method and Description
    --- | ---
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`activityId(String activityId)` Only select historic activity instances for the given activity (id from BPMN 2.0 XML)
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`activityInstanceId(String activityInstanceId)` Only select historic activity instances with the given id (primary key within history tables).
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`activityName(String activityName)` Only select historic activity instances for activities with the given name
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`activityTenantId(String tenantId)` Only select historic activity instances that have the given tenant id.
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`activityTenantIdLike(String tenantIdLike)` Only select historic activity instances with a tenant id like the given one.
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`activityType(String activityType)` Only select historic activity instances for activities with the given activity type
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`activityWithoutTenantId()` Only select historic activity instances that do not have a tenant id.
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`executionId(String executionId)` Only select historic activity instances for the given execution
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`finished()` Only select historic activity instances that are finished.
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`orderByActivityId()` Order by activityId (needs to be followed by `Query.asc()` or `Query.desc()`).
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`orderByActivityName()` Order by activityName (needs to be followed by `Query.asc()` or `Query.desc()`).
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`orderByActivityType()` Order by activityType (needs to be followed by `Query.asc()` or `Query.desc()`).
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`orderByExecutionId()` Order by executionId (needs to be followed by `Query.asc()` or `Query.desc()`).
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`orderByHistoricActivityInstanceDuration()` Order by duration (needs to be followed by `Query.asc()` or `Query.desc()`).
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`orderByHistoricActivityInstanceEndTime()` Order by end (needs to be followed by `Query.asc()` or `Query.desc()`).
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`orderByHistoricActivityInstanceId()` Order by id (needs to be followed by `Query.asc()` or `Query.desc()`).
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`orderByHistoricActivityInstanceStartTime()` Order by start (needs to be followed by `Query.asc()` or `Query.desc()`).
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`orderByProcessDefinitionId()` Order by processDefinitionId (needs to be followed by `Query.asc()` or `Query.desc()`).
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`orderByProcessInstanceId()` Order by processInstanceId (needs to be followed by `Query.asc()` or `Query.desc()`).
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`orderByTenantId()` Order by tenant id (needs to be followed by `Query.asc()` or `Query.desc()`).
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`processDefinitionId(String processDefinitionId)` Only select historic activity instances for the given process definition
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`processInstanceId(String processInstanceId)` Only select historic activity instances with the given process instance.
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`taskAssignee(String userId)` Only select historic activity instances for userTask activities assigned to the given user
    `HistoricActivityInstanceQuery` | HistoricActivityInstanceQuery.`unfinished()` Only select historic activity instances that are not finished yet.

Copyright © 2016 Alfresco. All rights reserved.