<br> Mike,<br><br> Is the numeric value, the character code?<br> I mean you have 65 == 'A', or something?<br><br> I fixed today a few conversions between chars, numbers and strings... you may want to try trunk and report back your results...
<br><br> <a href="http://jira.jboss.com/jira/browse/JBRULES-261">http://jira.jboss.com/jira/browse/JBRULES-261</a><br><br> []s<br> Edson<br><br><div><span class="gmail_quote">2007/7/6, Mike D <<a href="mailto:mike.dalaker@kewill.com">
mike.dalaker@kewill.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Good morning. I'm new to Drools and need a little assistance on how to
<br>compare a string to a numeric.<br><br>Example:<br><br>ShipmentHeader transMode is a numeric, while the TransMode is a character.<br>(We have a legacy system which we can't change... for now). Is there an<br>easy way to do it w/o having to run an eval?
<br><br><br>rule "00310 Fail"<br> when<br> #conditions<br> $status : SendToCustomsStatus()<br> exists ValidationReference(validationNo == 310)<br> exists ValidationControl(validationNo == 310)
<br> exists ShipmentHeader(portLading == 0,$transMode : transMode)<br> TransMode(transMode == $transMode, portLadingRequired == "Y")<br> then<br> #actions<br> $status.fail(310);
<br>end<br><br><br>Thanks,<br>Mike<br>--<br>View this message in context: <a href="http://www.nabble.com/toString-tf4029720.html#a11446453">http://www.nabble.com/toString-tf4029720.html#a11446453</a><br>Sent from the drools - user mailing list archive at
<a href="http://Nabble.com">Nabble.com</a>.<br><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></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<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>