<br>&nbsp;&nbsp;&nbsp;&nbsp; Oliver,<br><br>&nbsp;&nbsp;&nbsp;&nbsp; In you Bilbo pattern you wrote:<br><br>pos &gt; $Ori,<br><br>&nbsp;&nbsp;&nbsp;&nbsp; &quot;pos&quot; is an int attribute, while &quot;$Ori&quot; is bound to a Dwarf object.<br>&nbsp;&nbsp;&nbsp;&nbsp; It is not possible to convert one type into the other to make the comparison.
<br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; 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> &lt;<a href="mailto:gnumpf2006-drools@yahoo.de">gnumpf2006-drools@yahoo.de
</a>&gt;:</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 &quot;main&quot; org.drools.RuntimeDroolsException:<br> Conversion to long not supported for type: class 
org.drools.examples.BilboAndTheDwarfs$DwarfShadowProxy<br>&nbsp;&nbsp;&nbsp;&nbsp;at org.drools.spi.PatternExtractor.getLongValue(PatternExtractor.java:125)<br>&nbsp;&nbsp;&nbsp;&nbsp;at org.drools.rule.VariableRestriction$LongVariableContextEntry.updateFromTuple
(VariableRestriction.java:260)<br>&nbsp;&nbsp;&nbsp;&nbsp;at org.drools.common.DefaultBetaConstraints.updateFromTuple(DefaultBetaConstraints.java:139)<br>&nbsp;&nbsp;&nbsp;&nbsp;[...]<br><br>I put my code in a tgz file which contains the following files:<br><br>
BilboAndTheDwarfs.java&nbsp;&nbsp;&nbsp;&nbsp; --&gt; my java class (based on golfer example)<br>BilboAndTheDwarfs.drl&nbsp;&nbsp;&nbsp;&nbsp;-&gt; my rules<br> outputWithException.txt&nbsp;&nbsp;-&gt; my output on the console<br>remarks.txt -&gt; some remarks to the output
<br>riddle.txt -&gt; the riddle (automaticly translated)<br>solution.txt&nbsp;&nbsp;&nbsp;&nbsp;-&gt; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;__________________________________&nbsp;&nbsp;Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.&nbsp;&nbsp;
<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>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;JBoss Drools Core Development
<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>