<br>&nbsp;&nbsp; Hey Tim,<br><br>&nbsp;&nbsp; Can you please provide a self contained test case? There is no reason why it would not work.<br><br>&nbsp;&nbsp; Thanks<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/8/31, <a href="mailto:Tim.Nguyen@expeditors.com">
Tim.Nguyen@expeditors.com</a> &lt;<a href="mailto:Tim.Nguyen@expeditors.com">Tim.Nguyen@expeditors.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;">
<br><br>Hi List,<br><br>I&#39;d like to check if any duplicate exists in my collection as below:<br><br>rule &quot;check Duplicate&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;when<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ref1: Reference ($type1: referenceType, $value1:<br>referenceValue)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ref2: Reference (this != ref1, referenceType == $referenceType,<br>referenceValue == $value1)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; errorHandler.record(&quot;Duplicate Reference is not allowed.&quot;);<br>end<br>
<br><br>Both my referenceType and referenceValue are String. I didn&#39;t get any error<br>but it didn&#39;t work. Any idea?<br>I am using 4.01 GA<br><br><br>Thanks,<br>Tim<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>&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">www.jboss.com</a>