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 th
t.
--- On Tue, 8/18/09, techy wrote:
> From: techy
> 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
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
>
--
Vie
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 message in context:
http://www.nabble.com/Collect-from-tp25014904