Re: [rules-users] Custom EvaluatorFactory

2008-01-03 Thread Mark Proctor
Andy Mei wrote: Hi Mark, >> what you are using there is a return value constraint, to the engine its effectively a black box, and is evaluated by the chosen dialect; mvel or java. So if you want ot be able to do that type of arithmetic, work with the MVEL author to make sure its incuded in hi

Re: [rules-users] Custom EvaluatorFactory

2008-01-03 Thread Andy Mei
Hi Mark, >> what you are using there is a return value constraint, to the engine its effectively a black box, and is evaluated by the chosen dialect; mvel or java. So if you want ot be able to do that type of arithmetic, work with the MVEL author to make sure its incuded in his engine. I think Mv

Re: [rules-users] Custom EvaluatorFactory

2007-12-20 Thread Mark Proctor
Andy Mei wrote: Hi Edson, This is exactly what I am looking for, thanks! One comment, is it possible to expand on list of operators Drools support? Better yet, make it plugable just like EvaluatorDefinition. Not yet, this is something we want, but our current approach to using antlr has limi

Re: [rules-users] Custom EvaluatorFactory

2007-12-20 Thread Andy Mei
Hi Edson, This is exactly what I am looking for, thanks! One comment, is it possible to expand on list of operators Drools support? Better yet, make it plugable just like EvaluatorDefinition. Correct me if I am wrong, but here are list of operators Drools support: http://anonsvn.labs.jboss.com/

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.