Re: [rules-users] Weblogic rules to Drools rules.

2010-02-01 Thread Edson Tirelli
Glad to hear things are moving forward! How do you feel about writing a quick tutorial on how to implement a custom evaluator so that others can benefit from your experience? :) We could post it on the blog and add to the manual with the proper credits. Regarding your question, "in" is a

Re: [rules-users] Weblogic rules to Drools rules.

2010-02-01 Thread kashif10
Thanks all of you! We are heading toward the solution. i) We start putting interenal data too in WM. ii) For time period matching I simply write a method in Fact class, which calls using the exact name matching fucntionality. iii) For complex code matching including exact number match, Range ma

Re: [rules-users] Weblogic rules to Drools rules.

2010-02-01 Thread Swindells, Thomas
24 To: Rules Users List Subject: Re: [rules-users] Weblogic rules to Drools rules. ... It seems to me that what you need is just to use some custom evaluators. For instance, you could implement an "inRange" evaluator that takes a range an matches when the given value is included in the

Re: [rules-users] Weblogic rules to Drools rules.

2010-01-31 Thread Edson Tirelli
Hi, Please read Wolfgang's advices. They are all good. On top of that, I think it is time to look at the problem as a whole. You have a pretty big rule set (20k rules you mentioned) and each rule, if loosely defined as in your example will have a huge number of patterns (for a rule

Re: [rules-users] Weblogic rules to Drools rules.

2010-01-30 Thread Wolfgang Laun
On Sat, Jan 30, 2010 at 6:56 PM, kashif10 wrote: > > Thanks edson for you nice advise. > It really reduce the memory uage from 400 mb 70 mb.. > > compareDiagnosis( valueName[0] in ("Heart Failure") || > (valueCode[0] in > ("402.01","402.11","402.91","402.01","402.03","402.11","402.13","402.91",

Re: [rules-users] Weblogic rules to Drools rules.

2010-01-30 Thread Corneil du Plessis
It seems as if your rules will fit nicely into a decisiontable. Sent from my HTC (Android) On Jan 30, 2010 7:58 PM, "kashif10" wrote: Thanks edson for you nice advise. It really reduce the memory uage from 400 mb 70 mb.. compareDiagnosis( valueName[0] in ("Heart Failure") || (valueCode[0]

Re: [rules-users] Weblogic rules to Drools rules.

2010-01-30 Thread kashif10
Thanks edson for you nice advise. It really reduce the memory uage from 400 mb 70 mb.. compareDiagnosis( valueName[0] in ("Heart Failure") || (valueCode[0] in ("402.01","402.11","402.91","402.01","402.03","402.11","402.13","402.91","402.93", "428.0 - 428.9") , valueCodeSystem[0] == "2.16.840

Re: [rules-users] Weblogic rules to Drools rules.

2010-01-30 Thread Wolfgang Laun
Using calls to a "property" method which is based on state (not to be confused with a fact object's state) such as a java.util.Iterator's next(), absolutely anything may happen when things are evaluated in a Rete network. I'd say that the ValueCode and ValueCodeSystem components of a CDEntryCache

Re: [rules-users] Weblogic rules to Drools rules.

2010-01-29 Thread Edson Tirelli
Hi, Ok, let me try to understand... in the following piece of code: CDEntryCache( (ValueCode.iterator.next == "277.1" && ValueCodeSystem.iterator.next == "2.16.840.1.113883.6.2") ) or CDEntryCache( (ValueCode.iterator.next == "277.2" && ValueCodeSystem.iterator.next ==

Re: [rules-users] Weblogic rules to Drools rules.

2010-01-29 Thread kashif10
Yes we have around 15-20K rules & each rule have different set of conditions ANDed/ORed. Some rules are small have 10-15 conditions but some have more than 100 conditions to be fullfilled to trigger the rule. The eval() function was taking time & never loads the single rule. So today I change my

Re: [rules-users] Weblogic rules to Drools rules.

2010-01-29 Thread Edson Tirelli
You mean there are 40-50 conditions like that in a single rule? It is not that you can't do, but how do you maintain such a thing? Sounds to me that you need to step back and re-evaluate the way you are modeling your rules. It is hard to point you to any direction based solely on the information

Re: [rules-users] Weblogic rules to Drools rules.

2010-01-27 Thread kashif10
Thanks Edson, I Went throught the documentation. I cerate a small rule & its laod & evaluate ok. But when I try to load a some bit large rule it stuks & thorws following exception: which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace: org.mvel2.asm.C

Re: [rules-users] Weblogic rules to Drools rules.

2010-01-18 Thread Edson Tirelli
Start here: http://www.jboss.org/drools/documentation.html The Drools Expert docs have examples on Chapter 8. Your questions: i) Check the docs above and the drools-api javadocs. Basically you have your rules stored wherever you want and "load" them using a KnowledgeBuilder. The Knowle

[rules-users] Weblogic rules to Drools rules.

2010-01-18 Thread kashif10
Hi, We have a product using weblogic server & weblogic rules. We are planning to move our application to jboss As using drool rules. Brief intro of our rules: Currently we have around 20K rules in our databse. We load all those rules form our database in to weblogic Rule Manger. All those rules