## Uses of Interface
org.activiti.engine.runtime.JobQuery

- Packages that use JobQuery
  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.runtime | Classes related to the `RuntimeService`.

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

    Methods in org.activiti.engine that return JobQuery
    Modifier and Type | Method and Description
    --- | ---
    `JobQuery` | ManagementService.`createJobQuery()` Returns a new JobQuery implementation, that can be used to dynamically query the jobs.

  - ### Uses of JobQuery in org.activiti.engine.runtime

    Methods in org.activiti.engine.runtime that return JobQuery
    Modifier and Type | Method and Description
    --- | ---
    `JobQuery` | JobQuery.`duedateHigherThan(Date date)` Only select jobs where the duedate is higher then the given date.
    `JobQuery` | JobQuery.`duedateHigherThen(Date date)` Deprecated.
    `JobQuery` | JobQuery.`duedateHigherThenOrEquals(Date date)` Deprecated.
    `JobQuery` | JobQuery.`duedateLowerThan(Date date)` Only select jobs where the duedate is lower than the given date.
    `JobQuery` | JobQuery.`duedateLowerThen(Date date)` Deprecated.
    `JobQuery` | JobQuery.`duedateLowerThenOrEquals(Date date)` Deprecated.
    `JobQuery` | JobQuery.`exceptionMessage(String exceptionMessage)` Only select jobs that failed due to an exception with the given message.
    `JobQuery` | JobQuery.`executable()` Only select jobs which are executable, ie.
    `JobQuery` | JobQuery.`executionId(String executionId)` Only select jobs which exist for the given execution
    `JobQuery` | JobQuery.`jobId(String jobId)` Only select jobs with the given id
    `JobQuery` | JobQuery.`jobTenantId(String tenantId)` Only select jobs that have the given tenant id.
    `JobQuery` | JobQuery.`jobTenantIdLike(String tenantIdLike)` Only select jobs with a tenant id like the given one.
    `JobQuery` | JobQuery.`jobWithoutTenantId()` Only select jobs that do not have a tenant id.
    `JobQuery` | JobQuery.`messages()` Only select jobs that are messages.
    `JobQuery` | JobQuery.`noRetriesLeft()` Only select jobs which have no retries left
    `JobQuery` | JobQuery.`orderByExecutionId()` Order by execution id (needs to be followed by `Query.asc()` or `Query.desc()`).
    `JobQuery` | JobQuery.`orderByJobDuedate()` Order by duedate (needs to be followed by `Query.asc()` or `Query.desc()`).
    `JobQuery` | JobQuery.`orderByJobId()` Order by job id (needs to be followed by `Query.asc()` or `Query.desc()`).
    `JobQuery` | JobQuery.`orderByJobRetries()` Order by retries (needs to be followed by `Query.asc()` or `Query.desc()`).
    `JobQuery` | JobQuery.`orderByProcessInstanceId()` Order by process instance id (needs to be followed by `Query.asc()` or `Query.desc()`).
    `JobQuery` | JobQuery.`orderByTenantId()` Order by tenant id (needs to be followed by `Query.asc()` or `Query.desc()`).
    `JobQuery` | JobQuery.`processDefinitionId(String processDefinitionid)` Only select jobs which exist for the given process definition id
    `JobQuery` | JobQuery.`processInstanceId(String processInstanceId)` Only select jobs which exist for the given process instance.
    `JobQuery` | JobQuery.`timers()` Only select jobs that are timers.
    `JobQuery` | JobQuery.`withException()` Only select jobs that failed due to an exception.
    `JobQuery` | JobQuery.`withRetriesLeft()` Only select jobs which have retries left

Copyright © 2016 Alfresco. All rights reserved.