Programmatically creating a process


#1

Hi,

I want to design a business process diagram in BPMN 2.0 using Javascript. Does BPMN.io have some sort of API that I can call to create BPMN elements and connections, setting their position and, at the end, generate a BPMN 2.0 XML?

Thanks in advance,

Diogo Cardoso


#2

Hi,

is the bpmn-js command line interface an option for you?
You can check it out here: https://github.com/bpmn-io/bpmn-js-cli


#3

Yes, that looks very nice. However, I am only able to use the CLI in the web browser console. How can I use it inside my own JS code?

Thanks.


#4

Hi,

Can anyone help me?


#5

Have a look at the unit tests for modeling. They serve as documentation, too.