<br clear="all"><div><span class="Apple-style-span" style="border-collapse:collapse;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">I am getting exception when using Array in combination with &quot;in (...)&quot;.<br>
Below is the exception<br>[Error: unable to resolve method: java.util.HashMap.countyName()<br>[arglength=0]]<br><br>and below is the template I have created<br><br>template header<br>stateName<br>countyName[]<br>totalPremium<br>
<br>package org.drools.bpmn2<br><br>template &quot;Premium&quot;<br>stateName<br>totalPremium<br><br>rule &quot;Premium_@{row.rowNumber}&quot;<br>ruleflow-group &quot;insurance premium&quot;<br><br>  when<br><br>      Input(stateName == @{stateName}, countyName in (@{countyName}))<br>
<br>  then<br>      System.out.println(&quot;total premium &quot; + @{totalPremium});<br>end<br>end template<br><br>the excel sheet is having the data, the column corresponds to countyName as<br>CSV value with variable number of variables either empty or 1 or 2 and so<br>
on.<br><br>If I give the when like below it works (with countyName0 instead of<br>countyName).<br><br>  when<br><br>      Input(stateName == @{stateName}, countyName in (@{countyName0}))<br><br>Do I need to use foreach to generate the countyName sequence like<br>
countyName0, countyName1 .. etc to put it in the &quot;in (...)&quot; condition?<br><br>I didnt find much documention about templates that covers foreach with in.<br>Please help.  Any examples or samples would be helpful.</span></div>
-- <br>Thanks,<div>Mani</div><br>