> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aseeflow.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Repository Service

It is also possible to access the CMMN model instance by the case definition id using the [Repository Service](https://docs.aseeflow.org/1.x/user-guide/process-engine/process-engine-api.md#services-api), as the following incomplete test sample code shows.

```java theme={null}
public void testRepositoryService() {
  String caseDefinitionId = repositoryService.createCaseDefinitionQuery()
    .caseDefinitionKey(CASE_KEY).singleResult().getId();
  CmmnModelInstance modelInstance = repositoryService
    .getCmmnModelInstance(caseDefinitionId);
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.