[jboss-jira] [JBoss JIRA] (DROOLS-2595) Average accumulate function should return null instead of zero when no facts are matched
Geoffrey De Smet (JIRA)
issues at jboss.org
Tue May 29 11:28:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-2595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13583733#comment-13583733 ]
Geoffrey De Smet commented on DROOLS-2595:
------------------------------------------
Example of problem:
Input: Cheese("stilton", 30), Cheese("stilton", 40)
What's the average price for stilton? 35 - OK
What's the average price for cheddar? null - OK
Add Cheese("cheddar", 50).
What's the average price for cheddar? 50 - OK
Remove Cheese("cheddar", 50).
What's the average price for cheddar? 0 - NOT OK, should be null just like originally
> Average accumulate function should return null instead of zero when no facts are matched
> ----------------------------------------------------------------------------------------
>
> Key: DROOLS-2595
> URL: https://issues.jboss.org/browse/DROOLS-2595
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Reporter: Mario Fusco
> Assignee: Mario Fusco
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list