Hello Steve,<br><br>well, hm, yes, I&#39;d seen from the source that it&#39;s possible to pass in arrays of strings as actual parameters. But I&#39;d thought of pushing this just one small step further.<br><br>From a TemplateContainer created from a template .drl file (no column data yet) you could learn the column names. These names should correspond to fields in a Bean. Access a Bean Object collection, retrieving the values (by reflection) to expand the templates into actual rules.<br>
<br>Since there is a public Column[] getColumns in TemplateContainer, it&#39;s no big deal to implement it in an application, so I won&#39;t insist ;-)<br><br>Regards<br>Wolfgang<br><br><br><div class="gmail_quote">2009/3/25 Steven Williams <span dir="ltr">&lt;<a href="mailto:stevearoonie@gmail.com">stevearoonie@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 Wolfgang,<br><br>This has already been done - take a look at the tests in the templates project. I think I also put some in the examples project.<br>
<br>cheers<br>Steve<br><br><div class="gmail_quote">2009/3/25 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@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;"><div><div></div><div class="h5">Actual parameters for Rule Templates are currently supposed to come from decision tables, actually spreadsheets.<br>

<br>It would not be too difficult to extend the current API so that rule instantiation takes the actual parameters from an object.<br>
<br>What do you think?<br><font color="#888888"><br>-WL<br><br><br><br><br>
</font><br></div></div>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>-------------------------------------------------------------------<br>Stevie Williams<br>Does something with computers<br>
</font><br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br>