Does your Destination class have a field &quot;FieldMember&quot;?<br>-W<br><br><div class="gmail_quote">2009/7/29 Divya Rajendranath <span dir="ltr">&lt;<a href="mailto:divya.rajendranath@gmail.com">divya.rajendranath@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;">Hi, <br><br>I am setting an ArrayList as a Global on my drools session by saying ... <br><br>
StatefulSession drlSession = getRuleManager().getSession(); <br>drlSession.setGlobal(&quot;myMailingList&quot;, myMailingList); <br>
<br>then in my Drl file, I send the same arrayList as a parameter to the setter of another object by saying... <br><br>package com.test.rules; <br><br>import java.util.ArrayList; <br><br>global java.util.ArrayList myMailingList; <br>

<br>rule &quot;Test&quot; <br>salience 100 <br>no-loop true <br>when <br>$o:MyObject(some condition) <br>$d:Destination() <br>then <br>$d.setFieldMember(myMailingList) <br>end <br><br>So, based on some condition/field value in MyObject I want to set the Destination with the arraylist - myMailingList. <br>

<br>Is the way I specify/refer the ArrayList in the then part fine. Because I am always getting &quot;unable to compile test.drl file - runtime exception&quot;. <br><br>Could some one please help me with this. <br><br>-thnx<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>
<br></blockquote></div><br>