[rules-users] Performance gain by upgrading Drools Expert from 5.1 to 5.3

2012-03-21 Thread womuji
We recently upgrade our Drools Expert from 5.1 to 5.3, expecting big performance gain. But from the tests we done so far, the result is mixed at best. Is this common or there is sth we can fine-tune the system? http://drools.46999.n3.nabble.com/file/n3846747/PerformanceResult.png All time is in

[rules-users] load precompiled rule/ruleflow file in 5.3.0

2012-03-08 Thread womuji
We are upgrading from Drools 5.1 to 5.3.0.Final, and running into issues with loading precompiled rule/ruleflow files. Previously, we precompiled our drl files using ant task "org.drools.contrib.DroolsCompilerAntTask", e.g. rule1.drl to rule1.drl.rules. We did the similar thing for ruleflow files,

Re: [rules-users] how to invoke java method with variable arguments from drl file

2012-03-08 Thread womuji
Thanks for your reply. We do use "mvel". I found out that we have to change our signature in JAVA from methodA(String...) to methodA(String[]) and call it in rule like this: bjA.methodA(new String[]{"string1"}); then it worked. -- View this message in context: http://drools.46999.n3.nabble.c

[rules-users] how to invoke java method with variable arguments from drl file

2012-03-07 Thread womuji
We are upgrading Drools from 5.1 to 5.3, and running into some issue when invoking a Java method with String variable arguments: methodA(String... params) how do we invoke this in a drl file? We used to call it in 5.1 as: objA.methodA({"string1"}); and it works fine. Now in 5.3, it complains t

Re: [rules-users] MVEL Expression causing NPE in MVEL optimizer

2012-02-22 Thread womuji
I found the issue: I have to set all the globals before inserting any facts: cmds.add(CommandFactory.newSetGlobal( "addressManager", addressManager, true)); ... cmds.add(CommandFactory.newInsert(event)); -- View this message in context: http://drools.46999.n3.nabble.com/MVEL-Expression-causin

Re: [rules-users] MVEL Expression causing NPE in MVEL optimizer

2012-02-18 Thread womuji
The NPE was caused by the call: cmds.add(CommandFactory.newSetGlobal( "addressManager", addressManager, true)); cmds.add(CommandFactory.newSetGlobal("fieldOperations", new HashMap(), true)); the addressManager is not available via this call, but if I switched all Global setting via non-command API

[rules-users] MVEL strict-mode vs. performance

2012-02-13 Thread womuji
Hi, We are upgrading from Drools 5.1 to 5.3 to improve the performance, but we are hoping to keep our drl files intact. We were trying to use the old drl files by setting "drools.dialect.mvel.strict=false", but somehow with this setting we still got " unable to resolve method using strict-mode .."

Re: [rules-users] MVEL Expression causing NPE in MVEL optimizer

2012-02-11 Thread womuji
The global (?) addressManager is initialized *before* inserting the fact. As for findFirstAddressByTypeByPerson(), the exception is thrown before it's invoked: the NPE is thrown as part of the MVEL optimizers. -- View this message in context: http://drools.46999.n3.nabble.com/MVEL-Expression-cau

[rules-users] MVEL Expression causing NPE in MVEL optimizer

2012-02-10 Thread womuji
Hi, I kept getting NPE for the following MVEL express in Drools rule: --- rule "my Rule" ruleflow-group "myGroup" no-loop true when not Field(id=="meetingNotes") $student : Student() $homeAddress : Address() from addressManage

Re: [rules-users] How to the set"drools.dialect.mvel.strict"usingDrools+Spring?

2012-02-10 Thread womuji
Hi, I need to upgrade from Drools 5.1 to 5.3, but keep the original drl files intact. So I have to disable the strict mode. I tried all the 3 solutions: 1. -Ddrools.dialect.mvel.strict=false 2. set the property in Spring 3. directly set in Java code But still getting the error: [Error: unable to

Re: [rules-users] ruleflow and bpmn files issues with drools and guvnor 5.2 final

2012-02-02 Thread womuji
Also, as part of our build process, we used org.drools.contrib.DroolsCompilerAntTask in our maven file to compiled all .rf file into a single ruleflow.flow file , which in turn was added to our RuleBase in the following fashion: DroolsObjectInputStream ruleFlowStream = new Dr

Re: [rules-users] ruleflow and bpmn files issues with drools and guvnor 5.2 final

2012-02-02 Thread womuji
We are upgrading from 5.1 to 5.3 and we had some rule flow files with .rf extension, but the new jBPM in 5.2 and after is creating bpmn files instead for process. Can we still use the old rf file? or we have to recreate them as bpmn file? Thanks. -- View this message in context: http://drools

Re: [rules-users] Difference between Rule Base and Knowledge Base

2012-02-01 Thread womuji
Mark, thanks for your answer. I just added the following dependency: org.jbpm jbpm-flow 5.2.0.Final but still getting the same error, where the "processRuntime" is null. Am I missing sth else here? -- View this message

Re: [rules-users] Difference between Rule Base and Knowledge Base

2012-02-01 Thread womuji
We are upgrading Drools Core from 5.1.1 to 5.3.1 and stilling using the old RuleBase API, but we got Null Pointer Exception when running rules: - Caused by: [Error: wm.startProcess($phase.id): null] [Near : {... WorkingMemory wm = drools.getW }] ... Caused by: java.lang.NullPoi

[rules-users] Upgrade Drools from 5.1 to 5.3

2012-01-19 Thread womuji
Hi, We have a legacy Drools application using 5.1 and we are planning to upgrade to 5.3. I have several questions: 1. Are org.drools.StatelessSession and RuleBase deprecated? and instead we should use KnowledgeBase and StatelessKnowledgeSession? 2. In 5.1.1, we extend WorkingMemoryLogger(final Wo