Replies: 3 comments
-
Hi @rsoika, I had a look into this issue and at first glance to me this looks like a bug in the core GLSP framework.
The GLSP Manhattan router is not doing it on the fly but the entire routing is computed on client side. This means currently the complete routing information is only available on the client side and we need to send it find a way to send it to the server as well.
That's because the tool that handles moving ( Unfortunately we cannot reuse that same logic (i.e. the ``ChangeRoutingPointsOperation I have created #738 to track this. We hopefully will be able to provide a fix soon. |
Beta Was this translation helpful? Give feedback.
-
@tortmayr thanks for your replay and the background information. Wenn you connect two elements, the default route is fine. Than you begin to move the element around in the diagram. Now the way points will stick on the diagram, even if the target anchor point is computed new depending on the current position. But what I expect from such a modelling situation is, that the route is computed completely new when I start moving. This is how for example Eclipse-BPMN2 behaves. If you want to change the layout in a large BPMN model to better explain a business situation, you typically move entire areas in the diagram. It makes no sense for the modelling to stick to the original waypoints after such an action. So I'm thinking about the possibility of completely restarting the initial routing and dissolving existing waypoints. |
Beta Was this translation helpful? Give feedback.
-
Is this topic somehow possible also related to #612 ? |
Beta Was this translation helpful? Give feedback.
-
I have a problem with the general routing in GLSP that the router is computing to less waypoints.
This is an example of a BPMN model created with Eclipse BPMN2:
This model contains an edge with 3 waypoints. The internal representation of the edge in BPMN 2.0 is:
The model is rendered correctly with GLSP (OpenBPMN):
And the model can also be rendered with other BPMN modellers like bpmn.io
This all seems to be fine so far.
But when I create a new edge with GLSP with Manhattan routing, the GLSP / Sprotty router is computing only 2 way points even if it looks like we have 4 way points:
But internally there is only the start and end point computed. It looks like the GLSP Manhattan router is doing this on the fly. The internal representation contains only 2 waypoints:
As a result if you now open the diagram with Eclipse BPMN2 we have only a simple diagonal edge:
But as soon as you begin to drag the Edge in GLSP a little bit like this:
the 4 waypoint are computed:
and of course the diagram is now displayed correctly in Eclipse BPMN or other BPMN modellers:
Why is this happening and how can I force GLSP to compute all waypoints at the beginning? I do not really understand the internal behaviour of the router and why it shows up like Manhattan routing even if there is no Manhattan routing defined.
Beta Was this translation helpful? Give feedback.
All reactions