[rules-users] foreach in drl file

can_man at gmx.de can_man at gmx.de
Mon Feb 16 18:40:11 EST 2009


Thanks for the reply Ingomar.

> I am still not quite there.
>  >, I would like a foreach which itterates through a list in my java  
> class, e.g. "Golfer", and addes the conditions in the collection to my  
> rule with "ANDs"
> So the condition is where?
> 
> What I would be looking for is a plain text description of the rule, ie.
> "find all  serial numbers of all Golfer objects that have ..."  Or  
> something like that.
> Prose is usually a fairly good starting point for transcribing into  
> rules/drl.

I will try, hopefully it is a bit clearer this time. 


friends = ['Mike', 'Tom', 'Anna'] // this is the collection I want to itterate over

time = 10



When my 'friend' is one of 'friends' and time is 10 o'clock then ring my alarm.


Hope this shows where I would like the collection to get into play.

Thank you,
Phil


-- 
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL 
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a



More information about the rules-users mailing list