<br>&nbsp;&nbsp; foo : Foo( id memberOf globalList )<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/12/10 techy <span dir="ltr">&lt;<a href="mailto:techluver007@gmail.com">techluver007@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
I would like to do lhs &quot;&quot;contains&quot;&quot; check on global list for fact field as<br>
given below. but no luck so far.. some help please.<br>
<br>
global List globalIdList<br>
#psedo rule<br>
rule &quot;check global lsit&quot;<br>
when<br>
 &nbsp; &nbsp; &nbsp;foo: Foo()<br>
 &nbsp; &nbsp; &nbsp;list : List() from globalIdList<br>
 &nbsp; &nbsp; &nbsp;list contains foo.getId()<br>
 &nbsp; &nbsp; &nbsp;#also tried &nbsp;&#39;&#39;List(contains(foo.getId()) == true) from globalIdList&#39;&quot;<br>
then<br>
//do something<br>
end<br>
<br>
Thanks<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/lhs-%22contains%22-check-using-global-list-tp20929328p20929328.html" target="_blank">http://www.nabble.com/lhs-%22contains%22-check-using-global-list-tp20929328p20929328.html</a><br>

Sent from the drools - user mailing list archive at Nabble.com.<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br> &nbsp;Edson Tirelli<br> &nbsp;JBoss Drools Core Development<br> &nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>