Well, I saw that, and I&#39;d been thinking of that feature. But it might be that Leif doesn&#39;t need to produce a series of similar rules from a template.<br><br>Given that Customers are distinguished by a set of parameters that represent values that would normally be literals in rules, he might write his rules according to:<br>
<br>rule &quot;checkLimit&quot;<br>when<br>   Parameter( ?limit : limit,...)<br>   ...<br>   CustTrans( value &gt; ?limit, ... )<br>   ...<br>then<br>   ... refuse ...<br>end<br><br>A single Parameter fact inserted for either A or B would distinguish the deployments of such rule sets.<br>
<br>-W<br><br><div class="gmail_quote">On Thu, Oct 22, 2009 at 9:25 PM, Bill Tarr <span dir="ltr">&lt;<a href="mailto:javatestcase@yahoo.com">javatestcase@yahoo.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;">
Have you looked into the drools-templates subproject? <br>
<br>
There are database driven templates (thats what I ended out using), but I suspect since you don&#39;t want to use a Excel or a CSV, that will be too heavyweight for you.<br>
<br>
I haven&#39;t used the ObjectDataCompiler yet, but it seems to be what you are looking for:<br>
drools-templates\src\main\java\org\drools\template\ObjectDataCompiler.java<br>
<br>
The author Wolfgang Laun is also a frequent poster on this list.<br>
<br>
<br>
<br>
----- Original Message ----<br>
From: strug &lt;<a href="mailto:strug@web.de">strug@web.de</a>&gt;<br>
To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
Sent: Thu, October 22, 2009 8:46:46 AM<br>
Subject: [rules-users] Templating without usages of Excel or CSV?<br>
<br>
<br>
hi!<br>
<br>
is there a way to use the templating feature just from within drools?<br>
without the use of excel or csv or java?<br>
<br>
i want to have a template-rule and put the placeholder values into two<br>
different packages:<br>
<br>
package customer A:<br>
- my-rule-template.drl<br>
- customer-a-data.drl<br>
<br>
package customer B:<br>
- my-rule-template.drl<br>
- customer-b-data.drl<br>
<br>
the packages are loaded separately, i.e. the rules fire just for one<br>
customer at a time.<br>
<br>
regards, leif<br>
--<br>
View this message in context: <a href="http://www.nabble.com/Templating-without-usages-of-Excel-or-CSV--tp26012401p26012401.html" target="_blank">http://www.nabble.com/Templating-without-usages-of-Excel-or-CSV--tp26012401p26012401.html</a><br>

Sent from the drools - user mailing list archive at Nabble.com.<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>
<br>
<br>
__________________________________________________<br>
Do You Yahoo!?<br>
Tired of spam?  Yahoo! Mail has the best spam protection around<br>
<a href="http://mail.yahoo.com" target="_blank">http://mail.yahoo.com</a><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>