[jboss-jira] [JBoss JIRA] (JBRULES-3096) Variable binding in DRL files not working as expected inside from accumulate CE

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Wed Feb 1 05:25:57 EST 2012


     [ https://issues.jboss.org/browse/JBRULES-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Geoffrey De Smet updated JBRULES-3096:
--------------------------------------

    Fix Version/s: 5.4.0.Beta3
                       (was: 5.4.0.Beta2)

    
> 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: 5.4.0.Beta3
>
>         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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list