[
https://issues.jboss.org/browse/DROOLS-3262?page=com.atlassian.jira.plugi...
]
Guilherme Carreiro updated DROOLS-3262:
---------------------------------------
Description:
When the user persists the following diagram:
!diagram.png|thumbnail!
..with the following Decision Table:
!dtable.png|thumbnail!
..select the "Can drink beer?" header, and set no output:
!no-outputs.png|thumbnail!
..the persisted value will be something like this:
{quote}
<dmn:output id="_E9E45B42-9506-4D66-B2AF-44B161590B43"
name="output-1" typeRef="string">
<dmn:outputValues id="_F02DC5E5-ECCE-4B3A-87A8-9CDC74A7F81A">
<dmn:text></dmn:text>
</dmn:outputValues>
<dmn:defaultOutputEntry id="_A7CFCB22-3D05-4CDB-925B-D4FD52F3D018"
typeRef="string">
<dmn:text></dmn:text>
</dmn:defaultOutputEntry>
</dmn:output>
{quote}
..and the expected behaviour is to not have the tags `dmn:outputValues` and
`dmn:defaultOutputEntry` when the value for them is empty.
was:
When the user persists the following diagram:
!diagram.png|thumbnail!
..with the following Decision Table:
!dtable.png|thumbnail!
.. select the "Can drink beer?" header, and set no output:
!no-outputs.png|thumbnail!
{quote}
<dmn:output id="_E9E45B42-9506-4D66-B2AF-44B161590B43"
name="output-1" typeRef="string">
<dmn:outputValues id="_F02DC5E5-ECCE-4B3A-87A8-9CDC74A7F81A">
<dmn:text></dmn:text>
</dmn:outputValues>
<dmn:defaultOutputEntry id="_A7CFCB22-3D05-4CDB-925B-D4FD52F3D018"
typeRef="string">
<dmn:text></dmn:text>
</dmn:defaultOutputEntry>
</dmn:output>
{quote}
..and the expected behaviour is not have the tags `dmn:outputValues` and
`dmn:defaultOutputEntry` when the value for them is empty.
[DMN Designer] The `defaultOutputValue` and the `outputValue` are
being persisted when the value is empty in the UI
-------------------------------------------------------------------------------------------------------------------
Key: DROOLS-3262
URL:
https://issues.jboss.org/browse/DROOLS-3262
Project: Drools
Issue Type: Bug
Components: DMN Editor
Reporter: Guilherme Carreiro
Assignee: Michael Anstis
Priority: Blocker
Labels: drools-tools
Attachments: diagram.png, dtable.png, no-outputs.png
When the user persists the following diagram:
!diagram.png|thumbnail!
..with the following Decision Table:
!dtable.png|thumbnail!
..select the "Can drink beer?" header, and set no output:
!no-outputs.png|thumbnail!
..the persisted value will be something like this:
{quote}
<dmn:output id="_E9E45B42-9506-4D66-B2AF-44B161590B43"
name="output-1" typeRef="string">
<dmn:outputValues id="_F02DC5E5-ECCE-4B3A-87A8-9CDC74A7F81A">
<dmn:text></dmn:text>
</dmn:outputValues>
<dmn:defaultOutputEntry id="_A7CFCB22-3D05-4CDB-925B-D4FD52F3D018"
typeRef="string">
<dmn:text></dmn:text>
</dmn:defaultOutputEntry>
</dmn:output>
{quote}
..and the expected behaviour is to not have the tags `dmn:outputValues` and
`dmn:defaultOutputEntry` when the value for them is empty.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)