[
https://issues.jboss.org/browse/DROOLS-1558?page=com.atlassian.jira.plugi...
]
Matteo Mortari updated DROOLS-1558:
-----------------------------------
Description:
In the attached model decision "Positions of Los Angeles teams" is wrong:
{code:java}
index of(NBA Pacific[city="Los Angeles"])
{code}
As the "index of" function expects 2 parameters.
It could be rewritten as:
{code:java}
index of(NBA Pacific.city, "Los Angeles")
{code}
which would work, but there is an expectations it should also work with:
{code:java}
index of( NBA Pacific, NBA Pacific[city="Los Angeles"])
{code}
under the assumption there is only 1 team located in LA.
was:
The attached model is not completely working. This is likely to the fact that the filter
selection operator is not working. E.g.:
{code}
max( NBA Pacific.wins )
{code}
Should return the team with the most wins in the {{NBA Pacific}} list of teams.
DMN case where list of single element shall be considered a singleton
value
---------------------------------------------------------------------------
Key: DROOLS-1558
URL:
https://issues.jboss.org/browse/DROOLS-1558
Project: Drools
Issue Type: Bug
Components: dmn engine
Affects Versions: 7.0.0.CR3
Reporter: Matteo Mortari
Assignee: Matteo Mortari
Fix For: 7.1.0.Final
Attachments: Ex_6_1.dmn
In the attached model decision "Positions of Los Angeles teams" is wrong:
{code:java}
index of(NBA Pacific[city="Los Angeles"])
{code}
As the "index of" function expects 2 parameters.
It could be rewritten as:
{code:java}
index of(NBA Pacific.city, "Los Angeles")
{code}
which would work, but there is an expectations it should also work with:
{code:java}
index of( NBA Pacific, NBA Pacific[city="Los Angeles"])
{code}
under the assumption there is only 1 team located in LA.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)