Re: [rules-users] Can drools work in multithreaded environment?

2008-05-06 Thread Barath
Edson, I am using 4.0.3 version. In my code, * For each thread new rule base and StatefulSession is created. * Then why i am getting the previously mentioned exceptions(which i posted in the first message) for fewthreads only while other works fine. * Your suggestions please, " 1 .

Re: [rules-users] Property Navigation

2008-05-06 Thread Alessandro Lazarotti
Thanks Michael, I simulate.. your rule fire with successful. I discovered the problem. The object in property (like Foo in your example), when null, it's not throws NullPointerException, but "org.mvel.PropertyAccessException: unable to resolve property". With that, I never imagined that the pro

Re: [rules-users] Property Navigation

2008-05-06 Thread Michael B.
Alessandro: I wrote a test case and some classes around your example and mailed them to you, I was not able to get them to post on this list for some reason. Thanks...Michael Alessandro Lazarotti wrote: > > > > > > > > Hi, Michael... > The code that I wrote has a property "name" and n

Re: [rules-users] Property Navigation

2008-05-06 Thread Michael B.
Okay, I wrote a test case around the following and it works fine so let me know if this isnt what you are working with... Foo Class public class Foo { private String m_name; public String getName() { return m_name; } public void setName(String n

Re: [rules-users] Property Navigation

2008-05-06 Thread Alessandro Lazarotti
Hi, Michael... The code that I wrote has a property "name" and not "nome". Sorry, the example not is the same that the Exception. But ocurr the same error. org.drools.RuntimeDroolsException: Exception executing predicate [EMAIL PROTECTED] Caused by: org.mvel.CompileException: unable to resolv

Re: [rules-users] Property Navigation

2008-05-06 Thread Michael B.
According to your error it appears you had a typo somewhere. The error you pasted in was looking for the property nome instead of name. Alessandro Lazarotti wrote: > > If I've the simple classes: > > public class ObjectBar{ public String name; gets/sets} > > public class ObjectFoo{ public

[rules-users] Property Navigation

2008-05-06 Thread Alessandro Lazarotti
If I've the simple classes: public class ObjectBar{ public String name; gets/sets} public class ObjectFoo{ public ObjectBar bar; gets/sets } ... and ObjectFoo this in WorkingMemory. It's not possible navigate in objectFoo for make constraint in objectBar? Example: rule "Teste" no-loop true

Re: [rules-users] Accumulate x No-loop

2008-05-06 Thread Alessandro Lazarotti
Ok Edson, it's working fine now! Thanks Alesssandro Edson Tirelli escreveu:     Hi Alessandro, just saw your e-mail and answered to you, but basically no-loop will not work for cases like this.     Either specify your constraints in a way they prevent the loop or use lock-on-active. rule

Re: [rules-users] String range compares

2008-05-06 Thread Edson Tirelli
Steve, Only way to do that today is through in-line eval(). Although it is quite easy to add such support to drools, in case you want to help providing us a patch. Probably 3-4 hours work. Just a matter of adding the operator support in this class: http://anonsvn.labs.jboss.com/labs/jbos

[rules-users] String range compares

2008-05-06 Thread Steve Olson
We've hit a situation where the business users would like to specifiy some facts that have a range check (a 'between' type operation) on fixed length strings, that are usually short (6 characters or less). Simple example - given a range of 'ABC' to 'ABM', this range would match all the character

Re: [rules-users] Advanced Course on Drools

2008-05-06 Thread Mark Proctor
Christie, Blair wrote: I am looking around for a course on jboss rules to take. Is there any recommendations? The is the JBoss Drools training course, which is two days. But I wouldn't say it was advanced, it just teaches all the basic concepts. A good Drools person should be able to do a on

[rules-users] Advanced Course on Drools

2008-05-06 Thread Christie, Blair
I am looking around for a course on jboss rules to take. Is there any recommendations? Blair ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] never mind iterator.....

2008-05-06 Thread Christine
made a silly mistake, sorry. Christine ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] facthandle iterator

2008-05-06 Thread Christine
Hi All, I thought this: public void retractFacts() { Iterator iter = workingMemory.iterateFactHandles(); while (iter.hasNext()) { FactHandle handle = iter.next(); workingMemory.retract(handle); } } would retract all facts, but in fact I get a

[rules-users] Initiating global in rule

2008-05-06 Thread Fermion
Hi! I know that this topic has been partially covered in this: http://www.nabble.com/Initialize-Global-to13388685.html#a13388685 thread. Nevertheless I think that the geiven answers are only partially satisfying. Basically the main problem is still unsolved: One has a global variable inside th