[rules-users] Collections of Collections

Ken Archer archerovi at hotmail.com
Thu Oct 22 15:56:15 EDT 2009


There are certain domains where a collection of objects is itself a member of a different collection of objects (e.g. zips in counties in states, persons in cars at intersections).  In these domains, it would be helpful to create LHS conditions on the individual members of the "subcollection".  An very hypothetical example of a rule that send direct mail to wealthy zip codes in counties with dealers in states where a business is licensed.

WHEN
$ServiceableState: State (LicensedInState=True)
$CountiesWithDealers: County (DealersInCounty>0) from $ServiceableState.counties
$WealthyZips: Zip (AvgIncome>$100,000) from $CountiesWithDealers.zips  //2nd from not allowed
THEN
$WealthyZips.SendDirectMail ()

I know Collect and Accumulate support nested From keywords, but can you nest From keywords themselves to handle collections of collections?  

Ken Archer
Telogical Systems
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091022/103365db/attachment.html 


More information about the rules-users mailing list