[jboss-jira] [JBoss JIRA] Created: (JBRULES-1611) "from" CE is not supported within "forall" CE

aldib (JIRA) jira-events at lists.jboss.org
Mon May 19 03:23:22 EDT 2008


"from" CE is not supported within "forall" CE
---------------------------------------------

                 Key: JBRULES-1611
                 URL: http://jira.jboss.com/jira/browse/JBRULES-1611
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Drl Parser/Builder
    Affects Versions: 4.0.7
            Reporter: aldib
         Assigned To: Mark Proctor


The current parser is limiting the forall() CE, not allowing nested "from" CEs. 
E.g. Given the classes:

ExpenseReport{
  Collection<ExpenseDetails> expenseDetails
}
ExpenseDetails{     \
  ExpenseReport document
  ExpenseType expenseType
} 

it is not possible to write the following rule:

rule "Do Not Process TAX"                       
 when
               $report: ExpenseReport($expenseDetails: expenseDetails)
               forall ( ExpenseDetails( expenseType == ExpenseType.TAX ) from $expenseDetails )
 then
               System.out.println("################ It works ##################");
end



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list