Matteo Mortari created DROOLS-5592:
--------------------------------------
Summary: DMN align sum([]) without error (followup DROOLS-5438)
Key: DROOLS-5592
URL:
https://issues.redhat.com/browse/DROOLS-5592
Project: Drools
Issue Type: Bug
Components: dmn engine
Reporter: Matteo Mortari
Assignee: Matteo Mortari
Before [DROOLS-5438] the behaviour of sum() was not correct, since it was
{code:java}
sum([]) = 0
{code}
while DMNv1.3 specified that ought to be:
{code:java}
sum([]) = null
{code}
While [DROOLS-5438] fixed the correct result (null value) it was emitting an Error which
was never required by the spec, since it mentions:
parameter:
bq. list of 0 or more numbers (...)
result:
{quote} or null if list is empty{quote}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)