Hi BPMN.IO,
Can I create programatically a diagram?
Let’s say, createCirle(), so it creates a circle in the div. Something like that?
Thanks,
Jhayson
Hi BPMN.IO,
Can I create programatically a diagram?
Let’s say, createCirle(), so it creates a circle in the div. Something like that?
Thanks,
Jhayson
Using our modeling API you can create diagrams programatically. You can also use bpmn-js-cli.
Could you give CDN for modelling API?
And could you give example code?
Open this starter example.
Get the modeling
service like this:
const modeling = bpmnJS.get('modeling');
Use it.
For cross reference, this has been answered here, too.