Yuri,

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

not Child( this memberOf p.children )

    []s
    Edson

2007/7/25, Yuri de Wit < ydewit@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@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