[rules-users] rules execution on Collection

Java Bean freejava3 at gmail.com
Tue Dec 13 16:37:54 EST 2011


Hello Droolers,

Here is my Scenario:

public class Parties {
     protected List<Party> party;
     ....
}

public class Party {
    protected IdentificationGroup idGroup;
}

public class IdentificationGroup {
   protected String partyType;
}

I have a collection of "Party" objects in the statefulsession. I want to
find in the collection whether there is a partyType of  "SELLER" .

In Object Graph notation it will be something like
Parites[0].idGroup.partyType is "SELLER". If not found execute the
consequence.

Your help is very much appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111213/9c309f0b/attachment.html 


More information about the rules-users mailing list