<br> Oliver,<br><br> In you Bilbo pattern you wrote:<br><br>pos > $Ori,<br><br> "pos" is an int attribute, while "$Ori" is bound to a Dwarf object.<br> It is not possible to convert one type into the other to make the comparison.
<br><br> []s<br> Edson<br><br><br><br><div><span class="gmail_quote">2008/1/18, <a href="mailto:gnumpf2006-drools@yahoo.de">gnumpf2006-drools@yahoo.de</a> <<a href="mailto:gnumpf2006-drools@yahoo.de">gnumpf2006-drools@yahoo.de
</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Mailinglist,<br><br>as discussed with tirelli in irc chat yesterday, I am sending my code:
<br><br>I modified the golfer example with an other riddle. I wrote all given rules and when I run the code I get an<br><br>Exception in thread "main" org.drools.RuntimeDroolsException:<br> Conversion to long not supported for type: class
org.drools.examples.BilboAndTheDwarfs$DwarfShadowProxy<br> at org.drools.spi.PatternExtractor.getLongValue(PatternExtractor.java:125)<br> at org.drools.rule.VariableRestriction$LongVariableContextEntry.updateFromTuple
(VariableRestriction.java:260)<br> at org.drools.common.DefaultBetaConstraints.updateFromTuple(DefaultBetaConstraints.java:139)<br> [...]<br><br>I put my code in a tgz file which contains the following files:<br><br>
BilboAndTheDwarfs.java --> my java class (based on golfer example)<br>BilboAndTheDwarfs.drl -> my rules<br> outputWithException.txt -> my output on the console<br>remarks.txt -> some remarks to the output
<br>riddle.txt -> the riddle (automaticly translated)<br>solution.txt -> the solution of the riddle<br><br>I hope you can help me. Thank you in advance<br><br>Oliver (aka Hightower, gnumpf2006)<br><br><br><br> __________________________________ Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.
<a href="http://www.yahoo.de/clever">www.yahoo.de/clever</a><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development
<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>