[
https://issues.jboss.org/browse/DROOLS-598?page=com.atlassian.jira.plugin...
]
Mario Fusco resolved DROOLS-598.
--------------------------------
Resolution: Done
I retested your original AccumulateWithPassAndFail.java test case on master and I confirm
it works as expected. Also note that I enforced a compilaton check, so now it is mandatory
to separate the patterns and the accumulation function with a ; inside the accumulate.
For insance this means that the following drl is no longer valid
{code}
TestD( parentId == $testC.myId
,$count : count
,count != -999
)
sum($count))
{code}
but it is necessary to add a ';' after the pattern inside the accumulate as it
follows.
{code}
TestD( parentId == $testC.myId
,$count : count
,count != -999
);
sum($count))
{code}
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: Mario Fusco
Labels: backport-to-6.0.x
Fix For: 6.2.0.CR1
Attachments: AccumulateWithPassAndFail.java, 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)