You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "jomarko (via GitHub)" <gi...@apache.org> on 2025/06/11 11:52:19 UTC
[I] DMN Editor: Boxed Contexts result row should not be part of xml when its expression is undefined [incubator-kie-issues]
jomarko opened a new issue, #1999:
URL: https://github.com/apache/incubator-kie-issues/issues/1999
### Current behavior
- Create new DMN model
- Add single Decision node into it and define it as Context expression
- Please define only its first context entry, keep the result row undefined
The problem is the validation does not pass as it tries to validate and evaluate the undefined 'result' row. It is not correct behavior. As the Context expression without result row defined should return one Context object that collect all its Context Entries.
We can see the issue in the XML, we will see there *two Context Entries* tags.
```
<context id="_845EABB2-045F-44E4-A0F6-154FE32ED1CB" typeRef="context" label="Context Constant">
<contextEntry id="_2D5572B8-1440-4C8D-911C-B198E8E0EFD4">
<variable id="_645A6595-2FBF-427B-A5FE-9B8806E8E90B" name="ContextEntry-1" typeRef="Any" />
<literalExpression id="_237AA649-0107-4DFC-995E-682E5DD32234" typeRef="Any" label="ContextEntry-1">
<text>"a"</text>
</literalExpression>
</contextEntry>
<contextEntry id="_73D81AF3-B152-40A2-897C-46C808A4B059" />
</context>
```
### Expected behavior
- Create new DMN model
- Add single Decision node into it and define it as Context expression
- Please define only its first context entry, keep the result row undefined
Please notice the validation has no errors and evaluation has no errors
We can see the difference in the XML, we will see there *one Context Entry* tag.
```
<context id="_FCBFCC24-BFCB-4841-94BE-5438E11DE5BD" typeRef="context" label="New Decision">
<contextEntry id="_2EBD0817-3432-4862-9798-7AFF500F4635">
<variable id="_75CCD3FD-5AE5-4CE5-991A-E227AF0F69D9" name="ContextEntry-1" typeRef="Any" />
<literalExpression id="_EB7F7CAF-2936-4DA1-AC09-740CE89E3DDF" label="ContextEntry-1" typeRef="Any">
<text>"a"</text>
</literalExpression>
</contextEntry>
</context>
```
--
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: commits-unsubscribe@kie.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] DMN Editor: Boxed Contexts result row should not be part of xml when its expression is undefined [incubator-kie-issues]
Posted by "tiagobento (via GitHub)" <gi...@apache.org>.
tiagobento closed issue #1999: DMN Editor: Boxed Contexts result row should not be part of xml when its expression is undefined
URL: https://github.com/apache/incubator-kie-issues/issues/1999
--
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: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org