Re: [rules-users] newbie question on "when" condition syntax

2008-05-02 Thread mashup
Ahhh I wondered about that, thanks. Again, now I see it, it makes complete sense. This drools stuff is actually pretty damn good! Richard Chris Woodrow wrote: > > You're right, if you want to do this with 2 facts, you'll need to do : > > $test : Test( $y : y ) > Test( > this == $test, > x

Re: [rules-users] Newbie need help.

2008-05-02 Thread mashup
Hi Alan, Just thought I would say I suffered from the same problem and found the solution hidden in the manual somewhere. The tutorial needs updated use: WorkingMemory workingMemory = ruleBase.newStatefulSession(); and workingMemory.insert(obj); //instead of assert cheers Richard Alan

Re: [rules-users] newbie question on "when" condition syntax

2008-05-02 Thread mashup
Thanks Chris, that does work. oh man, I tried something so similar to that with the parenethisis last night using my "programming by trial and error" methodology. many thanks to everyone who replied, it's all been a great help! Richard Chris Woodrow wrote: > > Hi, > even > Test (y == (x + 1

Re: [rules-users] newbie question on "when" condition syntax

2008-05-02 Thread mashup
wow, you guys are good, nice observation Raffi I had not considered that but this is all making me comprehend how Drools works. Actually I think I need to switch my brain on! Java is so easy it doesn't tend to require much thought, now I'm having to think about this stuff it hurts :-) thanks Ric