# Uses of Interface
org.flowable.job.api.HistoryJobQuery

Packages that use HistoryJobQuery
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.job.api

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

  Methods in org.flowable.cmmn.api that return HistoryJobQuery
  Modifier and Type
  Method
  Description
  `HistoryJobQuery`
  CmmnManagementService.`createHistoryJobQuery()`
  Returns a new HistoryJobQuery implementation, that can be used to dynamically query the history jobs.

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

  Methods in org.flowable.engine that return HistoryJobQuery
  Modifier and Type
  Method
  Description
  `HistoryJobQuery`
  ManagementService.`createHistoryJobQuery()`
  Returns a new HistoryJobQuery implementation, that can be used to dynamically query the history jobs.

- ## Uses of HistoryJobQuery in org.flowable.job.api

  Methods in org.flowable.job.api that return HistoryJobQuery
  Modifier and Type
  Method
  Description
  `HistoryJobQuery`
  HistoryJobQuery.`exceptionMessage(String exceptionMessage)`
  Only select jobs that failed due to an exception with the given message.
  `HistoryJobQuery`
  HistoryJobQuery.`handlerType(String handlerType)`
  Select jobs which have given job handler type
  `HistoryJobQuery`
  HistoryJobQuery.`handlerTypes(Collection<String> handlerType)`
  Select jobs which have given job handler type
  `HistoryJobQuery`
  HistoryJobQuery.`jobId(String jobId)`
  Only select jobs with the given id
  `HistoryJobQuery`
  HistoryJobQuery.`jobTenantId(String tenantId)`
  Only select jobs that have the given tenant id.
  `HistoryJobQuery`
  HistoryJobQuery.`jobTenantIdLike(String tenantIdLike)`
  Only select jobs with a tenant id like the given one.
  `HistoryJobQuery`
  HistoryJobQuery.`jobWithoutTenantId()`
  Only select jobs that do not have a tenant id.
  `HistoryJobQuery`
  HistoryJobQuery.`locked()`
  Only return jobs that are locked (i.e. they are acquired by an executor).
  `HistoryJobQuery`
  HistoryJobQuery.`lockOwner(String lockOwner)`
  Only return jobs with the given lock owner.
  `HistoryJobQuery`
  HistoryJobQuery.`orderByJobId()`
  Order by job id (needs to be followed by `Query.asc()` or `Query.desc()`).
  `HistoryJobQuery`
  HistoryJobQuery.`orderByJobRetries()`
  Order by retries (needs to be followed by `Query.asc()` or `Query.desc()`).
  `HistoryJobQuery`
  HistoryJobQuery.`orderByTenantId()`
  Order by tenant id (needs to be followed by `Query.asc()` or `Query.desc()`).
  `HistoryJobQuery`
  HistoryJobQuery.`scopeType(String scopeType)`
  Only select jobs with the given scope type.
  `HistoryJobQuery`
  HistoryJobQuery.`unlocked()`
  Only return jobs that are not locked.
  `HistoryJobQuery`
  HistoryJobQuery.`withException()`
  Only select jobs that failed due to an exception.
  `HistoryJobQuery`
  HistoryJobQuery.`withoutScopeType()`
  Only return jobs that do not have a scope type.