Hello Mr Edson,<br>I tried using memberOf , but i get <br>java.lang.ClassCastException: Can't check if an attribute is member of an object of class class [Ljava.lang.String;<br><br>here is my code<br><br>MyFact($arraystore : x.y.z)<br>MyAnotherFact(a memberOf $arraystore) <br><br>where z is an string of array <br>and MyAnotherFact.a is a string <br><br>waiting for ur reply<br><br>thank you<br>vamshi<br><br><b><i>Edson Tirelli &lt;tirelli@post.com&gt;</i></b> schrieb:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <br>&nbsp;&nbsp;&nbsp; Yes, but use "memberOf" instead of "in":<br><br>rule XYZ<br>when<br>&nbsp;&nbsp;&nbsp; MyFact( $array : arrayAttr )<br>&nbsp;&nbsp;&nbsp; AnotherFact( attr memberOf $array )<br>then<br>&nbsp;&nbsp;&nbsp; ...<br>end<br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson <br><br><div><span class="gmail_quote">2007/9/5, vamshidhar reddy chitti &lt;<a
 href="mailto:chvreddy2001@yahoo.de">chvreddy2001@yahoo.de</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;"> hi<br>how to store array of string values in a variable and later checking for some value to be in that array..<br>for example<br>String[] str = new String[] { "Spouse", "Annuitant", "Nominee" }; <br><br>am trying to store like this<br>$test1 : Object($example : str)<br>is it right?<br><br>and i need to compare like Object2 ( x in ($example) )<br><br>my rule doesnt fire..<br><br>please help me..<br><br>tnx<br>vamshi <br><span class="ad"><div>          </div><hr size="1">Beginnen Sie den Tag mit den neuesten Nachrichten. <a href="http://de.rd.yahoo.com/evt=41213/*http://de.yahoo.com/set" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Machen Sie Yahoo! zu Ihrer Startseite!
 </a><div></div></span><br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org </a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">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"> www.jboss.com</a> _______________________________________________<br>rules-users mailing list<br>rules-users@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/rules-users<br></blockquote><br><p>&#32;
      <hr size=1><a href=" http://de.rd.yahoo.com/evt=48210/*http://de.answers.yahoo.com/;_ylc=X3oDMTEyYTEwYzVhBF9TAzIxMTQ3MTgxOTAEc2VjA21haWwEc2xrA3RhZ2xpbmU-" target=_new >Yahoo! Clever</a>: Stellen Sie Fragen und finden Sie Antworten. Teilen Sie Ihr Wissen.