Re: [rules-users] Problem with logging using Drools 5.3.0

2012-04-25 Thread FlyingEagle
Thx, Mark for your advice. I use my own implementation of SystemEventListener now, which uses the log4j Logger for logging. This works fine. -- View this message in context: http://drools.46999.n3.nabble.com/Problem-with-logging-using-Drools-5-3-0-tp3934918p3937481.html Sent from the Drools:

[rules-users] Need Help: Error creating bean with name 'kbase'

2012-04-25 Thread singkamas
Hi everyone. I am new to Drools and Spring MVC. I tried out the example from http://blog.athico.com/2011/01/rules-based-validation-using-drools.html http://blog.athico.com/2011/01/rules-based-validation-using-drools.html but still I am getting an error. I have beeng looking over the net for

Re: [rules-users] How to query rules to create reports to analyze usage

2012-04-25 Thread thomashatz
Thanks Wolfgang, But don't the rules tables have basic info like 'last run date and time and user' type info... Also how to setup an AgendaEventListener Really appreciate your knowledge sharing --- On Tue, 4/24/12, Wolfgang Laun wolfgang.l...@gmail.com wrote: From: Wolfgang Laun

[rules-users] Redundancy check option not working in Drools Verifier 5.4

2012-04-25 Thread worldofprasanna
Hi All, I tried to use Drools Verifier to validate the available rules. I got all the warning types like MISSING_EQUALITY, ALWAYS_FALSE. But I couldn t get the redundancy warning, eventhough i have given the duplicate rules explicitly. I am using Drools Verifier 5.4.0.Final. Herewith given the

[rules-users] Drools Guvnor - validate a rule results in Unable to Analyse Expression

2012-04-25 Thread FlyingEagle
Hi folks, I have defined some rules in Eclipse and tested with JUnit tests and everything was fine. Now I defined the rules in Guvnor and while validating I get the following error: [CardTrapping] Unable to Analyse Expression Fraud fraud = new Fraud(Fraud.CARD_TRAPPING, new SSTEvent[] { $event1,

Re: [rules-users] How to query rules to create reports to analyze usage

2012-04-25 Thread Wolfgang Laun
On 25/04/2012, thomash...@yahoo.com thomash...@yahoo.com wrote: Thanks Wolfgang, But don't the rules tables have basic info like 'last run date and time and user' type info... I'm not aware of any such information being collected and stored automatically. But if this is a Guvnor function, I

Re: [rules-users] How to query rules to create reports to analyze usage

2012-04-25 Thread Michael Anstis
The OP has not said if he uses Guvnor or not. We can only guess. Last run date is a run-time metric. Guvnor only contains design-time metrics. Therefore you'll have to devise your own mechanism using AgendaListener as Wolfgang proposes. Author (and other such metadata) is stored in Guvnor and is

[rules-users] Guvnor and Joda time

2012-04-25 Thread Sean Su
Do we support Joda time objects in Guvnor (5.3)? I did add joda time jar on the classpath (Guvnor's lib folder) and there is no class not found exception. However I get following exception when trying to access the deployment snapshot. The snapshot worked fine when I was using Date. After

Re: [rules-users] Getting Error while using Drools 5.3.0

2012-04-25 Thread mkhan_rt54fde
Hi, Thanks for the reply. In my application,one of the input parameters is Year.In my java class,I am getting the modelyear from year and converting it an integer.But even then, I am getting the error posted earlier.Here is my rule file: rule Set Time To Live when there

Re: [rules-users] Best practice for 0..1 relations

2012-04-25 Thread Christopher Dolan
Aha, that makes sense! I didn't realize you could bind a variable from two different branches of an or. Following that pattern, my strawman rule becomes this: rule household income when $p1 : Person() ((not Relation(person1 == $p1, type == spouse) and

Re: [rules-users] Best practice for 0..1 relations

2012-04-25 Thread Vincent LEGENDRE
The fact that you can bind from a constant is good to know. But if I can give my feeling, I don't think that this more readable nor more maintainable. To me, if you really want to factorize, using accumulate is better ... Mark's rule has a relatively big an complex 'then' part that justify an

Re: [rules-users] Need Help: Error creating bean with name 'kbase'

2012-04-25 Thread singkamas
I am still working on this item today I would greatly appreciate any help. Thanks. -- View this message in context: http://drools.46999.n3.nabble.com/Need-Help-Error-creating-bean-with-name-kbase-tp3937782p3940150.html Sent from the Drools: User forum mailing list archive at Nabble.com.