[jboss-jira] [JBoss JIRA] (DROOLS-3185) [DMN Designer] Change Literal Expression to Decision Table
Michael Anstis (Jira)
issues at jboss.org
Thu Oct 25 10:18:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-3185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13652951#comment-13652951 ]
Michael Anstis commented on DROOLS-3185:
----------------------------------------
The problem is when the {{InputData}} is first created it has an {{InformationItem}} with {{typeRef}} of (for example) {{feel:string}}.
When it is saved and re-opened this becomes {{string}}. When the Decision Table is created {{string}} does not match any {{ItemDefinitions}} and no column is created.
This conversion from {{feel:string}} to {{string}} did not happen with DMN1.1.
IDK whether dropping of the prefix was a change in 1.2 or whether this is a bug in the marshaller.
The saved XML is:
{code}
<?xml version="1.0" ?>
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" id="_7DFD6D94-CC93-4B06-96FF-5C32C38C082D" name="_70792253-A6A8-4224-84E1-02971EC2AA3C" expressionLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="https://github.com/kiegroup/drools/kie-dmn/_86CE9955-1095-4A2F-89CC-8662552FE206">
<dmn:extensionElements></dmn:extensionElements>
<dmn:inputData id="_1584517F-3FAD-4212-80EE-9ABB66E98140" name="InputData-1">
<dmn:variable id="_38BEAD43-AF48-4F54-853E-4487929DB80D" name="" typeRef="string"></dmn:variable>
</dmn:inputData>
<dmndi:DMNDI xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/">
<dmndi:DMNDiagram>
<dmndi:DMNShape id="dmnshape-_1584517F-3FAD-4212-80EE-9ABB66E98140" dmnElementRef="_1584517F-3FAD-4212-80EE-9ABB66E98140" isCollapsed="false">
<dmndi:DMNStyle>
<dmndi:FillColor red="255" green="255" blue="255"></dmndi:FillColor>
<dmndi:StrokeColor red="0" green="0" blue="0"></dmndi:StrokeColor>
<dmndi:FontColor red="0" green="0" blue="0"></dmndi:FontColor>
</dmndi:DMNStyle>
<dc:Bounds xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" x="289" y="88" width="100" height="50"></dc:Bounds>
<dmndi:DMNLabel></dmndi:DMNLabel>
</dmndi:DMNShape>
</dmndi:DMNDiagram>
</dmndi:DMNDI>
</dmn:definitions>
{code}
> [DMN Designer] Change Literal Expression to Decision Table
> ----------------------------------------------------------
>
> Key: DROOLS-3185
> URL: https://issues.jboss.org/browse/DROOLS-3185
> 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 14-40-06.png
>
>
> When user changes Decision node top level expression from literal expression to decision table, that decision table misses InputClause columns.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list