[jboss-jira] [JBoss JIRA] (DROOLS-5280) List Filter expression returning single item and nested within arithmetic expression fails to evaluate
Matteo Mortari (Jira)
issues at jboss.org
Wed Apr 29 09:05:49 EDT 2020
[ https://issues.redhat.com/browse/DROOLS-5280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14066085#comment-14066085 ]
Matteo Mortari commented on DROOLS-5280:
----------------------------------------
Side note: the "Add" expression as originally expressed might have worked on our DMN engine in version v1.2 and priors, because the DMN specification was very vague in the scenario for which singleton list was to be automatically converted, and we made our engine very flexible to accomodate several possible cases. However, with DMN v1.3 the DMN specification clarified explicitly the context were automatic coercion of singleton list can happen, and our engine with regards to ambiguities follows the latest DMN specification releases.
> List Filter expression returning single item and nested within arithmetic expression fails to evaluate
> ------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-5280
> URL: https://issues.redhat.com/browse/DROOLS-5280
> Project: Drools
> Issue Type: Bug
> Components: dmn engine
> Affects Versions: 7.34.0.Final, 7.36.0.Final
> Reporter: Tracy Hires
> Assignee: Matteo Mortari
> Priority: Major
> Attachments: MySpace_Relation.zip, screenshot-1.png, screenshot-2.png, screenshot-3.png
>
>
> the expression `addend + listOfStructure[field1="some value"].numberField`, where `field1="some value"` filters `listOfStructure` to a single item and `addend` and `numberField` are both non-null numbers, fails to evaluate. It's possible to work around this by placing `listOfStructure[field1="some value"]` into a separate decision.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list