Re: [rules-users] expert: usage of ruleflow-groups

2010-05-06 Thread miguel machado
oh! I'm so sorry... typos in XML are impossible to detect :( Again, thank you so much for your help. I'll correct this and will use the agenda-groups the way you suggested. _ miguel On Wed, May 5, 2010 at 10:01 AM, Wolfgang Laun wolfgang.l...@gmail.comwrote: How did you specify the agenda

Re: [rules-users] Chained Rules

2010-05-06 Thread miguel machado
there is the 'extends' feature.. i guess that's what you're looking for. rule xyz ... end rule abc extends xyz... ... end it's been recently talked about in this forum. _ miguel On Tue, May 4, 2010 at 10:46 AM, djb dbrownel...@hotmail.com wrote: Hi all, I know there are some basic ways

Re: [rules-users] Need Sample Java Code

2010-05-06 Thread miguel machado
You can also write your rules in DRL which is much, much easier (especially in eclipse) and then convert it to XML, like this: public static synchronized String convertDrlToXmlRule(String drlRule) throws DroolsParserException { DrlParser parser = new DrlParser(); PackageDescr descr =

Re: [rules-users] how exists works exactly?

2010-05-06 Thread miguel machado
Olá Antonio, // retract all of it just in case for (Object fact : ksession.getFactHandles()) { ksession.retract((FactHandle) fact); } Hope this helps. _ miguel 2010/5/5 Antonio Neto antoniosouzan...@gmail.com Hi, Thank you very much for all replies. I've tried also with not (

Re: [rules-users] rule fires while condition is false

2010-05-06 Thread miguel machado
Hi there, er.. why don't you remove your eval and just evaluate in the object binding? $var = TypeOfObject( netRepaymentAmountAbilityIncludingLiabilities = 0.65) Other than that, i don't think a lotta people are still using drools4 and i have no idea why that is happening. Apparently, it makes

Re: [rules-users] Bug in not ???

2010-05-06 Thread miguel machado
This is not entirely true: you may have different objects in memory in such a way that both fires rule. In this case, if you had two (or more!) AccountHolders for the same Employment, each of those having different BusinessName's associated, both rules (with and without the 'not') would fire.

Re: [rules-users] how exists works exactly?

2010-05-06 Thread Antonio Neto
Oi Miguel, when I try this in the doMove method using the workingMemory instead of ksession I got this error Exception in thread main java.lang.UnsupportedOperationException: this is implementedby StatefulKnowledgeImpl at org.drools.reteoo.ReteooWorkingMemory.getFactHandles

Re: [rules-users] how exists works exactly?

2010-05-06 Thread miguel machado
No idea.. that piece of code works for me, using drools 5.0.1 :-/ 2010/5/6 Antonio Neto antoniosouzan...@gmail.com Oi Miguel, when I try this in the doMove method using the workingMemory instead of ksession I got this error Exception in thread main

Re: [rules-users] Smooks Data Loader uses

2010-05-06 Thread miguel machado
Other than the examples shown in the docs, i don't think i can help. I'll have to ask someone familiar with drools AND smooks. _ miguel On Wed, May 5, 2010 at 9:50 AM, JNaylies jerome.nayl...@sogeti.com wrote: no one could help me? maybe something is not clear. Please tell me what ;)

Re: [rules-users] Bug in not ???

2010-05-06 Thread Tom.E.Murphy
Actually, in the light of day, I see why it behaved as it did. It doesn't seem to be caused by the AccountHolder as such, but more the Employment object - if there are two of them, one with an accountholder and BusinessName that met the criteria, and one without, then the rule will fire whether

Re: [rules-users] rule fires while condition is false

2010-05-06 Thread Jared Davis
Could the rules be changing the values outside of a modify block? Please try this (untested) rule as a test. It binds the value on the left hand side. rule netRepaymentWithLiabilities1TEST agenda-group autoUnderwriting when ea: EnrichedApplicationVersionTO(amount :

Re: [rules-users] rule fires while condition is false

2010-05-06 Thread Shai Bentin
Thanks, I did this and saw that 'amount' was 0, although netRepayment was 1.04, after looking at it a bit further I found the problem. When I create the workspace I insert EnrichedApplicationVersion, I run some rules from a different agenda and then I cleared the agenda (however did not

Re: [rules-users] rule fires while condition is false

2010-05-06 Thread Jared Davis
Shai wrote: --snip-- I then do some more things and insert the value of NetRepayment value to the EnrichedApplication, I re insert it to the workspace and then I run the rules. It seems that drools did not re evaluate the EnrichedApplication again and thus the value of NetRepayement

Re: [rules-users] Bug in not ???

2010-05-06 Thread miguel machado
glad i could help. _ miguel 2010/5/6 tom.e.mur...@wellsfargo.com Actually, in the light of day, I see why it behaved as it did. It doesn’t seem to be caused by the AccountHolder as such, but more the Employment object – if there are two of them, one with an accountholder and BusinessName

Re: [rules-users] rule fires while condition is false

2010-05-06 Thread miguel machado
I think you need to use modify for that to happen. Otherwise, it doesn't get re-evaluated. Or maybe it did, but you're using the no-loop / lock-on-active attributes. _ miguel On Thu, May 6, 2010 at 3:51 PM, Shai Bentin s...@centimia.com wrote: It seems that drools did not re evaluate the

Re: [rules-users] drools-server - how to find cause of ERROR 500: Internal Server Error.

2010-05-06 Thread Mauricio Salatino
Hi Ron, Are you using the trunk version of the Drools Server project? can you share with us the messages that you are sending to the server? Greetings! On Thu, May 6, 2010 at 12:15 PM, ron riley r.ri...@lse.ac.uk wrote: Hi I don't get any log output when I get 500s from drools-server running

[rules-users] Frequently updated facts and truth maintenance

2010-05-06 Thread bill simms
Hello, Recently I've been using Drools (version 5.0.1) to build a small sensor monitoring application and have run into memory consumption issues that seem to be related to logically inserted facts. The way it is set up there are Sensor facts which carry numerically encoded flags that can signal

[rules-users] Does not execute = builder.addPackageFromDrl(new InputStreamReader(this.getClass().getResourceAsStream(ruleFile)))

2010-05-06 Thread mikexr
I am trying to execute a proof of concept. I have some code that runs a rule. It works in Eclipse, but for some reason doesnt in Netbeans. I want to get it working within a POJO Service Engine in Glassfish ESB and have is execute as part of a BPEL orchestration. It does not throw an

Re: [rules-users] Does not execute = builder.addPackageFromDrl(new InputStreamReader(this.getClass().getResourceAsStream(ruleFile)))

2010-05-06 Thread Mauricio Salatino
Are you using Drools 4.x for a particular reason? I suggest you to try with 5.x On Thu, May 6, 2010 at 2:56 PM, mikexr m...@bigfatnuthin.com wrote: I am trying to execute a proof of concept. I have some code that runs a rule. It works in Eclipse, but for some reason doesnt in Netbeans. I

Re: [rules-users] Does not execute = builder.addPackageFromDrl(new InputStreamReader(this.getClass().getResourceAsStream(ruleFile)))

2010-05-06 Thread mikexr
Noe using drools 5. On May 6, 2010 12:08 PM, salaboy [via Drools - Java Rules Engine] ml-node+781968-2097692314-238...@n3.nabble.comml-node%2b781968-2097692314-238...@n3.nabble.com wrote: Are you using Drools 4.x for a particular reason? I suggest you to try with 5.x On Thu, May 6, 2010 at

Re: [rules-users] Does not execute = builder.addPackageFromDrl(new InputStreamReader(this.getClass().getResourceAsStream(ruleFile)))

2010-05-06 Thread Wolfgang Laun
On Thu, May 6, 2010 at 8:56 PM, mikexr m...@bigfatnuthin.com wrote:                WorkingMemory workingMemory = ruleBase.newStatefulSession();                Object fact = new Object();                fact.equals(enrollment);                System.out.println(Inserting fact: + fact);    

Re: [rules-users] Does not execute = builder.addPackageFromDrl(new InputStreamReader(this.getClass().getResourceAsStream(ruleFile)))

2010-05-06 Thread Mauricio Salatino
You are using the old apis, take a look at the docs about the 5 version to update your code. If you are working with maven, it should work on eclipse and netbeans. I'm a netbeans user and I got all my examples running. 2010/5/6 mikexr m...@bigfatnuthin.com Noe using drools 5. On May 6, 2010

Re: [rules-users] Does not execute = builder.addPackageFromDrl(new InputStreamReader(this.getClass().getResourceAsStream(ruleFile)))

2010-05-06 Thread mikexr
http://n3.nabble.com/file/n782087/drools_api.gif no i am using the 5.0 api ( see image ) -- View this message in context:

Re: [rules-users] Does not execute = builder.addPackageFromDrl(new InputStreamReader(this.getClass().getResourceAsStream(ruleFile)))

2010-05-06 Thread mikexr
Sorry wrong code for (String ruleFile : rules) { System.out.println(Loading file: + ruleFile); builder.addPackageFromDrl(new InputStreamReader(this.getClass().getResourceAsStream(ruleFile))); } Package pkg =

[rules-users] Can't make OR Diverge Gateway (Split OR) work

2010-05-06 Thread nanic23
Hi all, I have this simple BPMN2 flow. http://n3.nabble.com/file/n782279/orflow.jpg When I use a XOR Diverge Gateway exclusiveGateway everything works fine. It also works fine for AND Diverge Gateway parallelGateway. But when I use OR Diverge Gateway complexGateway Drools complains that

Re: [rules-users] Can't make OR Diverge Gateway (Split OR) work

2010-05-06 Thread Mauricio Salatino
in the editor, go to the properties panel and select the type option. did you do that? On Thu, May 6, 2010 at 5:26 PM, nanic23 nani...@hotmail.com wrote: Hi all, I have this simple BPMN2 flow. http://n3.nabble.com/file/n782279/orflow.jpg When I use a XOR Diverge Gateway exclusiveGateway