# Uses of Interface
org.flowable.engine.repository.ModelQuery

Packages that use ModelQuery
Package
Description
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.engine.repository
Classes related to the `RepositoryService`.

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

  Methods in org.flowable.engine that return ModelQuery
  Modifier and Type
  Method
  Description
  `ModelQuery`
  RepositoryService.`createModelQuery()`
  Query models.

- ## Uses of ModelQuery in org.flowable.engine.repository

  Methods in org.flowable.engine.repository that return ModelQuery
  Modifier and Type
  Method
  Description
  `ModelQuery`
  ModelQuery.`deployed()`
  Only select models that are deployed (ie deploymentId !
  `ModelQuery`
  ModelQuery.`deploymentId(String deploymentId)`
  Only select models that are the source for the provided deployment
  `ModelQuery`
  ModelQuery.`latestVersion()`
  Only select models which has the highest version.
  `ModelQuery`
  ModelQuery.`modelCategory(String modelCategory)`
  Only select models with the given category.
  `ModelQuery`
  ModelQuery.`modelCategoryLike(String modelCategoryLike)`
  Only select models where the category matches the given parameter.
  `ModelQuery`
  ModelQuery.`modelCategoryNotEquals(String categoryNotEquals)`
  Only select models that have a different category then the given one.
  `ModelQuery`
  ModelQuery.`modelId(String modelId)`
  Only select model with the given id.
  `ModelQuery`
  ModelQuery.`modelKey(String key)`
  Only selects models with the given key.
  `ModelQuery`
  ModelQuery.`modelName(String modelName)`
  Only select models with the given name.
  `ModelQuery`
  ModelQuery.`modelNameLike(String modelNameLike)`
  Only select models where the name matches the given parameter.
  `ModelQuery`
  ModelQuery.`modelTenantId(String tenantId)`
  Only select models that have the given tenant id.
  `ModelQuery`
  ModelQuery.`modelTenantIdLike(String tenantIdLike)`
  Only select models with a tenant id like the given one.
  `ModelQuery`
  ModelQuery.`modelVersion(Integer modelVersion)`
  Only select model with a certain version.
  `ModelQuery`
  ModelQuery.`modelWithoutTenantId()`
  Only select models that do not have a tenant id.
  `ModelQuery`
  ModelQuery.`notDeployed()`
  Only select models that are not yet deployed
  `ModelQuery`
  ModelQuery.`orderByCreateTime()`
  Order by the creation time of the models (needs to be followed by `Query.asc()` or `Query.desc()`).
  `ModelQuery`
  ModelQuery.`orderByLastUpdateTime()`
  Order by the last update time of the models (needs to be followed by `Query.asc()` or `Query.desc()`).
  `ModelQuery`
  ModelQuery.`orderByModelCategory()`
  Order by the category of the models (needs to be followed by `Query.asc()` or `Query.desc()`).
  `ModelQuery`
  ModelQuery.`orderByModelId()`
  Order by the id of the models (needs to be followed by `Query.asc()` or `Query.desc()`).
  `ModelQuery`
  ModelQuery.`orderByModelKey()`
  Order by the key of the models (needs to be followed by `Query.asc()` or `Query.desc()`).
  `ModelQuery`
  ModelQuery.`orderByModelName()`
  Order by the name of the models (needs to be followed by `Query.asc()` or `Query.desc()`).
  `ModelQuery`
  ModelQuery.`orderByModelVersion()`
  Order by the version of the models (needs to be followed by `Query.asc()` or `Query.desc()`).
  `ModelQuery`
  ModelQuery.`orderByTenantId()`
  Order by tenant id (needs to be followed by `Query.asc()` or `Query.desc()`).