cancel
Showing results for 
Search instead for 
Did you mean: 

Can I programmatically create BPMN (the xml) ?

afshad
Champ in-the-making
Champ in-the-making
Is it possible to use the API to programmatically create the BPMN for a process instead of using the modeler??
Has anyone done this? Any examples? The user guide has nothing regarding this. Only shows how to create processes from existing BPMN xml.

I see in the API a way to create a new Task but not how to specify it to be a Java Service Task. I dont see any examples around this.
Also is the API experimental and not recommended to be used in a Production environment?

Thanks.
2 REPLIES 2

oca
Champ in-the-making
Champ in-the-making
BPMN2 has an XMLSchema (.xsd)
You can then generate Java classes from these xsd (using JAXB "xjc" tool for instance)
you will then be able to create bpmn xml files using your classes and the JAXB Marshaller.

BUT… you must keep in mind that not anything is implemented yet…

I may post an example if someone need that.

Cheers.

Olivier

liujidong
Champ in-the-making
Champ in-the-making
Is there an example that create java file from bpmn xml file?