[
https://issues.jboss.org/browse/DROOLS-4020?page=com.atlassian.jira.plugi...
]
Jozef Marko updated DROOLS-4020:
--------------------------------
Steps to Reproduce:
# Create dmn model like shown in the screenshot
# Download it source
# It will miss the variable name as it does in the attached *reusable (1).dmn*
was:
# Deploy the attached project to kie-server
# Run command [^curl_command.sh]
# Compare dmn_results, for *first_match* node, *team b* will be *not null*, while for
*second_match* node, *team b* will be *null*
[DMN Designer] Literal expression variable name is missing
----------------------------------------------------------
Key: DROOLS-4020
URL:
https://issues.jboss.org/browse/DROOLS-4020
Project: Drools
Issue Type: Bug
Components: DMN Editor
Affects Versions: 7.22.0.Final
Reporter: Jozef Marko
Assignee: Michael Anstis
Priority: Blocker
Attachments: Screenshot from 2019-05-15 10-56-00.png, reusable (1).dmn,
tournament.zip
The DMN Designer generates empty variable name for literal expressions.
Current state:
{code}
<dmn:decision id="_9AF9596C-BA60-4C45-9531-F6B6FD7BC008"
name="constant">
<dmn:variable id="_782DDC9C-8B8B-4D18-9711-40634A46864C"
name="" typeRef="string"/>
<dmn:literalExpression id="_F7C245A2-9CE3-4CFE-AAD5-D6B98C502CE9">
<dmn:text>"abc"</dmn:text>
</dmn:literalExpression>
</dmn:decision>
{code}
Expected state:
{code:xml}
<dmn:decision id="_9AF9596C-BA60-4C45-9531-F6B6FD7BC008"
name="constant">
<dmn:variable id="_782DDC9C-8B8B-4D18-9711-40634A46864C"
name="constant" typeRef="string"/>
<dmn:literalExpression id="_F7C245A2-9CE3-4CFE-AAD5-D6B98C502CE9">
<dmn:text>"abc"</dmn:text>
</dmn:literalExpression>
</dmn:decision>
{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)