[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1611) "from" CE is not supported within "forall" CE
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Thu Jan 22 22:32:17 EST 2009
[ https://jira.jboss.org/jira/browse/JBRULES-1611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Proctor updated JBRULES-1611:
----------------------------------
Fix Version/s: 5.0.0.CR1
(was: 5.0.0.M5)
> "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.CR1
>
>
> 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