Re: [rules-users] Performance and Memory Utilization - StatefulKnowledgeSession

2010-02-04 Thread HonorGod
Wohi have added the dispose even after the first session and it seemed to resolve my memory issue...good catch...thanks -- View this message in context: http://n3.nabble.com/Performance-and-Memory-Utilization-StatefulKnowledgeSession-tp187463p187599.html Sent from the Drools - User mailing l

Re: [rules-users] Performance and Memory Utilization - StatefulKnowledgeSession

2010-02-04 Thread HonorGod
But the same session is being reused to apply the second set of rules and the dispose is called right before existing the method! -- View this message in context: http://n3.nabble.com/Performance-and-Memory-Utilization-StatefulKnowledgeSession-tp187463p187541.html Sent from the Drools - User mai

Re: [rules-users] Performance and Memory Utilization - StatefulKnowledgeSession

2010-02-04 Thread HonorGod
I know I am pushing.but anybody any ideas ? -- View this message in context: http://n3.nabble.com/Performance-and-Memory-Utilization-StatefulKnowledgeSession-tp187463p187515.html Sent from the Drools - User mailing list archive at Nabble.com. _

[rules-users] Performance and Memory Utilization - StatefulKnowledgeSession

2010-02-04 Thread HonorGod
I have over million rows of data that are stored in a fact model. I have to apply 2 sets of rules [coming from 2 decision tables - cannot combine them for a specific reason] on each fact model. I have created static knowledgebases and stored them in cache so that they can be used when ever new St

Re: [rules-users] Are XOR-GROUP and AGENDA-GROUP supported in DecisionTables ?

2010-02-02 Thread HonorGod
Can somebody from Drools team confirm that the patch is moved to the trunk? Thanks -- View this message in context: http://n3.nabble.com/Are-XOR-GROUP-and-AGENDA-GROUP-supported-in-Decision-Tables-tp181827p182916.html Sent from the Drools - User mailing list archive at Nabble.com. _

Re: [rules-users] Are XOR-GROUP and AGENDA-GROUP supported in Decision Tables ?

2010-02-01 Thread HonorGod
anybody ? -- View this message in context: http://n3.nabble.com/Are-XOR-GROUP-and-AGENDA-GROUP-supported-in-Decision-Tables-tp181827p182271.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@li

[rules-users] Are XOR-GROUP and AGENDA-GROUP supported in Decision Tables ?

2010-02-01 Thread HonorGod
I only see that drools pick the XOR-Group and just skips the AGENDA-GROUP when it generates the drl for the decision tables. Can somebody please verify the same and tell if AGENDA_GROUPs are supported in Decision Tables? Thanks -- View this message in context: http://n3.nabble.com/Are-XOR-GROU

Re: [rules-users] Comparing Date values in Iteration for Decision Table

2010-01-29 Thread HonorGod
You can use eval expressions. Try - eval(m1.startDate.isBefore(m1.LDOS)) or eval(m1.getStartDate().isBefore(m1.getLDOS())) -- View this message in context: http://n3.nabble.com/Comparing-Date-values-in-Iteration-for-Decision-Table-tp143474p143668.html Sent from the Drools - User mail

Re: [rules-users] Are knowledgebases configurable?

2010-01-28 Thread HonorGod
>>Esteban - Any ideas ? -- View this message in context: http://n3.nabble.com/Are-knowledgebases-configurable-tp135809p142403.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] Are knowledgebases configurable?

2010-01-25 Thread HonorGod
I wanted to have my application provide little flexibility in terms of how many decision tables to be used and when / what rules should be applied. For this purpose I defined a task flow in my application that does above steps i mentioned in sequence and where steps 3 and 4 could be repeated. He

Re: [rules-users] Better Performance and Maintainability?

2010-01-25 Thread HonorGod
The things you mentioned about hashmap are true. But the only concern in terms of flexibility - if I were to add a new column / condition in my database / drools, it will be a new release because I need to update my pojo to reflect new changes. Updating decision table / rules is not problem becaus

Re: [rules-users] Better Performance and Maintainability?

2010-01-25 Thread HonorGod
Thanks for your input. -- View this message in context: http://n3.nabble.com/Better-Performance-and-Maintainability-tp136941p138189.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jbos

Re: [rules-users] Are knowledgebases configurable?

2010-01-25 Thread HonorGod
Anybody? Any input ? Thanks -- View this message in context: http://n3.nabble.com/Are-knowledgebases-configurable-tp135809p138135.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.

Re: [rules-users] Better Performance and Maintainability?

2010-01-25 Thread HonorGod
Anybody? Any input? Thanks -- View this message in context: http://n3.nabble.com/Better-Performance-and-Maintainability-tp136941p138133.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.

[rules-users] Better Performance and Maintainability?

2010-01-24 Thread HonorGod
Hi, Can someone plz help me understand performance and maintainability in the following scenario - ? I load tons of rows of data from database and store them in an object fact model [POJO based] and apply the rules using decision tables and finally persist data. vs I load tons of rows of data

Re: [rules-users] Are knowledgebases configurable?

2010-01-24 Thread HonorGod
hey guysany ideas? -- View this message in context: http://n3.nabble.com/Are-knowledgebases-configurable-tp135809p136930.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org h

[rules-users] Are knowledgebases configurable?

2010-01-23 Thread HonorGod
Hi, I am working on a simple framework that does 4 things in sequence - 1 - Load Rules 2 - Load Data 3 - Apply Rules 4 - Persist Data The framework allows to perform steps 3 and 4 multiple times that is configurable via XML. My question - Is there a way that drools provides me so that I can spe

Re: [rules-users] Is this possible in Guvnor?

2010-01-23 Thread HonorGod
Any suggestions ? -- View this message in context: http://n3.nabble.com/Is-this-possible-in-Guvnor-tp122132p135800.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://li

Re: [rules-users] Is this possible in Guvnor?

2010-01-20 Thread HonorGod
Yes...i am able to generate knowledgebase without any errors, so i assume it will work. Between, my requirement is changed and I am checking to see if I can make my decision table more generic! Can you please let me know if this is possible? As you can see my original post my fact model is havi

Re: [rules-users] Is this possible in Guvnor?

2010-01-20 Thread HonorGod
Looks like functions on lhs can only be called from eval. I guess the below should work for me - eval(caEventDO.getPersonCode().equals(getName("$param"))) Is this correct ? -- View this message in context: http://n3.nabble.com/Is-this-possible-in-Guvnor-tp122132p132119.html Sent from the Droo

Re: [rules-users] Is this possible in Guvnor?

2010-01-20 Thread HonorGod
one more question? I can use functions on my LHS in decision tables? - function String getName(String value) { if (value!= null ) return value.split("-")[0].trim(); } return null ; } - In my decision table CONDITION caEventDO.setPersonCode(getName("$param")

Re: [rules-users] Is this possible in Guvnor?

2010-01-20 Thread HonorGod
Thank You! -- View this message in context: http://n3.nabble.com/Is-this-possible-in-Guvnor-tp122132p132046.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jbos

Re: [rules-users] Is this possible in Guvnor?

2010-01-20 Thread HonorGod
I got the pointwill you be able to attach that sample excel? Also, I am still confused on how to use AGENDA-GROUP and RULEFLOW-GROUP in decision tables. I understand that XOR-Group / Activation-Group are used so that only one rule in this named group will be fired. Can you please explain ? T

Re: [rules-users] Integrating rules with your applications +Changeset.xml

2010-01-20 Thread HonorGod
Something like this is working for me - private StatefulKnowledgeSession getSession() { LogUtil.decisionLogger.info("Getting session for Rules Engine ..."); // Set the interval on the ResourceChangeScannerService if you are to use it // and default of 60s is not d

Re: [rules-users] Is this possible in Guvnor?

2010-01-20 Thread HonorGod
Can somebody help with my issue? -- View this message in context: http://n3.nabble.com/Is-this-possible-in-Guvnor-tp122132p131797.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.

Re: [rules-users] Is this possible in Guvnor?

2010-01-19 Thread HonorGod
>> David Sinclair-2 Can you please help with my thread? -- View this message in context: http://n3.nabble.com/Is-this-possible-in-Guvnor-tp122132p130242.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list

Re: [rules-users] Is this possible in Guvnor?

2010-01-15 Thread HonorGod
west value. > > When you upload these DT into Drools BRMS you will have one binary package > for all these three DTs even though you define different packages for each > one of those DTs. Is that the case ? > > > > > > > Fro

Re: [rules-users] Is this possible in Guvnor?

2010-01-15 Thread HonorGod
If I were to use salience and XOR-Groups in decision tables and a rule is fired that has highest salience from a particular agenda group, does drool hold the updated values from the rule that is fired previously and go the next group ? [i hope this is possible with stateful session ?] -- View thi

Re: [rules-users] Is this possible in Guvnor?

2010-01-15 Thread HonorGod
In my case the outcome of firing one rule from decision table 1 is updating a4 [even if a4 is initially having some other value] then the second rule that should be fired should only consider a1, a2, a3, a4 and produce an outcome a5 [even though a5 has some other va. how i can manage them in singl

Re: [rules-users] Writing decision tables without eclipse errors

2010-01-15 Thread HonorGod
What error messages are you seeing in Eclipse? -- View this message in context: http://n3.nabble.com/Writing-decision-tables-without-eclipse-errors-tp120961p122159.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users m

Re: [rules-users] Checking multiple null values

2010-01-15 Thread HonorGod
Did you find anything yet ? -- View this message in context: http://n3.nabble.com/Checking-multiple-null-values-tp120674p122161.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.or

[rules-users] Is this possible in Guvnor?

2010-01-15 Thread HonorGod
Hi, I have a single fact model with 5 [a1, a2,a3, a4, and a5] different attributes. I have 3 decision tables in the following fashion Decision Table 1 - condition | condition | condition | Action| -

[rules-users] Guvnor Error

2010-01-14 Thread HonorGod
Hi, I have uploaded decision tables into drools guvnor and the corresponding model jar. I have the following in the decision table import section Import com.barcap.efg.fine.util.LogUtil, java.util.Date And in one of the actions I have LogUtil.caRecommendationLogger.warn("Lift Rule Fired = "+1

Re: [rules-users] Upgrade to Drools 5 - loss of performance

2010-01-11 Thread HonorGod
Hi Mark , If i were to use decision tables outside eclipse what are the list of dependency jar i need to have in classpath? ..\lib\drools-ant-5.0.1.jar ; ..\lib\drools-api-5.0.1.jar ; ..\lib\drools-bam-5.0.1.jar ;. .\lib\drools-clips-5.0.1.jar ; ..\lib\drools-compiler-5.0.1.jar ; ..\lib\drools-c

Re: [rules-users] Guvnor - Decision Tables

2010-01-11 Thread HonorGod
Finally...some magic was able to resolve the issues within guvnor by creating some skelton classes for the util methods i was using from decision tables... When I try to access the package from java...it gives me... ResourceChangeScanner created with default interval=60 [2010:01:11 13:01:904:inf

Re: [rules-users] Guvnor - Decision Tables

2010-01-11 Thread HonorGod
some one really did a good job on the class loader policy! David Sinclair-2 wrote: > > Nah, that won't work. > > On Mon, Jan 11, 2010 at 11:23 AM, HonorGod < > jagadeesh.motama...@barclayscapital.com> wrote: > >> >> If I include them in tomcat's lib

Re: [rules-users] Guvnor - Decision Tables

2010-01-11 Thread HonorGod
If I include them in tomcat's lib or guvnor's lib directory will it recognize them, instead of upload the jars to model jar section ? Thanks -- View this message in context: http://n3.nabble.com/Guvnor-Decision-Tables-tp116258p116974.html Sent from the Drools - User mailing list archive at Nabb

Re: [rules-users] Guvnor - Decision Tables

2010-01-11 Thread HonorGod
sounds betteri have finally uploaded all the jars and now trying to save and validate configuration at which point I am seeing the following error / exception - DEBUG 11-01 10:58:46,370 (PackageItem.java:queryAssets:439) QueryExec time is: 47 DEBUG 11-01 10:58:46,370 (PackageItem.java:qu

Re: [rules-users] Guvnor - Decision Tables

2010-01-11 Thread HonorGod
> http:// server>/drools-guvnor/org.drools.guvnor.Guvnor/packages// > > On Mon, Jan 11, 2010 at 9:56 AM, HonorGod < > jagadeesh.motama...@barclayscapital.com> wrote: > >> >> Sure...I read this part already and my question is after I uploaded the >> dec

Re: [rules-users] Guvnor - Decision Tables

2010-01-11 Thread HonorGod
y this > section on integration of rules from Guvnor with your application > > http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-guvnor/html_single/index.html#d0e1053 > > On Mon, Jan 11, 2010 at 9:45 AM, HonorGod < > jagadeesh.motama...@barclayscapital.com> wrote:

Re: [rules-users] Guvnor - Decision Tables

2010-01-11 Thread HonorGod
or ? HonorGod wrote: > > Hi, > > Is there a specific tutorial that guides step by step on how to use drools > guvnor to upload decision tables and use them in java code. > > - packages [why they are required] > - what is deployment snapshot...is it something th

[rules-users] Guvnor - Decision Tables

2010-01-10 Thread HonorGod
Hi, Is there a specific tutorial that guides step by step on how to use drools guvnor to upload decision tables and use them in java code. - packages [why they are required] - what is deployment snapshot...is it something that is necessary? - any tutorials etc. Please let know. Thank You! --

[rules-users] [ERR 102] Line 593:54 mismatched input '-'

2010-01-10 Thread HonorGod
How do I resolve this issue in Guvnor. I have imported my model jar and it seems to have some generated class file package-info.class and drools is complaining about the presence of the hyphen [which in legal] but how do i resolve this issue. Thanks. -- View this message in context: http://n3.

Re: [rules-users] Using groovy classes as Fact Classes in Guvnor

2010-01-10 Thread HonorGod
This seems to be a legitimate issue have you found a solution yet ? Thanks leesy84 wrote: > > Hi > > I am currently trying to implement Drools 5.0.CR1 with grails, I have > created a couple of domain classes which are simple Groovy classes with a > couple of fields. I want to load these cl

[rules-users] KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage

2010-01-09 Thread HonorGod
I am getting the following error while accessing decision tables that were uploaded in Guvnor - java.lang.RuntimeException: KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage at org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.ja

Re: [rules-users] Problem using BRMS and Knowledge Agent

2010-01-08 Thread HonorGod
Is this issue resolved for you yet? Thank You! hockey_dave wrote: > > Changing the changeset xml doesn't work for me. I'm using 5.1.0.M1 and I > now get this error. > > [#|2009-10-26T08:54:44.070-0400|INFO|sun-appserver2.1|javax.enterprise.system.st > ream.out|_ThreadID=22;_ThreadName=RTSel

[rules-users] Using Decision Tables with Guvnor

2010-01-08 Thread HonorGod
Hi, I have uploaded decision tables into Guvnor which stores into MYSQL database. Now how do I access them from java code? Can someone point me with some resources / sample source code. Thanks. -- View this message in context: http://n3.nabble.com/Using-Decision-Tables-with-Guvnor-tp114518p1

[rules-users] eval in lhs

2010-01-07 Thread HonorGod
Can i have the following as one of my conditions in decision table ? eval(convertYesOrNo("$param").equals(myObject.getFlag())) where convertYesOrNo() is a function inside decision table. I get the following error - Exception e org.drools.RuntimeDroolsException: Exception executing predicate

[rules-users] Drools + JackRabbit + DB2 - Configuration issue

2010-01-05 Thread HonorGod
Hi, I am trying to hook JackRabbit with DB2, I am getting the following error. repository.xml is attached http://n3.nabble.com/file/n110104/repository.xml repository.xml plz help! ERROR 05-01 13:02:19,504 (DatabaseFileSystem.java:init:195) failed to initialize file system com.ibm.db2.jcc

Re: [rules-users] Accessing instance variables of the fact inside functions in decision tables

2010-01-05 Thread HonorGod
> have > in rules. Generating a function/class to include all bind variables would > be > possible, but probably not make a lot of sense. > > On Mon, Jan 4, 2010 at 1:54 PM, HonorGod < > jagadeesh.motama...@barclayscapital.com> wrote: > >> >> I have de

Re: [rules-users] import static class?

2010-01-05 Thread HonorGod
_NAME in my rules. > > > > - Original Message > From: HonorGod > To: rules-users@lists.jboss.org > Sent: Tue, December 22, 2009 8:55:54 PM > Subject: Re: [rules-users] import static class? > > > You can definitely use your static constants in decision table or in drl &

[rules-users] Accessing instance variables of the fact inside functions in decision tables

2010-01-04 Thread HonorGod
I have defined functions in my decision table. I wanted to access my instance variables inside functions without actually passing them as parameters. Is this possible? -- View this message in context: http://n3.nabble.com/Accessing-instance-variables-of-the-fact-inside-functions-in-decision-tabl

[rules-users] firing rules multiple times

2009-12-24 Thread HonorGod
I need to load 2 rule files in the session once and fire them over 1000 times without reloading the rules every time. But the objects inserted into the session are different all the 1000 times. I am newbie and just looking for quick implements for a POC. -- View this message in context: http:/

Re: [rules-users] import static class?

2009-12-22 Thread HonorGod
You can definitely use your static constants in decision table or in drl files. Jane James wrote: > > Can we do a import static MyClass in drools? I have a class only contains > some constants that to be referenced in my rules, but I can't import > static the class. I am wondering if this is s

Re: [rules-users] verifying 'is not null' in decision table?

2009-12-22 Thread HonorGod
irst rule would be fired, otherwise if date3 is > set then row 2 would be fired etc. > > If there are more permuations that you want to consider you can easily > insert them too. > > > > Hope that helps, > > > > Thomas > > > >> -Orig

Re: [rules-users] verifying 'is not null' in decision table?

2009-12-22 Thread HonorGod
rules-users-boun...@lists.jboss.org [mailto:rules-users- >> boun...@lists.jboss.org] On Behalf Of HonorGod >> Sent: 21 December 2009 15:52 >> To: rules-users@lists.jboss.org >> Subject: [rules-users] verifying 'is not null' in decision table? >> >> >> How c

[rules-users] verifying 'is not null' in decision table?

2009-12-21 Thread HonorGod
How can I verify if my condition attribute is not null in decision table? I have a class - Public Class Person { String firstName = null; String lastName = null ; } In my decision table I have to check if firstName and lastName are not null and then fire actions. How I can do this? I know I