[jboss-jira] [JBoss JIRA] (DROOLS-598) accumuate function not working when object chaining is used as accumulate condition

Davide Sottara (JIRA) issues at jboss.org
Sat Sep 13 22:21:02 EDT 2014


    [ https://issues.jboss.org/browse/DROOLS-598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002130#comment-13002130 ] 

Davide Sottara commented on DROOLS-598:
---------------------------------------

In your example, there is only one TestD with count -999. The constraint count != -999 in your rule filters it out, so there is no way for this rule to match, nor to return 0. 
If I remove the condition count != -999, the rule fires and return -999.
If I set D's count to 0 upon construction, the rule fires and returns 0.
Please reopen the ticket if you have a better reproducer for your original issue, but as far as your reproducer goes, the engine works as expected.
Best
Davide

> accumuate function not working when object chaining is used as accumulate condition
> -----------------------------------------------------------------------------------
>
>                 Key: DROOLS-598
>                 URL: https://issues.jboss.org/browse/DROOLS-598
>             Project: Drools
>          Issue Type: Bug
>    Affects Versions: 6.2.0.Beta2, 6.2.0.CR1, 6.2.0.Final
>            Reporter: John Le
>            Assignee: Mark Proctor
>         Attachments: SumOfAllIssue.java
>
>
> Please see attached code file to reproduce issue. Rule is supposed to fire and yield  0.0 as the sum but rule does not. If we remove TestA, TestB, TestC and leave only TestD as condition then rule fire.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list