[jboss-jira] [JBoss JIRA] (DROOLS-2569) [DMN Designer] Marshalling of magnet positions
Roger Martínez (JIRA)
issues at jboss.org
Mon May 21 15:06:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-2569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13579841#comment-13579841 ]
Roger Martínez edited comment on DROOLS-2569 at 5/21/18 3:05 PM:
-----------------------------------------------------------------
Hey [~tari_manga] [~manstis]
IIRC once you save a diagram, 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?
was (Author: roger600):
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)
More information about the jboss-jira
mailing list