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

Mauricio Salatino (JIRA) jira-events at lists.jboss.org
Wed Jun 22 11:12:23 EDT 2011


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.M1
            Reporter: Mauricio Salatino
            Assignee: Mark Proctor
             Fix For: 5.2.0
         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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list