On a similar note, it would be good if the line numbers were displayed so I could find the error much easier.&nbsp; [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> &lt;<a href="mailto:ron.difrango@gmail.com">ron.difrango@gmail.com</a>&gt; 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.&nbsp; 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>
 &lt;<a href="mailto:tirelli@post.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tirelli@post.com</a>&gt; 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>&nbsp;&nbsp;&nbsp; Ronald,
<br><br>&nbsp;&nbsp;&nbsp; I see now. Version 3.0.x still used integer codes for operators and that is the reason the error message is saying operator &#39;50&#39;.<br>&nbsp;&nbsp;&nbsp; So, the problem is you are trying to use &gt;= (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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Version 4.0 already uses type safe enums for operators, so message will be better.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Back to your problem, I guess we should add support for comparisons between strings using the java lexicographic order. We don&#39;t do it as of today.
<br><br>&nbsp; &nbsp; &nbsp; What you can do as a work around is to use a predicate:<br><br>MyFact(  $s: strAttr -&gt; ( $s.compareTo( $otherValue ) &gt;= 0 ) )<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; May I ask you please to open a JIRA with a feature request to support comparison for string objects?
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thank you,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/5/24, Ronald R. DiFrango &lt;<a href="mailto:ron.difrango@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

ron.difrango@gmail.com</a>&gt;:</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> &lt;<a href="mailto:tirelli@post.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tirelli@post.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&nbsp;&nbsp; Ronald,<br><br>&nbsp;&nbsp; When you write an expression for a String attribute like:<br><br>Person( name &gt; &quot;Edson&quot; )<br><br>&nbsp;&nbsp; It should raise an exception saying:<br><br>Operator &#39;&gt;&#39; does not exists for StringEvaluator.
<br><br>&nbsp;&nbsp; Although, he is saying Operator &#39;50&#39;?!?!<br><br>&nbsp;&nbsp; What version of drools are you using?<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><br><br><br><div><span class="gmail_quote">2007/5/23, Ronald R. DiFrango &lt;<a href="mailto:ron.difrango@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">




ron.difrango@gmail.com</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;"><div><span>Anyone ever seen this error in the IDE:
<br><br>Severity and Description&nbsp;&nbsp;&nbsp; Path&nbsp;&nbsp;&nbsp; Resource&nbsp;&nbsp;&nbsp; Location&nbsp;&nbsp;&nbsp; Creation Time&nbsp;&nbsp;&nbsp; Id
<br>Operator &#39;50&#39; does not exist for StringEvaluator&nbsp;&nbsp;&nbsp; RtvDecisionEngine/src/rules/com/circuitcity/rtvcrms/rules&nbsp;&nbsp;&nbsp; 
rtv.drl&nbsp;&nbsp;&nbsp; Unknown&nbsp;&nbsp;&nbsp; 1179954317638&nbsp;&nbsp;&nbsp; 29080<br><br>And if so what do you do about it?&nbsp; 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>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<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" 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>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<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" 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>