cancel
Showing results for 
Search instead for 
Did you mean: 

Framework to create bpmn xml - jdom, stax vs. velocity

udoderk
Champ in-the-making
Champ in-the-making
Hi users of activiti,

i need to generate the bpmn xml to deploy to activiti using the given other model of business process. I use the jdom to create it. Someone has suggested to replace the jdom and use the…. apache velocity. I have no experience with that framework, but as i have seen, that velocity is required (extra template, that use script language, initializing to create the java objects from template etc.), I think that velocityis less suited to create xml.

Of course you can say that JDOM is not best choice (it can stax and not jdom used). But the velocity has (imho) no possibilities, that have the jdom or stax & Co.)

What do you think about it?

Other question is what is used to create xml bpmn in activiti desinger?

Thanks
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

Did you also take a look at the activiti-bpmn-model and activiti-bpmn-converter projects?
When you're able to transform your business process model to the Java BPMN POJO model of activiti-bpmn-model you can use the activiti-bpmn-converter project to generate the XML for you.
The Activiti Designer also uses these projects.

Best regards,

udoderk
Champ in-the-making
Champ in-the-making
Hi,

Did you also take a look at the activiti-bpmn-model and activiti-bpmn-converter projects?
When you're able to transform your business process model to the Java BPMN POJO model of activiti-bpmn-model you can use the activiti-bpmn-converter project to generate the XML for you.
The Activiti Designer also uses these projects.

Best regards,

Hi, i thank you for the quick response, i will be read about Java BPMN POJO & activiti-bpmn-converter.

Right off the bat, however, I doubt that it will help in my case, since I have introduced some extras during XML generation related to form properties for UserTasks. (i use some custom form types & renderers…)