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
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
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
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,
>
>
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
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
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
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