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>