You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "alishaaaqil (via GitHub)" <gi...@apache.org> on 2026/10/22 14:16:59 UTC
[I] DMN: FOR expression returning a Context produces nested lists [incubator-kie-issues]
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: 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: FOR expression returning a Context produces nested lists [incubator-kie-issues]
Posted by "alishaaaqil (via GitHub)" <gi...@apache.org>.
alishaaaqil closed issue #2420: DMN: FOR expression returning a Context produces nested lists
URL: https://github.com/apache/incubator-kie-issues/issues/2420
--
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
Re: [I] DMN: FOR expression returning a Context produces nested lists [incubator-kie-issues]
Posted by "yesamer (via GitHub)" <gi...@apache.org>.
yesamer closed issue #2420: DMN: FOR expression returning a Context produces nested lists
URL: https://github.com/apache/incubator-kie-issues/issues/2420
--
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