Skip to main content
If you already created a CMMN model and want to process it through the CMMN 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 CMMN 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 plan item references a definition element (like human task, process task, etc.) while the referenced definition element contains default control. Consider the following simple CMMN model:
You can now use the CMMN model API to get the definition of the plan item with the ID PI_HumanTask_1.