The operators &quot;in&quot; and &quot;not in&quot; operate on parenthesized lists of operands. They can be used with a single template parameter expanding as a list.<br><br>   Person( likes in ( &quot;apple&quot;, &quot;banana&quot;, &quot;chili&quot; ) )<br>
<br>is the same as<br><br>  Person( likes == &quot;apple&quot; || == &quot;banana&quot; || == &quot;chili&quot; )<br><br>-W<br>  <br><br><br><div class="gmail_quote">On 21 June 2011 18:34, Witham, Darren <span dir="ltr">&lt;<a href="mailto:darren.witham@citi.com">darren.witham@citi.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have successfully generated a .drl file from a decision table. The column headers in this table made use of the forall(||) construct which happily parsed the corresponding comma separated data in the relevant spreadsheet cell to nice || separated conditions.<br>

<br>
We have since decided to use the template approach so we can store rule data in a db. We ideally want to store this data as key/value pairs in a db table where the values may contain comma separated data. The intention being these values would be processed as per the decision table.<br>

<br>
How is this achieved using a template ? I note that a column can be denoted as an array column by adding [] i.e.<br>
<br>
template header<br>
column[]<br>
<br>
<br>
However, although this appears create an ArrayColumn parser, and splits the comma separated data when running through a debugger, any attempt to access it in the template falls over in mvel code trying to call HashMap.column<br>

<br>
<br>
Any examples on how to set this up ?<br>
<br>
Thx<br>
<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>
</blockquote></div><br>