cancel
Showing results for 
Search instead for 
Did you mean: 

Layout of BPMNDiagram in activiti different to eclipse

thilka
Champ in-the-making
Champ in-the-making
Hello,

I designed a process in eclipse using the designer. Then I uploaded the file to our activiti instance and looked at the generated png file.

It seems that the layout information written to the bpmn.xml file is wrong.

The image is attached. In the editor, the image looks perfect.

If I arrange the diagram from left to right, (almost) everything is fine.

Could you tell me how to fix this behaviour? I tried to change the xml file directly, but as soon as I change something in the Activiti Designer, the changed layout information is overwritten.

Thanks,
Tobias
11 REPLIES 11

trademak
Star Contributor
Star Contributor
Hi Tobias,

The problem is that the sequence flows in the process diagram don't contain good x, y positions due to the way the Graphiti framework is designed.
When we export the BPMN DI information from the Activiti Designer we have to execute some logic to calculate the x and y positions.
For diagrams that are modeled from "left to right" this works pretty well, but obviously for "top to down" diagrams it doesn't work that well.
I'll look into this. Thanks for reporting!

Best regards,

thilka
Champ in-the-making
Champ in-the-making
Thanks for the quick reply. I will try to fix the issue by directly manipulating the bpmn.xml. But maybe you find another quick fix…

Tobias

trademak
Star Contributor
Star Contributor
Hi Tobias,

I'll make sure the diagram picture will be generated with the sequence flows in the right place.
So don't bother fixing this manually, because this will be a quick fix.

Best regards,

trademak
Star Contributor
Star Contributor
Consider it fixed 😉
It's solved in the trunk of the Activiti Designer.
Creating the plugin is explained on the wiki page –> http://docs.codehaus.org/display/ACT/Activiti+Designer+Developer+Guide

Best regards,

thilka
Champ in-the-making
Champ in-the-making
Thanks!
Is there any way to get a snapshot of the current version in trunk or do we have to do a manual build (don't have maven etc. installed yet)?

Tobias

trademak
Star Contributor
Star Contributor
Hi,

There's no continuous build, so I have to do it manually.
So if you can do it yourself that would be the preferred way.
If that's a problem, let me know and I'll create a build for you.

Best regards,

thilka
Champ in-the-making
Champ in-the-making
I just finished installing a new eclipse and maven and all the other stuff.

Seems to work. Only took me 45 minutes to setup the whole dev environment. Great documentation!

Thanks
Tobias

thilka
Champ in-the-making
Champ in-the-making
Hello,

the fix improved the situation. At least for direct flows. But as soon as there are bendpoints or diagonal lines involved, the layout gets mixed up.

Attached a small example (result.png) with the original layout from eclipse (original.png).

Tobias

trademak
Star Contributor
Star Contributor
Hi,

I've implemented another fix that should solve this.

Best regards,