[rules-users] Error is Java.lang.RuntimeException

Wolfgang Laun wolfgang.laun at gmail.com
Thu Aug 25 14:53:34 EDT 2011


Heh :) Looking at the DRL, I spotted it:

> rule *"*Allocation Rules_10*"*
>       when
>                $s:Student(marks == *"*60", age == "20")
>                $c:College(ranking == "A", location == "Mumbai")
>        then

Up there, all quotes are ASCII quotes, code point U+0022.

>                $s.setDepartment(“Maths”);
>                $c.setStatus(“NA”);

But in your spreadsheet you have one of the several other quotation marks as
defined by the unicode standard, the one the authors of your spreadsheet
program deemed fit to be sneaked in when you hit shift-2 (or whatever,
depending on your keyboard).

On 25 August 2011 16:21, FrankVhh <frank.vanhoenshoven at agserv.eu> wrote:

> Shouldn't marks and age be integer values and not Strings?
>
No, these are converted automatically.

-W




>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/rules-users-no-subject-tp3280773p3283990.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110825/d8804c10/attachment.html 


More information about the rules-users mailing list