[
https://issues.jboss.org/browse/DROOLS-2569?page=com.atlassian.jira.plugi...
]
Roger Martínez commented on DROOLS-2569:
----------------------------------------
Hey [~tari_manga] [~manstis]
IIRC once you save a diagam, the locations for the magnets that are being stored are the
relative locations respect the shape. So once you load the diagram, it obtain the
relative location for the connection, and then it "detects" which is the magnet
to use that is nearest to those coordinates (location) - this job is done in the
_SetCanvasConnectionCommand_.
So the way it uses a certain magnet index it's by comparing the location (given from
the xml file, which is also in the Edge domain object) against each of the magnets of the
shape.
Does that help?
[DMN Designer] Marshalling of magnet positions
----------------------------------------------
Key: DROOLS-2569
URL:
https://issues.jboss.org/browse/DROOLS-2569
Project: Drools
Issue Type: Bug
Components: DMN Editor
Reporter: Michael Anstis
Assignee: Matteo Mortari
When attaching connectors to different magnets (other than "centre") re-opening
a DMN diagram resets connections to the "centre" magnet. IDK if this is an issue
with writing magnet positions to the XML or recreating the connections from the XML.
[~tari_manga] could you please liaise with [~roger600] to understand where the issue is?
h2. PR Acceptance test
In DMN Designer, change magnet position in:
- Source node
-- BKM, BKS, Decision, Input
- Target node
-- BKM, BKS, Decision, Annotation
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)