[rules-users] Rules question

Edson Tirelli tirelli at post.com
Wed Jul 25 08:20:54 EDT 2007


    Yuri,

    Yes, but use "memberOf" instead of "in".

not Child( this memberOf p.children )

    []s
    Edson

2007/7/25, Yuri de Wit <ydewit at gmail.com>:
>
> Is it possible to do something like this with Drools 4.0?
>
> rule
>    when
>       p:Parent()
>       not Child( this in p.children )
>    then
>       ...
> end
>
> I basically dont want to keep a reference fro Child to Parent.
>
> thanks,
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070725/3e677884/attachment.html 


More information about the rules-users mailing list