[jboss-jira] [JBoss JIRA] Assigned: (JBRULES-1611) "from" CE is not supported within "forall" CE
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Tue May 27 10:32:50 EDT 2008
[ http://jira.jboss.com/jira/browse/JBRULES-1611?page=all ]
Edson Tirelli reassigned JBRULES-1611:
--------------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
> "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: Edson Tirelli
>
> 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