-
Notifications
You must be signed in to change notification settings - Fork 148
Open
Labels
DMN supportDecision TablebacklogQueued in backlogQueued in backlogbugSomething isn't workingSomething isn't workingspring cleaningCould be cleaned up one dayCould be cleaned up one day
Description
Description
According to the DMN 1.3 specification, when a single output decision table is used, the name
and typeref
attributes should not be present in the XML representation of the DMN model. However, in dmn-js, when we remove the name and type reference from the decision table output column in the editor, the resulting XML still contains empty name
and typeref
attributes in the <output>
element.
This leads to validation issues because Drools interprets these empty attributes as still being explicitly set, which is non-compliant with the DMN 1.3 specification.
Steps to Reproduce
- Open dmn-js and create a decision table with a single output.
- Remove the name and typeref from the output column.
- Export the DMN XML and inspect the
<output>
element. - Observe that
<output name="" typeref="" />
still appears in the XML. - Run against Drools validation – it fails because the attributes are still present.
Expected Behavior
- When the name and typeref fields are removed from the editor, they should not appear in the exported XML at all.
Actual Behavior
- Even after removing these fields in the editor, they remain in the XML as empty attributes (
name="" typeref=""
), causing validation errors in Drools.
Environment
- dmn-js version: v.17.0.3
- Browser: Edge
- OS: Windows
Metadata
Metadata
Assignees
Labels
DMN supportDecision TablebacklogQueued in backlogQueued in backlogbugSomething isn't workingSomething isn't workingspring cleaningCould be cleaned up one dayCould be cleaned up one day