Remember that collect is a simplified form of accumulate. So when you
can't achieve what you want with collect, first thing you should look for is
accumulate.
$list : List() from accumulate(
$foo : Foo( ) and not Bar( id == $foo.id ),
collectList( $foo ) )
Please note that
Please someone help me on this.
techy wrote:
I would like to collect All Foo() for which there is no Bar() as given
below.Please help me on this.
Thanks.
//psedo rule
rule 'test'
list : from collect( Foo(fooId: id) and not Bar(id !=fooId))
then
//do conseq
end
--
View this
...@gmail.com wrote:
From: techy techluver...@gmail.com
Subject: Re: [rules-users] Collect from
To: rules-users@lists.jboss.org
Date: Tuesday, August 18, 2009, 12:07 PM
Please someone help me on this.
techy wrote:
I would like to collect All Foo() for which there is
no Bar() as given