Re: [rules-users] Custom EvaluatorFactory

2007-12-19 Thread Edson Tirelli
Andy, I just added support for that in trunk (drools-4.1.0.SNAPSHOT). Although trunk is a work in progress, you are welcome to try it out and check if it meets your needs and provide feedback. Look for the interface: org.drools.base.evaluators.EvaluatorDefinition and its subclasses as exampl

[rules-users] Custom EvaluatorFactory

2007-12-19 Thread Andy Mei
Hi, Is there a way I could register my own custom EvaluatorFactory? Drools ships with DateFactory what compares only dates, but no time is included. I would like to compare time as well. I see that it would be very helpful to include capability to register custom EvaluatorFactory. Thanks.

RE: [rules-users] Help with my understanding

2007-12-19 Thread John.Dubchak
Yes, thanks for the reply. I managed to correct the issue - my test suite was picking up an older test file on my classpath. (Yep, user error) John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Robinson Sent: Wednesday, December 19, 2007 11:20

Re: [rules-users] xslt for converting rule XML from drools 2 to jboss rule 4

2007-12-19 Thread Mark Proctor
arina he wrote: I was scraping internet for one xslt when I was converting drools 2 to jboss rule 4, but couldn't find one, did you read this? http://wiki.jboss.org/wiki/Wiki.jsp?page=Drools2Migration so I rolled up sleeves and created one by myself, put up here in case anyone need it too. Ho

Re: [rules-users] Help with my understanding

2007-12-19 Thread Andrew Robinson
although it looks like you may want "not matches" instead? On Dec 19, 2007 10:19 AM, Andrew Robinson <[EMAIL PROTECTED]> wrote: > How about this: > > rule "Valid Format" > when > $status : RuleResult() > Identifier(value matches "^([0-9]{9})$") > then > $status.addErrorMessage("Identifier do

Re: [rules-users] Help with my understanding

2007-12-19 Thread Andrew Robinson
How about this: rule "Valid Format" when $status : RuleResult() Identifier(value matches "^([0-9]{9})$") then $status.addErrorMessage("Identifier does not match required format"); end http://downloads.jboss.com/drools/docs/4.0.3.15993.GA/html_single/index.html#d0e3318 On Dec 19, 2007 9:48

[rules-users] Season greetings

2007-12-19 Thread Anstis, Michael (M.)
Hi Drools Team, Just an quick email to wish you all a Merry Christmas and Happy New Year (with a "religion, if and where, permitting" caveat). I hope you don't drink too much over the festive period (again, "religion, if and where, permitting") ;-) Cheers, Mike smime.p7s Description: S/MI

[rules-users] Help with my understanding

2007-12-19 Thread John.Dubchak
Hi, We are using Jboss-rules 3.0.5 and I have written a simple rule: rule "Valid Format" when $status : RuleResult() $id : Identifier() eval ($id.getValue() != null) eval (!$id.getValue().matches("^