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
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.
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
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
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
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
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
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("^