[rules-users] Getting Error while using Drools 5.3.0

Wolfgang Laun wolfgang.laun at gmail.com
Wed Apr 25 00:32:45 EDT 2012


The type of quoteRequest.modelyear is what?

If it's String, change it to int.

-W


On 24/04/2012, mkhan_rt54fde <maliullah at gmail.com> wrote:
>
> Hi,
>
> My application works fine with Drools v 4.0.7. However, when I run my
> application using Drools 5.3.0, I am getting the following error:
>
> org.drools.rule.InvalidRulePackage: Evaluator '>' does not support type
> 'ValueType = 'String' : [Rule name='VIN required for newer vehicles']
>
>
> 	at org.drools.rule.Package.checkValidity(Package.java:478)
> 	at
> org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:481)
> 	at org.drools.reteoo.ReteooRuleBase.addPackages(ReteooRuleBase.java:458)
> 	at org.drools.reteoo.ReteooRuleBase.addPackage(ReteooRuleBase.java:465)
>
> Here is the condition I am using in my .dsl file:
>
> [condition][]request contains no VIN and the car was built after year
> {value}=info: CarRulesInfo(quoteRequest.VIN == null, quoteRequest.modelyear
>> 1982 )
>
> Any suggestions on how to fix this problem.
>
> Thanks in advance.
>
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Getting-Error-while-using-Drools-5-3-0-tp3936714p3936714.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list