Skip to main content
If you already created a DMN model and want to process it through the DMN model API, you can import it with the following methods:
After you imported your model, you can search for elements by their id or by the type of element.
For every element instance you can now read and edit the attribute values. You can do this by either using the provided helper methods or the generic XML model API. If you added custom attributes to the DMN elements, you can always access them with the generic XML model API.
You can also access the child elements of an element or references to other elements. For example, a decision has a required decision which it depends on. A required decision is represented by a requiredDecision element inside an informationRequirement XML element. Consider the following simple DMN model:
You can now use the DMN model API to get the input elements of the required decisions.