Re: [rules-users] Collect from

2009-08-19 Thread Edson Tirelli
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

Re: [rules-users] Collect from

2009-08-18 Thread Greg Barton
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

Re: [rules-users] Collect from

2009-08-18 Thread techy
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

[rules-users] Collect from

2009-08-17 Thread techy
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