[rules-users] Camel Endpoint usage strategy

2011-11-21 Thread esstrata
Hi, we're refactoring a standalone application (Spring 3.0.5, Drool 5.1.1) to use Apache Camel 2.8.0. As seen in other post, there is very little information available about ( http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-integration/html/index.html Drools Endpoint or Camel i

[rules-users] match longest matching Long in WM

2011-07-21 Thread esstrata
Hi, I hope you can help me out here with a way to implement this rule: 1) I have String WM 2) I have beans in WM with a property called 'code' public class MyBean { private String code; ... 3) I want a rule of the type "Process MyBean with the longest-matching, not-null code" Let explain

Re: [rules-users] check whether a key is present in global Map, i.e. mimicking containsKey() behavior

2011-07-05 Thread esstrata
Hi, I checked and I was correctly using session.setGlobal. No idea why this happens Thank you -- View this message in context: http://drools.46999.n3.nabble.com/check-whether-a-key-is-present-in-global-Map-i-e-mimicking-containsKey-behavior-tp3137610p3140225.html Sent from the Drools: User fo

Re: [rules-users] check whether a key is present in global Map, i.e. mimicking containsKey() behavior

2011-07-05 Thread esstrata
global is not set, you may receive a NullPointerException./ I did so and I no longer get the compilation error. However, 'eval' construction is not working in LHS. I'm shifting to insert items from maps into WM directly. Cheers esstrata wrote: > > Hello, > >

Re: [rules-users] check whether a key is present in global Map, i.e. mimicking containsKey() behavior

2011-07-04 Thread esstrata
Yes, I used eval. In fact this is the error I'm getting org.drools.RuntimeDroolsException: productMap.containsKey($pid) == false : [Error: unable to access property (null parent): containsKey] [Near : {... Unknown }] And this is the line eval(productMap.containsKey($pid) == false) -- View t

[rules-users] check whether a key is present in global Map, i.e. mimicking containsKey() behavior

2011-07-04 Thread esstrata
Hello, I'm using Drools 5.1.1 in a JavaSE 6 project. I can't get running a rule where a value obtained from WM is check for existence as a key of a global Map. I have a map of the type ProductTextCode -> Product, where keys are String and values Product /global Map productMap/ Then in a rule

Re: [rules-users] Accessing List with mvel in condition

2011-06-27 Thread esstrata
It worked. Thank you very much Wolfgang -- View this message in context: http://drools.46999.n3.nabble.com/Accessing-List-String-with-mvel-in-condition-tp3113685p3114406.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rul

[rules-users] Accessing List with mvel in condition

2011-06-27 Thread esstrata
Hi, I've tried several options but none working so I welcome any help. * I'm using Drools 5.1.1. * I succesfully insert several List into Working Memory and I'm able to printout them with a debug rule. * The problem is, when I try to access a position in a list I get no match even though I hav