Re: [rules-users] Building Guvnor from source

2012-05-18 Thread Michael Anstis
Personally, I have these set in Eclipse:- -XX:MaxPermSize=512m -Xms512m -Xmx2048m Lower values might work (I believe there is something about this in the droolsjbpm-build-bootstrap\README.md). With kind regards, Mike On 17 May 2012 15:23, anchi harij...@ovi.com wrote: Hi! I'm trying to

Re: [rules-users] Drools function not working with Javassist facts

2012-05-18 Thread Ayush
Thanks Laune, I tried executing it after adding msgCtClass.writeFile(); but it's still throwing the same exception. If you could please share the version of lib files you are using along with the file with the changes? -- View this message in context:

Re: [rules-users] Building Guvnor from source

2012-05-18 Thread anchi
Thanks. It works after setting this in run configuration: -Xmx1500M -XX:MaxPermSize=512m There is a note about setting VM arguments in eclipse.ini file (which is only used for launching Eclipse). But it doesn't say about setting it in run configuration. Maybe you might update it with this info.

Re: [rules-users] Drools function not working with Javassist facts

2012-05-18 Thread Wolfgang Laun
Set-up of the classpath for compile and execute: ADDON=javassist/javassist-3.16.1-GA/javassist.jar root=/extra/drools-distribution-5.3.0.Final/binaries tag=5.3.0.Final export

Re: [rules-users] Object activiates same rule many times

2012-05-18 Thread Christina Lau
In the RHS of the rule, the function calling by insert only return ChargeDetailRefSeqEntity but not ChargeDetailEntity. That's why I think it is not the area causing recursive activation of the rule. Is that right? -- View this message in context:

Re: [rules-users] Building Guvnor from source

2012-05-18 Thread Michael Anstis
Good point. done. On 18 May 2012 10:31, anchi harij...@ovi.com wrote: Thanks. It works after setting this in run configuration: -Xmx1500M -XX:MaxPermSize=512m There is a note about setting VM arguments in eclipse.ini file (which is only used for launching Eclipse). But it doesn't say about

Re: [rules-users] Object activiates same rule many times

2012-05-18 Thread Michael Anstis
Please post your complete question. I notice your original question is showing as not accepted on nabble. On 18 May 2012 10:39, Christina Lau lau.christ...@hit.com.hk wrote: In the RHS of the rule, the function calling by insert only return ChargeDetailRefSeqEntity but not ChargeDetailEntity.

[rules-users] Object activiates same rule many times

2012-05-18 Thread Christina Lau
Hi all, I find an odd pattern in the audit log. When an Object is inserted to the working memory, activation is created many times on same rule. The more objects are inserted, the duplicated activations are growing exponentially which degrade the performance a lot. Here attached part of the

Re: [rules-users] Object activiates same rule many times

2012-05-18 Thread Wolfgang Laun
Please show the rule. Exponentially growing activations can be caused by rules where the same fact type is used more than once. You'll have to use constraints inhibiting useless duplications, e.g., when $a1: A() $a2: A(this != $a1 ) then -W On 18/05/2012, Christina Lau

[rules-users] Exception on at org.drools.reteoo.LeftTuple.get(LeftTuple.java:300) drools 5.0.1

2012-05-18 Thread Joana Lopes
Hi There, I'm new to drools and i'm having a problem with a rule which has an OR: /* Rule 25_OFF */ rule 25_OFF when $p1:InferenceFactValue( param!=null, param.parameterName == sonar_8_cm, $v1:param.valueFloat = 10

Re: [rules-users] ProcessInstance from StartProcessCommand

2012-05-18 Thread Mauricio Salatino
Did you take a look at the documentation? http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-integration-docs/html_single/index.html#d0e1070 Cheers On Fri, May 18, 2012 at 12:11 AM, Hrumph herman.p...@imail.org wrote: What would one call with the outIdentifier to get a result? --

Re: [rules-users] Exception on at org.drools.reteoo.LeftTuple.get(LeftTuple.java:300) drools 5.0.1

2012-05-18 Thread Vincent LEGENDRE
When using or, only one pattern of the or expression will be bound. So, at runtime, onlty one variable $p1 or $p2 exists, and the other is null so the NPE at runtime. By the way, I can't see you are using a or here, as you test exactly the same things ... - Mail original - De: Joana

Re: [rules-users] Plugging custom verification rules into Guvnor

2012-05-18 Thread Joe Ammann
Hi Wolfgang On 05/17/2012 06:31 PM, Wolfgang Laun wrote: you might also consider adding your own rule to one of the existing verifyer DRL files. I think they are part of some .jar file, so all you'd need to do is de-jar, edit, re-jar, or just fiddle with class path if that's the way the

Re: [rules-users] Plugging custom verification rules into Guvnor

2012-05-18 Thread Michael Anstis
Pull requests are always welcome :) I'll hold my breath for as long as humanly possible. On 18 May 2012 14:07, Joe Ammann j...@pyx.ch wrote: Hi Wolfgang On 05/17/2012 06:31 PM, Wolfgang Laun wrote: you might also consider adding your own rule to one of the existing verifyer DRL files. I

[rules-users] [5.4.0] Combining custom operators with OR results in compile error

2012-05-18 Thread Stathis Rouvas
Hello List, I recently migrated from Drools.5.0.1 to Drools.5.4.0 and I am having issues when combining constraints with OR when custom operators are involved. For example, the following rule: rule r548695.1 no-loop true dialect mvel when gnId : GN() la : t547147( ) v1717 :

[rules-users] Classnotfound exception on POJO model upload in guvnor

2012-05-18 Thread mpgong
Hello, I'm trying to use Guvnor but when i upload my POJO models that my DRL needs i get a classnotfoundexception even though i uploaded the jar that has the class in it first. So i basically upload a jar that provides some common classes,utilities, that have no dependencies other than on the

Re: [rules-users] ProcessInstance from StartProcessCommand

2012-05-18 Thread Hrumph
Yes I have read it. I now see that by specifying the 'outIdentifier' I get the processInstanceId returned in the executionResults. Thanks Mauricio, Herm -- View this message in context: http://drools.46999.n3.nabble.com/ProcessInstance-from-StartProcessCommand-tp383p4001106.html Sent

Re: [rules-users] Classnotfound exception on POJO model upload in guvnor

2012-05-18 Thread Vincent LEGENDRE
I think (not sure) that an uploaded jar must be complete by itself. The only things (classes) it can reference must be in guvnor's classpath (guvnor own libs and tomcat and java, but not current package other jars). So : - try using a single jar - or put all your jars in guvnor classpath

Re: [rules-users] Classnotfound exception on POJO model upload in guvnor

2012-05-18 Thread mpgong
Thanks, that makes sense. I was suspecting that would be the case. I'll give that a go. -- View this message in context: http://drools.46999.n3.nabble.com/Classnotfound-exception-on-POJO-model-upload-in-guvnor-tp4001060p4001282.html Sent from the Drools: User forum mailing list archive at