[rules-users] Date comparasion does not work in 3.0.6?
jack wu
jackxwu at yahoo.com
Tue Aug 28 14:59:16 EDT 2007
can any one confirm this:
i tested:
1. m : Message( date > "2007-Mar-12", message : message )
2. m : Message( date == "2007-Mar-12", message : message )
3. m : Message( date < "2007-Mar-12", message : message )
only 2 works. 1 and 3 throws:
java.lang.RuntimeException: Operator '40' does not exist for StringEvaluator
at org.drools.base.evaluators.StringFactory.getStringEvaluator(Unknown Source)
at org.drools.base.EvaluatorFactory.getEvaluator(Unknown Source)
at org.drools.base.EvaluatorFactory.getEvaluator(Unknown Source)
at org.drools.semantics.java.RuleBuilder.getEvaluator(Unknown Source)
at org.drools.semantics.java.RuleBuilder.build(Unknown Source)
at org.drools.semantics.java.RuleBuilder.build(Unknown Source)
at org.drools.semantics.java.RuleBuilder.build(Unknown Source)
at org.drools.semantics.java.RuleBuilder.build(Unknown Source)
at org.drools.compiler.PackageBuilder.addRule(Unknown Source)
at org.drools.compiler.PackageBuilder.addPackage(Unknown Source)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(Unknown Source)
at com.sample.DroolsTest.readRule(DroolsTest.java:57)
at com.sample.DroolsTest.main(DroolsTest.java:23)
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070828/4dd97eaf/attachment.html
More information about the rules-users
mailing list