On a similar note, it would be good if the line numbers were displayed so I could find the error much easier. [I do not that is TONS easier than in the old 2.x days]<br><br><div><span class="gmail_quote">On 5/24/07, <b class="gmail_sendername">
Ronald R. DiFrango</b> <<a href="mailto:ron.difrango@gmail.com">ron.difrango@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Edson,<br><br>Actually, I am glad it caught it, because that was not my intent at all. I was a global search and replace issue on my part.<br><br>If you added in support for these operations, I still think a warning would be in order because that may not be what you intended,
<br><br>I am considering the move to 4.0.x series, but I have hard deadline and am being risk averse at this point.<br><br>Ron<div><span class="e" id="q_112be75bb5eb329e_1"><br><br><div><span class="gmail_quote">On 5/24/07,
<b class="gmail_sendername">Edson Tirelli</b>
<<a href="mailto:tirelli@post.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tirelli@post.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> Ronald,
<br><br> I see now. Version 3.0.x still used integer codes for operators and that is the reason the error message is saying operator '50'.<br> So, the problem is you are trying to use >= (operator 50) with a string attribute:
<br><br><pre> public static final int EQUAL = 1;<br> public static final int NOT_EQUAL = 10;<br> public static final int LESS = 20;<br> public static final int LESS_OR_EQUAL = 30;
<br><br><br> public static final int GREATER = 40;<br> public static final int GREATER_OR_EQUAL = 50;<br> public static final int CONTAINS = 60;<br> public static final int MATCHES = 70;
<br>
public static final int EXCLUDES = 80;<br></pre><br> Version 4.0 already uses type safe enums for operators, so message will be better.<br><br> Back to your problem, I guess we should add support for comparisons between strings using the java lexicographic order. We don't do it as of today.
<br><br> What you can do as a work around is to use a predicate:<br><br>MyFact( $s: strAttr -> ( $s.compareTo( $otherValue ) >= 0 ) )<br><br> May I ask you please to open a JIRA with a feature request to support comparison for string objects?
<br><br> Thank you,<br> Edson<br><br><div><span class="gmail_quote">2007/5/24, Ronald R. DiFrango <<a href="mailto:ron.difrango@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ron.difrango@gmail.com</a>>:</span><div><span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Edson,<br><br>I am using 3.0.5 of the IDE which is the latest version I could find on the update site. <br><br>I have asked when the newer version might be posted, but I never did hear an answer back.<br><br>Ron<div><span>
<br><br><div>
<span class="gmail_quote">On 5/23/07, <b class="gmail_sendername">Edson Tirelli</b> <<a href="mailto:tirelli@post.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tirelli@post.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ronald,<br><br> When you write an expression for a String attribute like:<br><br>Person( name > "Edson" )<br><br> It should raise an exception saying:<br><br>Operator '>' does not exists for StringEvaluator.
<br><br> Although, he is saying Operator '50'?!?!<br><br> What version of drools are you using?<br><br> []s<br> Edson<br><br><br><br><br><div><span class="gmail_quote">2007/5/23, Ronald R. DiFrango <<a href="mailto:ron.difrango@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ron.difrango@gmail.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;"><div><span>Anyone ever seen this error in the IDE:
<br><br>Severity and Description Path Resource Location Creation Time Id
<br>Operator '50' does not exist for StringEvaluator RtvDecisionEngine/src/rules/com/circuitcity/rtvcrms/rules
rtv.drl Unknown 1179954317638 29080<br><br>And if so what do you do about it? My rules file is just under 1000 lines [and growing] and shows no other errors.<br>
<br></span></div>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users@lists.jboss.org
</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.jboss.com</a>
</blockquote></div><br>
</span></div></blockquote></span></div></div><div><span><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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.jboss.com</a>
</span></div><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users@lists.jboss.org
</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div>
<br>
</span></div></blockquote></div><br>