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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2015 10:10 AM
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
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
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2015 03:57 AM
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
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2015 04:09 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2015 02:46 PM
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.
