[jboss-jira] [JBoss JIRA] Closed: (JBRULES-1611) "from" CE is not supported within "forall" CE
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Thu May 14 23:18:53 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-1611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Proctor closed JBRULES-1611.
---------------------------------
Fix Version/s: 5.0.0.FINAL
(was: 5.0.1.FINAL)
Resolution: Done
> "from" CE is not supported within "forall" CE
> ---------------------------------------------
>
> Key: JBRULES-1611
> URL: https://jira.jboss.org/jira/browse/JBRULES-1611
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-compiler
> Affects Versions: 4.0.7
> Reporter: aldib
> Assignee: Edson Tirelli
> Fix For: 5.0.0.FINAL
>
>
> 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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list