Hi,
I at trying to figure out the most elegant way to solve this problem.  

I have a java class X with a collection field y which contains class Z

class X
{
    ..
    List<Z> y;
}

I've defclassed X and Z and have several rules that fire based on it's other
fields.  Now I have a situation where I need to fire rules based on slots on
Z's in the y collection.

As I see it i can:

1) use a rule that fires on X definstances and loops thru the y collection
using an (if) to look for the matching value

2) use a rule that fires on X definstances then loops thru the y collection
and  definstances each Z such that it may be matched by other rules.


not sure what the better approach would be, or if there's something entirely
different that may be better.

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to