[rules-users] Rule one-by-one comparison

2011-08-26 Thread miguel machado
Hi there everybody, I need to perform rule comparison on a project I'm working on using drools expert 5.0. For a specific feature implementation, I have two different knowledge bases with several rules which I need to compare, one by one. By comparing, I mean inspect certain conditions within the

Re: [rules-users] Rule one-by-one comparison

2011-08-26 Thread miguel machado
: rules-users-boun...@lists.jboss.org] *On Behalf Of *miguel machado *Sent:* 26 August 2011 13:01 *To:* Rules Users List *Subject:* Re: [rules-users] Rule one-by-one comparison ** ** Esteban, ** ** Thank you very much for that. I will look into it. Any other ideas, anyone

[rules-users] drools 5.1 overview

2010-08-05 Thread miguel machado
Hi all, I just recently noticed that drools 5.1 is out and i'd like to congratulate the jboss team for this great milestone achievement. I've also noticed that there is separate documentation for this version on http://jboss.org/drools/documentation.html but i haven't been able to find the major

Re: [rules-users] drools 5.1 overview

2010-08-05 Thread miguel machado
thanks a lot, i'll look into it! _ miguel 2010/8/5 Mark Proctor mproc...@codehaus.org On 05/08/2010 10:44, miguel machado wrote: Hi all, I just recently noticed that drools 5.1 is out and i'd like to congratulate the jboss team for this great milestone achievement. I've also noticed

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

2010-05-06 Thread miguel machado
group in the XML? There aren't much checks being done in XML handling, so it's easy to slip up. Here's how I interpret the XML schema: rule name=myrule rule-attribute name=agenda-group value=group42/ ... -W 2010/5/5 miguel machado mls.mach...@gmail.com: Hi, Yeah, i think

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 miguel machado
: this is implementedby StatefulKnowledgeImpl at org.drools.reteoo.ReteooWorkingMemory.getFactHandles (ReteooWorkingMemory.java:363) ... ... Any idea? Obrigado Antonio 2010/5/6 miguel machado mls.mach...@gmail.com Olá Antonio, // retract all of it just in case

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 miguel machado
: rules-users-boun...@lists.jboss.org] *On Behalf Of *miguel machado *Sent:* Thursday, May 06, 2010 4:19 AM *To:* Rules Users List *Subject:* Re: [rules-users] Bug in not ??? This is not entirely true: you may have different objects in memory in such a way that both fires rule. In this case

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] expert: usage of ruleflow-groups

2010-05-05 Thread miguel machado
don't have to be afraid of the focus stack growing indefinitely:You control the push (setFocus()), and if an agenda group's activations are all gone, the group is automatically popped from the stack. -W 2010/5/4 Miguel Machado mls.mach...@gmail.com: Hi there, I'm having some

Re: [rules-users] Getting an Error While Executing Rule in Drools 5.0

2010-05-05 Thread miguel machado
@puneet it may be a good ideia memory wise. I'm doing it right now, in order to compile rules just once. _ miguel 2010/5/5 Puneet duggal duggalpu...@gmail.com @ Nikhil, I am not sure weather it a good practice to seralize a package and store it , i am new to it and i am storing the drl

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

2010-05-05 Thread miguel machado
Hi, Yeah, i think this might be a bug indeed. I just tried converting to DRL using the dumper and the agenda-group item doesn't show up in the generated DRL file. It is possible that that this tag isn't being interpreted for the same reason it isn't being converted into the DRL format. Can

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

2010-05-04 Thread Miguel Machado
Hi there, I'm having some trouble implementing the desired workflow of rule firing in an application using drools expert. I've read the thread about the difference between ruleflow groups and agenda groups, but it is still unclear to me how to achieve what i need. What i intend to have is the

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

2010-05-04 Thread miguel machado
Exactly! That's precisely why i'm trying to find a workaround. I have no way to activate a specific set of rules except for stacking up activations using agenda-groups. Any other suggestions? Thank you. 2010/5/4 Mauricio Salatino sala...@gmail.com if you use the new api's (5.x

Re: [rules-users] drools expert: memory issues

2010-04-27 Thread miguel machado
2010/4/3 miguel machado mls.mach...@gmail.com hi there, So like i said, by pre-compiling the rules and loading them in the main system i was able to reduce a lot memory usage and i can get better results. However, now i've come across a different problem. I just added a fre more dozens of rules

Re: [rules-users] Failed to read schema document when trying to transform from XML to DRL

2010-04-19 Thread miguel machado
I'm having this problem as well. I can live with the System.err messages, but i could use the XSD for configuration validation. Is there a way of obtaining this file? thanks in advance, _ miguel 2010/4/13 Chang Liu c...@deltadentalmi.com Hi there, Error message: (null: 5, 77):

Re: [rules-users] Number of rules

2010-04-13 Thread miguel machado
i don't think there is a limit to the number of rules you can declare, it's just a matter of how long you're willing to wait for drools to compile it and then to interpret when firing them. _ miguel 2010/4/13 Bertrand Grottier b_grott...@hotmail.com Hello, What is the number of rules that

Re: [rules-users] Drools vs OPSJ

2010-04-09 Thread miguel machado
He means the latest of the latest version, released last week or so. Not the one you're using, apparently. 2010/4/9 Bertrand Grottier b_grott...@hotmail.com -- Date: Thu, 8 Apr 2010 08:56:35 -0700 From: greg_bar...@yahoo.com To: rules-users@lists.jboss.org

Re: [rules-users] Difference ruleflow agenda-group

2010-04-06 Thread miguel machado
Thanks a lot for clearing that up, i was about to ask the exact same question. I don't think the documentation is 100% accurate on this particular subject. _ miguel 2010/4/6 Mauricio Salatino sala...@gmail.com they both work in a different way. agenda-groups works like a stack, when you put

Re: [rules-users] setting conditional operators in Excel RuleSet

2010-04-03 Thread miguel machado
have you read the documentation? I haven't tried declaring rules through XLS but i remember reading about it in the docs so I'd say it's possible. _ miguel On Fri, Apr 2, 2010 at 10:50 AM, Deepak__A deepak.anges...@jpmchase.comwrote: t possible to have conditional operators like OR AND

Re: [rules-users] Importing Fact model in Eclipse

2010-04-03 Thread miguel machado
I've done exactly that using project references and keeping the imports on the rop of the rules. There are plenty of 'import' examples in the docs. _ miguel 2010/4/2 Shailesh Hedaoo shaileshhed...@hotmail.com i have the JAR in classpath. i also added the java domain project in the project

Re: [rules-users] drools expert: memory issues

2010-04-03 Thread miguel machado
:12 PM, miguel machado mls.mach...@gmail.comwrote: hi again, 2010/4/1 Edson Tirelli ed.tire...@gmail.com Hmm, let me complement Wolfgang's comment: After you have taken the compiled packages from the KB and checked for errors, the KB has done his duty the KB MUST go :-) I

Re: [rules-users] drools expert: memory issues

2010-04-01 Thread miguel machado
, and then using Memory Analyzer to analyse the dump. Cheers Jevon On Wed, Mar 31, 2010 at 2:44 AM, Miguel Machado mls.mach...@gmail.comwrote: hi all, I'm quite new to the drools rule engine and i've been using it for a project where i need to filter events and execute actions accordingly

Re: [rules-users] drools expert: memory issues

2010-04-01 Thread miguel machado
hi again, 2010/4/1 Edson Tirelli ed.tire...@gmail.com Hmm, let me complement Wolfgang's comment: After you have taken the compiled packages from the KB and checked for errors, the KB has done his duty the KB MUST go :-) I agree! But i don't exactly know how to do so... i mean,

Re: [rules-users] drools expert: memory issues

2010-03-31 Thread Miguel Machado
, there ought to be - and guestimates w.r,t, their relative frequencies? -W On 3/30/10, miguel machado mls.mach...@gmail.com wrote: hi again, On 30 Mar 2010, at 18:32, Edson Tirelli ed.tire...@gmail.com wrote: I am not sure I understand what you are doing when you say: Every X seconds I

Re: [rules-users] drools expert: memory issues

2010-03-31 Thread miguel machado
whether Drools would accept that instead.) But calculating the raw cost as (46 chars*2 bytes/char+20 bytes)*10 times * 700 rule triples only accounts for 0.8MB, so this alone isn't the culprit. -W 2010/3/31 Miguel Machado mls.mach...@gmail.com Hi, thanks for answering so quickly. My

Re: [rules-users] drools expert: memory issues

2010-03-31 Thread miguel machado
Hi there, First of all, thank you for your detailed and quick response. Next... 2010/3/31 Edson Tirelli ed.tire...@gmail.com Miguel, First we need to understand where is this memory spent. Drools externalizes the actual rule compilation to a java compiler (JDT or Janino) and I

Re: [rules-users] drools expert: memory issues

2010-03-30 Thread miguel machado
hi again, On 30 Mar 2010, at 18:32, Edson Tirelli ed.tire...@gmail.com wrote: I am not sure I understand what you are doing when you say: Every X seconds I collect the available facts and call fireAllRules() + dispose(), **always within the same session**. (emphasis is mine) i meant that i