i have followed the API documentation and created something very simple. (start->task->end).
and then i create a bpmn file (see below).
Then i went to the modeler and tried to ‘open’ the file.
From what i can see, the DI elements are not created.
Indeed you’re correct, the model API doesn’t create any DI - in fact it’s not really intended for building models to be displayed in the modeler.
But luckily our very own @Beagler has kindly built a very useful tool that can help you build the DI you can check it out here. BPMN <bpmndi> generator utility
Niall, I have a follow up question.
If I want to use the generator utility you mentioned, do you have it packaged as a maven dependency as well so i would just need to add a dependency to my project?