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>&quot;a&quot;</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>&quot;a&quot;</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: [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]

Reply via email to