alishaaaqil opened a new issue, #2420:
URL: https://github.com/apache/incubator-kie-issues/issues/2420

   
   
   ### Describe the bug
   
   A DMN decision with a collection result type returns a nested list when a 
`for` expression returns a Context containing a single value per iteration.
   
   For example, the result is `[["aa"], ["bb"], ["cc"]]` instead of `["aa", 
"bb", "cc"]`. This can cause downstream filtering to return an empty list.
   
   ### Expected behavior
   
   The decision should return a flat list:
   
   ```feel
   ["aa", "bb", "cc"]
   ```
   
   ### Actual behavior
   
   The decision returns a list of singleton lists:
   
   ```feel
   [["aa"], ["bb"], ["cc"]]
   ```
   
   Downstream filtering consequently returns an empty list.
   
   ### How to reproduce
   
   Create a DMN decision with a collection result type and a `for` expression 
that returns a Context entry containing one value per iteration.
   
   For example, the intended logic is equivalent to:
   
   ```feel
   for x in ["a", "b", "c"]
   return { value: x }.value
   ```
   
   Evaluate the decision and inspect its result. The values are unexpectedly 
wrapped in individual lists rather than returned as a flat list.
   
   


-- 
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