It is also possible to access the DMN model instance by the decision definition id using the Repository Service, as the following incomplete test sample code shows:
public void testRepositoryService() {
String decisionDefinitionId = repositoryService.createDecisionDefinitionQuery()
.decisionDefinitionKey(DECISION_KEY).singleResult().getId();
DmnModelInstance modelInstance = repositoryService
.getDmnModelInstance(decisionDefinitionId);
}
原文: https://docs.camunda.org/manual/7.9/user-guide/model-api/dmn-model-api/repository-service/