cancel
Showing results for 
Search instead for 
Did you mean: 

Generating acitiviti workflow from Java Code

hellowrakesh123
Champ in-the-making
Champ in-the-making
Hi,
I am looking for a solution where in i can generic an acitviti workflow (bpmn.xml) using Java Code. This is required primarily as the workflow can be defined in our application based on the inputs provided by the user. Is there anything already available.?
Thank you.!
  Rakesh
5 REPLIES 5

frederikherema1
Star Contributor
Star Contributor
Take a look at Joram's Kickstart code here: https://github.com/jbarrez/Activiti-KickStart, this contains some bpmn20.xml generation, a good point to start from.

hellowrakesh123
Champ in-the-making
Champ in-the-making
Thank you and i looked through the examples. The KickstartServiceTasks only have a way to specify parallel tasks at 1st level, how do i create something like below-

frederikherema1
Star Contributor
Star Contributor
Take the JAXB-model from kickstart and adapt it so it can output bpmn2.0.xml, based on what you want. However, you're not limited to JAXB, you can use any kind of xml-library. BPMN is just XML and as you know there are tons op options for spitting out XML rom java.

hellowrakesh123
Champ in-the-making
Champ in-the-making
Thanks…i am already proceeding in this direction and planning build on top of it…wanted to check if there is something i missed and it already exists.

frederikherema1
Star Contributor
Star Contributor
Nope, you didn't miss anything. Kickstart (currently) does no more than the behavior you described.