[jboss-jira] [JBoss JIRA] (JBRULES-3096) Variable binding in DRL files not working as expected inside from accumulate CE
Michael Anstis (JIRA)
jira-events at lists.jboss.org
Tue Oct 23 16:43:26 EDT 2012
[ https://issues.jboss.org/browse/JBRULES-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Anstis updated JBRULES-3096:
------------------------------------
Fix Version/s: 6.0.0.Beta1
(was: 5.5.0.CR1)
> Variable binding in DRL files not working as expected inside from accumulate CE
> -------------------------------------------------------------------------------
>
> Key: JBRULES-3096
> URL: https://issues.jboss.org/browse/JBRULES-3096
> Project: Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Affects Versions: 5.2.0.CR1, 5.3.0.Beta1
> Reporter: Mauricio Salatino
> Assignee: Mark Proctor
> Fix For: 6.0.0.Beta1
>
> Attachments: variableBindingInsideAcc.zip
>
>
> This could be a grammar problem, it was working in 5.1.1 but now in 5.2.0.CR1 and in 5.3.0.SNAP is not working anymore.
> I'm attaching a file with the following two rules (the second commented)
> rule "test"
> when
> patient : Patient()
> $count: Number() from accumulate (dog: Dog(patientId == patient.id), count(dog))
> // this gives a weird problem about not finding the class called patient (lowercase)
> then
> System.out.println("Dogs: "+ $count);
> end
> /*rule "test2"
> when
> $patient : Patient()
> $count: Number() from accumulate (dog: Dog(patientId == $patient.id), count(dog))
> // this tries to resolve the $patient.id as the dog.id, not sure why
> then
> System.out.println("Dogs: "+ $count);
> end*/
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list