[jboss-jira] [JBoss JIRA] (DROOLS-2569) [DMN Designer] Marshalling of magnet positions

Michael Anstis (JIRA) issues at jboss.org
Mon May 21 05:19:00 EDT 2018


    [ https://issues.jboss.org/browse/DROOLS-2569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13579399#comment-13579399 ] 

Michael Anstis commented on DROOLS-2569:
----------------------------------------

The generated XML is (for example, with two decisions and one connector):
{code}
<?xml version="1.0" ?>
<definitions xmlns="http://www.omg.org/spec/DMN/20151101/dmn.xsd" xmlns:di="http://www.omg.org/spec/CMMN/20151109/DI" xmlns:dmndi="java://org.kie.workbench.common.dmn.backend.definition.v1_1.dd" xmlns:dc="http://www.omg.org/spec/CMMN/20151109/DC" id="_CFD9BDF1-7926-4A33-A9EE-11647AED70C2" name="My name" expressionLanguage="http://www.omg.org/spec/FEEL/20140401" typeLanguage="http://www.omg.org/spec/FEEL/20140401" namespace="">
  <description>My description</description>
  <extensionElements>
    <dmndi:DMNDiagram>
      <dmndi:DMNShape id="dmnshape-_4F960B06-64D8-4390-AB4F-58FA6E396E72" dmnElementRef="_4F960B06-64D8-4390-AB4F-58FA6E396E72">
        <dc:Bounds x="261.0" y="203.0" width="100.0" height="50.0"></dc:Bounds>
        <dc:BgColor red="255" green="255" blue="255"></dc:BgColor>
        <dc:BorderColor red="0" green="0" blue="0"></dc:BorderColor>
        <dmndi:DMNFontStyle>
          <dc:FontColor red="0" green="0" blue="0"></dc:FontColor>
        </dmndi:DMNFontStyle>
      </dmndi:DMNShape>
      <dmndi:DMNShape id="dmnshape-_7928547F-E1EB-4B78-B092-C5D21BF6FC49" dmnElementRef="_7928547F-E1EB-4B78-B092-C5D21BF6FC49">
        <dc:Bounds x="504.0" y="196.0" width="100.0" height="50.0"></dc:Bounds>
        <dc:BgColor red="255" green="255" blue="255"></dc:BgColor>
        <dc:BorderColor red="0" green="0" blue="0"></dc:BorderColor>
        <dmndi:DMNFontStyle>
          <dc:FontColor red="0" green="0" blue="0"></dc:FontColor>
        </dmndi:DMNFontStyle>
      </dmndi:DMNShape>
    </dmndi:DMNDiagram>
  </extensionElements>
  <decision id="_4F960B06-64D8-4390-AB4F-58FA6E396E72" name="My name">
    <description>My description</description>
    <variable id="_2C1F8015-2F7D-4332-B72D-77D9C4DC0018" name="My name" typeRef="feel:string">
      <description>My description</description>
    </variable>
    <literalExpression></literalExpression>
  </decision>
  <decision id="_7928547F-E1EB-4B78-B092-C5D21BF6FC49" name="My name">
    <description>My description</description>
    <variable id="_E531B617-90BC-45CC-BC37-D63C736D4EFE" name="My name" typeRef="feel:string">
      <description>My description</description>
    </variable>
    <informationRequirement>
      <requiredDecision href="#_4F960B06-64D8-4390-AB4F-58FA6E396E72"></requiredDecision>
    </informationRequirement>
    <literalExpression></literalExpression>
  </decision>
</definitions>
{code}
This does not appear to contain any information regarding "magnets"... what form it should take IDK. 

[~roger600] how does BPMN handle magnet persistence?!

> [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?



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list