[jboss-jira] [JBoss JIRA] (DROOLS-3289) [DMN Designer] Default Output Value typeRef
Michael Anstis (Jira)
issues at jboss.org
Fri Nov 9 08:16:00 EST 2018
[ https://issues.jboss.org/browse/DROOLS-3289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13659483#comment-13659483 ]
Michael Anstis commented on DROOLS-3289:
----------------------------------------
[~jomarko] [~tirelli] With my proposed change made locally this is the XML now generated:
{code:xml}
<dmn:decision id="_B18A7B97-CE2F-4615-A6FD-384F60552309" name="Decision-1">
<dmn:variable id="_8DB1C843-AB14-4A89-B1DC-058C8BC50DAB" name="Decision-1" typeRef="string"></dmn:variable>
<dmn:decisionTable id="_1594AB7B-5CF8-4BF8-A5A9-0F663862C2D6" hitPolicy="ANY" preferredOrientation="Rule-as-Row">
<dmn:input id="_E5B5E2F2-F021-43A1-AB72-F281A32928DF">
<dmn:inputExpression id="_ABFCFA24-2EE5-4355-B21D-539A32A56FCA" typeRef="number">
<dmn:text>input-1</dmn:text>
</dmn:inputExpression>
<dmn:inputValues id="_D5F7062E-E4CF-430B-AC0F-C4E4215B956F">
<dmn:text></dmn:text>
</dmn:inputValues>
</dmn:input>
<dmn:output id="_2DC7A544-7F3E-47C8-857B-E1AB5AD4D68F" name="output-1" typeRef="string">
<dmn:outputValues id="_BFCF861D-334A-42DA-AB2E-0E87E7619337">
<dmn:text></dmn:text>
</dmn:outputValues>
<dmn:defaultOutputEntry id="_B0EB25B4-FEA6-408B-A49C-5C042A5373F2">
<dmn:text>"default"</dmn:text>
</dmn:defaultOutputEntry>
</dmn:output>
<dmn:rule id="_7403E1D5-6565-41F4-A67B-9B02EFD2BB5C">
<dmn:inputEntry id="_E673A3D6-EA46-4123-ADA2-4C86C051E6BD">
<dmn:text>1</dmn:text>
</dmn:inputEntry>
<dmn:outputEntry id="_1D35362F-8592-461F-95A1-E8D11A2E3EFF">
<dmn:text>"fred"</dmn:text>
</dmn:outputEntry>
</dmn:rule>
</dmn:decisionTable>
</dmn:decision>
{code}
Note; the {{dmn:outputValues}} has {{<dmn:text></dmn:text>}} as I did not have https://issues.jboss.org/browse/DROOLS-3262 merged locally.
I think this is now correct and hence this JIRA can be closed when https://github.com/kiegroup/kie-wb-common/pull/2256 is merged (with modifications).
> [DMN Designer] Default Output Value typeRef
> -------------------------------------------
>
> Key: DROOLS-3289
> URL: https://issues.jboss.org/browse/DROOLS-3289
> Project: Drools
> Issue Type: Bug
> Components: DMN Editor
> Reporter: Jozef Marko
> Assignee: Michael Anstis
> Priority: Major
> Labels: drools-tools
>
> If the default output value of decision table is set, its {{typeRef}} doesn't respect its parent {{typeRef}}, example below.
> {code:xml}
> <dmn:output id="_8023A5BD-71A4-4C3F-A5B9-B62D5BC34345" name="output-1" typeRef="number">
> <dmn:outputValues id="_C9AEC57C-1F1E-4115-9449-F287F010EA07">
> <dmn:text>456</dmn:text>
> </dmn:outputValues>
> <dmn:defaultOutputEntry id="_36F46818-D5F9-4F58-A758-73B853EC418B" typeRef="string">
> <dmn:text>123</dmn:text>
> </dmn:defaultOutputEntry>
> </dmn:output>
> ...
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list