[jboss-jira] [JBoss JIRA] (DROOLS-598) accumuate function not working when object chaining is used as accumulate condition
Mario Fusco (JIRA)
issues at jboss.org
Mon Sep 22 14:04:02 EDT 2014
[ https://issues.jboss.org/browse/DROOLS-598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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)
More information about the jboss-jira
mailing list