> ## 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 DMN model instance by the decision definition id using the [Repository Service](/user-guide/process-engine/process-engine-api#services-api), as the following incomplete test sample code shows:

```java theme={null}
public void testRepositoryService() {
  String decisionDefinitionId = repositoryService.createDecisionDefinitionQuery()
    .decisionDefinitionKey(DECISION_KEY).singleResult().getId();
  DmnModelInstance modelInstance = repositoryService
    .getDmnModelInstance(decisionDefinitionId);
}
```
