danielzhe opened a new issue, #1864:
URL: https://github.com/apache/incubator-kie-issues/issues/1864
Renaming a Decision node using the Boxed Expression Editor breaks the DMN
XML of a Decision Table "input" element from another node.
1. Open the DMN Editor
2. Create a new Decision Node with a Decision Table
3. Connect to a new Decision Node
4. Open the Boxed Expression Editor of the new Decision node and change it
to a Literal Expression
5. Rename the Decision node by clicking on the Decision node name and write
a new name
6. The Validation tab will show an error and the previous validation errors
will not be there.
7.
Error example:
`FAILED_XML_VALIDATION: Failed XML validation of DMN file: Untitled.dmn -
cvc-complex-type.2.4.a: Invalid content was found starting with element
'{"https://www.omg.org/spec/DMN/20230324/MODEL/":text}'. One of
'{"https://www.omg.org/spec/DMN/20230324/MODEL/":description,
"https://www.omg.org/spec/DMN/20230324/MODEL/":extensionElements,
"https://www.omg.org/spec/DMN/20230324/MODEL/":inputExpression}' is expected. `
**Example of broken "input" element:**
```
<input id="_5475DCC2-191F-407C-84E2-D3EA5F33F262">
<text></text>
<inputExpression id="_5475DCC2-191F-407C-84E2-D3EA5F33F261">
<text>Input-1</text>
</inputExpression>
</input>
```
**Should be:**
```
<input id="_5475DCC2-191F-407C-84E2-D3EA5F33F262">
<inputExpression id="_5475DCC2-191F-407C-84E2-D3EA5F33F261">
<text>Input-1</text>
</inputExpression>
</input>
```
NOTE: The error doesn't happen while changing the Decision node using the
Properties Panel or by changing the name on the node itself.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]