# Uses of Interface
org.flowable.task.api.TaskQuery

Packages that use TaskQuery
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

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

  Methods in org.flowable.cmmn.api that return TaskQuery
  Modifier and Type
  Method
  Description
  `TaskQuery`
  CmmnTaskService.`createTaskQuery()`

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

  Methods in org.flowable.engine that return TaskQuery
  Modifier and Type
  Method
  Description
  `TaskQuery`
  TaskService.`createTaskQuery()`
  Returns a new `TaskQuery` that can be used to dynamically query tasks.

- ## Uses of TaskQuery in org.flowable.task.api

  Methods in org.flowable.task.api that return TaskQuery
  Modifier and Type
  Method
  Description
  `TaskQuery`
  TaskQuery.`active()`
  Only selects tasks which are active (ie. not suspended)
  `TaskQuery`
  TaskQuery.`excludeSubtasks()`
  Only select tasks that have no parent (i.e. do not select subtasks).
  `TaskQuery`
  TaskQuery.`suspended()`
  Only selects tasks which are suspended, because its process instance was suspended.
  `TaskQuery`
  TaskQuery.`taskCandidateOrAssigned(String userIdForCandidateAndAssignee)`
  Select tasks that has been claimed or assigned to user or waiting to claim by user (candidate user or groups).
  `TaskQuery`
  TaskQuery.`taskDelegationState(DelegationState delegationState)`
  Only select tasks with the given `DelegationState`.
  Methods in org.flowable.task.api with parameters of type TaskQuery
  Modifier and Type
  Method
  Description
  `void`
  TaskQueryInterceptor.`afterTaskQueryExecute(TaskQuery taskQuery, List<Task> tasks)`
  `void`
  TaskQueryInterceptor.`beforeTaskQueryExecute(TaskQuery taskQuery)`