Re: [drools-user] How does the duration attribute work ?

2006-12-15 Thread Michael Neale
It uses a timer - basically if the condition holds true after XXX amount of time (XXX is milliseconds) then the rule will activate. Use it for temporal rules in stateful applications, eg alarms, monitoring, escalatino etc. The trouble ticket example I believe uses it. For really long running

Re: [drools-user] Reading Rules file inside application server a problem

2006-12-15 Thread Michael Neale
Weblogic certainly does. I remember with versions of hibernate, you had to put antlr at the front of the system classpath, or else use a locally scoped classloader. Probably teh same here (with the antlr 2.x file, not the 3.x one). On 12/15/06, Edson Tirelli [EMAIL PROTECTED] wrote: Uday,

Re: [drools-user] How does the duration attribute work ?

2006-12-15 Thread Mark Proctor
Study the TroubleTicket example. Mark nicolae oana wrote: Hello, I have read the Drools 3.0.5 manual but I don't understand what effect has the use of the duration attribute. In what context should be use and for what purpose? King regards, Oana

RE: [drools-user] Reading Rules file inside application server a problem

2006-12-15 Thread Uday Kamath
Thanks Mike and Edson for the reply. I read from dev2dev and Weblogic bug tracker that Weblogic Jar has older version of antlr and only in 8.1.6 and 9.2 that they have fixed this problem. So the workaround is to put the jar in pre classpath before weblogic jar and it works. I am replying so

[drools-user] Dynamically Generated Classes as JBoss Rules Facts

2006-12-15 Thread Beto Siless
Hi Edson, I ve read your wonderful article at http://markproctor.blogspot.com/2006/12/dynamically-generated-class-beans-as.html, thats exactly what I was trying to do, so I followed the steps of the article and everything seems to be ok. But when I'm compilig the drl I get the error message:

Re: [drools-user] Dynamically Generated Classes as JBoss Rules Facts

2006-12-15 Thread Beto Siless
Other thing that may be useful is that before loading the generated class I've tried this: ClassFieldInspector cfi = new ClassFieldInspector(c); and a Class not found is thrown. I 've also tried the approach based on changing the compiler to JANINO, but I got the same errors. Beto Beto

RE: [drools-user] Dynamically Generated Classes as JBoss Rules Facts

2006-12-15 Thread Uday Kamath
Beto I ran into this in 3.0.3 and when I moved to 3.0.5 this got solved. I saw this JIRA http://jira.jboss.com/jira/browse/JBRULES-365 Uday -Original Message- From: Beto Siless [mailto:[EMAIL PROTECTED] Sent: Friday, December 15, 2006 10:56 AM To: user@drools.codehaus.org; [EMAIL