[jboss-jira] [JBoss JIRA] (DROOLS-3184) [DMN Designer] Edge source and target WayPoints are same
Michael Anstis (Jira)
issues at jboss.org
Thu Oct 25 09:51:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-3184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13652929#comment-13652929 ]
Michael Anstis commented on DROOLS-3184:
----------------------------------------
It looks like we need to do the following for the waypoints for connections.
- Get the {{ViewConnector}}
- Get the source {{Connection}} and target {{Connection}}
- If the {{Connection}} is an instanceof {{MagnetConnection}} the end-points are either:
-- Undefined i.e. {{null}} (IDK why, need to raise an issue with the Stunner people) If the connection was created from the Toolbox (i.e. add a InputData and then the Decision from it using the Decision toolbox icon). If the connection was created by clicking on connector icon in the toolbox it is non-null.. but keep reading!
-- Contains the {{Point2D}} *relative* to the parent shape (this is why the way-points in this JIRA are 50, 25 as this is the _centre_ of the shape they are connected to)
So for both source and target connections:-
- If it is {{null}} get the source/target shape's location and dimensions and set the DMNDI point to the centre of the shape's location (i.e. {{x + width/2}} etc).
- If it is non-{{null}} get the source/target shape's location and add the non-{{null}} connection {{Point2D}} to it. This is the DMNDI location.
> [DMN Designer] Edge source and target WayPoints are same
> --------------------------------------------------------
>
> Key: DROOLS-3184
> URL: https://issues.jboss.org/browse/DROOLS-3184
> Project: Drools
> Issue Type: Bug
> Components: DMN Editor
> Affects Versions: 7.14.0.Final
> Reporter: Jozef Marko
> Assignee: Michael Anstis
> Priority: Major
> Labels: drools-tools
> Attachments: Screenshot from 2018-10-25 12-12-20.png, a1.dmn, image (2).png
>
>
> The source of DMN model has same waypoint for edge source and target. If you open the attached [^a1.dmn] model, there will be:
> {code:xml}
> <dmndi:DMNEdge id="dmnedge-_594C4BE1-52D0-4009-9D4F-9960957539FB" dmnElementRef="_594C4BE1-52D0-4009-9D4F-9960957539FB">
> <di:waypoint xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" x="50" y="25"/>
> <di:waypoint xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" x="50" y="25"/>
> </dmndi:DMNEdge>
> {code}
> However in our designer the edge has different waypoints:
> !Screenshot from 2018-10-25 12-12-20.png|thumbnail!
> In the external modeling tools, the edge is rendered according to real waypoints and this the edge is not visible:
> !image (2).png|thumbnail!
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list