Thanks. The object from the list are not in working memory though. Is it possible to
combine it with "from" keyword?
______________________________________________________________
Od: "Steve Ronderos" <steve.ronderos(a)ni.com>
Komu: Rules Users List <rules-users(a)lists.jboss.org>
Datum: 24.02.2011 16:58
Předmět: Re: [rules-users] Check all elements of a list (Drools Expert)
Check out the forall conditional element:
http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/ht...
Good luck!
Steve
rules-users-bounces(a)lists.jboss.org wrote on 02/24/2011 09:45:16 AM:
> From:
>
> "Petr Chelčický" <petr.chelcicky(a)centrum.cz>
>
> To:
>
> <rules-users(a)lists.jboss.org>
>
> Date:
>
> 02/24/2011 09:49 AM
>
> Subject:
>
> [rules-users] Check all elements of a list (Drools Expert)
>
> Sent by:
>
> rules-users-bounces(a)lists.jboss.org
>
>
> Hi! I'm trying to write rules in Drools Expert. In the when part of
> the rule, I check some properties of an Application object. This
> object contains a List and I would like to check if a bunch of rules
> apply to all objects of SomeOtherType in this list. The rule should
> fire only when the constraints are valid for ALL objects in that
> list. How could this be done?
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users