Template parsing and expansion doesn&#39;t care much about the text between the overall delimiting keywords; basically it is just a macro processor. This means that you could very well expand a template containing DSLR rules, and feed the result as DSLR to the Builder.<br>
<br>Notice that template expansion can be done with a variety of data containing the actual parameters.<br><br>Also, keep in mind that you can write constraints such as<br>    Fact( ..., field in ( &quot;100&quot;, &quot;200&quot;,... ),... )<br>
which is certainly preferable to having individual and otherwise identical rules.<br><br>-W<br><br><br><div class="gmail_quote">2011/5/20 matiasklein <span dir="ltr">&lt;<a href="mailto:mklein@porticosys.com">mklein@porticosys.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;">Thank you.  I will read up more about templates.  Do you know if it is possible to use a DSL with templates?
<br><br>Thanks Again!
<br>________________________________________
<br>From: manstis [via Drools] [<a href="http://user/SendEmail.jtp?type=node&amp;node=2963820&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>]
<br>Sent: Thursday, May 19, 2011 11:24 AM
<br>To: Matias Klein
<br>Subject: Re: [rules-users] DSL Enumeration / Decision Table ?
<br><br>This would appear a (near) perfect use-case for &quot;Templates&quot;.
<br><br>Have a read of the documentation and examples, it should become quite clear thereafter :)
<br><br>On 19 May 2011 15:46, matiasklein &lt;[hidden email]&lt;/user/SendEmail.jtp?type=node&amp;node=2961816&amp;i=0&gt;&gt; wrote:
<br>Hi,
<br><br>I have a DSLR that reads:
<br><br>There is an event with a code of &quot;93000&quot;
<br><br>This translates via DSL to:
<br><br>[when]There is an event with a code {Code}=$event : Event(Code == {Code})
<br><br>Unfortunately, I have to build many rules that are exactly the same as this,
<br>but with different qualifying codes (i.e. rule #1 qualifies with code 9300,
<br>93001, 93002, etc., but rule #2 qualifies with 5001, 5002, 5003, etc.).
<br><br>I would like users of the system to be able to maintain the list of
<br>qualifying codes in a spreadsheet.  However, I&#39;m not sure how to use an
<br>enumeration loaded via a spreadsheet.
<br><br>Does anyone have a recommendation on how to achieve this?
<br><br>Thanks so much!
<br><br>Cheers,
<br><br>Matias
<br><br>--
<br>View this message in context: <a href="http://drools.46999.n3.nabble.com/DSL-Enumeration-Decision-Table-tp2961667p2961667.html" rel="nofollow" link="external" target="_blank">http://drools.46999.n3.nabble.com/DSL-Enumeration-Decision-Table-tp2961667p2961667.html</a><div class="im">
<br>Sent from the Drools: User forum mailing list archive at Nabble.com.
<br></div>_______________________________________________
<br>rules-users mailing list
<br>[hidden email]&lt;/user/SendEmail.jtp?type=node&amp;node=2961816&amp;i=1&gt;
<br><div class="im"><a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br><br></div>_______________________________________________
<br>rules-users mailing list
<br>[hidden email]&lt;/user/SendEmail.jtp?type=node&amp;node=2961816&amp;i=2&gt;
<br><div class="im"><a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br><br></div><div class="im">
________________________________
<br>If you reply to this email, your message will be added to the discussion below:
<br></div><a rel="nofollow" link="external"></a><div class="im">
<a rel="nofollow" link="external"><br><br><br>Join Portico Systems at AHIP’s Institute 2011, June 15-17 in San Franciscso, where the Road Map for Health Care Reform Continues. Visit www.ahip.org/conferences/Institute2011 for more information or to register.
<br>Portico Systems recent accolades &amp; upcoming events (www.porticosys.com)
<br>________________________________
<br><br>• Follow us on Twitter @porticosys, LinkedIn and Facebook.
<br>• Read our blog devoted to the Healthcare Payer Community and IPM: Portico Pulse </a><a href="http://blog.porticosys.com/" rel="nofollow" link="external" target="_blank">http://blog.porticosys.com/</a>.
<br>• Best Places to Work in Philadelphia 2010 &amp; 2009
<br>• Ranked #97 on Healthcare Informatics 100 list
<br><br><br>This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
<br>
        
<br><hr width="300" align="left"></div>
View this message in context: <a href="http://drools.46999.n3.nabble.com/DSL-Enumeration-Decision-Table-tp2961667p2963820.html" target="_blank">RE: [rules-users] DSL Enumeration / Decision Table ?</a><div class="im"><br>

Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html" target="_blank">Drools: User forum mailing list archive</a> at Nabble.com.<br></div><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>