cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate complete Process Diagram without shapes for the sequence flows?

mforactiviti
Champ in-the-making
Champ in-the-making
Hi,

I have a bpmn file with all the process elements and correspoding "Diagram" (Di) elements except for the Di elemets for the sequenceFlows (so no BPMNEdge elements). When I open the bpmn file with Activiti Diagram editor, the sequence flows (the arrows) are displayed ok. So somehow these BPMNEdge elements are generated maybe. When I try to generate a process image from this bpmn file calling "generateDiagram" of "DefaultProcessDiagramGenerator", it doesn't generate any BPMNEdge elements, so I get a png file with all the elements (tasks, gateways…) but no sequence flows.

Could you please tell me how I can generate these BPMNEdge elemenets out of the current info in the BPMN file? Or how I can generate a diagram that displays the  "arrows" of the sequence flows? Or what function does Activiti Diagram Editor use to render the process nicely despite the fact that the BPMNEdge elems are not there for the sequence flows in the process?

Thank you!
Mirela
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Mirela,

it seems your issue can be easily reproducible in the jUnit test.
http://forums.activiti.org/content/sticky-how-write-unit-test
Could you create one?

Regards
Martin

Hi Martin,

I am not sure this is an issue. I was asking for help on how I can generate programatically an image of the process that also displays the sequence flows despite the fact that I don't have the "BPMNEdge" elements for them (but I do have the sequence flow process elements). However Activiti Diagram Editor is capable to display a process image out of this bpmn file which includes these arrows (corresp to the seq.flows). I tried to achieve the same by using generateDiagram, but I guess this function is not what Activiti uses to display (generate) the process cause clearly this one does not produce the shapes for the seq flows…

Regards,
Mirela

jbarrez
Star Contributor
Star Contributor
One option would be to remove the DI information, and let it generate the diagram, the activiti-autolayout module should kick in. You can also directly use the classes in that module.