Hi Frank,<br><br>thanks for your follow-up. <br><br>As much as I like source code generators, I must confess that I&#39;ve come to dislike the generation of many almost identical chunks, e.g., varying only in literals.<br>
<br>This means that using templates without an &quot;if&quot; in the available macro language is a &quot;weak&quot; tool. Consequently, this triple layering isn&#39;t on my &quot;tops&quot; list. <br><br>Basically, I agree with your assessment, the only caveat being the level of complexity and extend that is convenient to achieve with a DSL.<br>
<br>Regards<br>Wolfgang<br><br><br><div class="gmail_quote">On 9 January 2012 17:08, FrankVhh <span dir="ltr">&lt;<a href="mailto:frank.vanhoenshoven@agserv.eu">frank.vanhoenshoven@agserv.eu</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">
Hi,<br>
<br>
Sorry to have kept you waiting.<br>
<br>
If you use plain DRL, you have 1 source of information. If you use DSL, you<br>
add an extra source of information by inserting the data in it. Adding DSL<br>
on top of that, adds a third source of information in the form of a<br>
vocabulary.<br>
<br>
In theory, the more disperse your information, the more difficult it will be<br>
to maintain.<br>
<br>
Until now, I debugged all templates in the same way. Expand them all<br>
completely and have them outputted to a real DRL file. Than, debug the<br>
outputted file and make corrections in your template accordingly. Here,<br>
imho, there is not much difference in a DSLR template and a DRL template,<br>
provided that you have a stable DSL. This is not a debugging method that I<br>
particullary like, but it gets the job done.<br>
<br>
If you assess the difference between a DSLR and a DRL template, the only<br>
differentiator is the DSL. In that case it comes down to the question<br>
whether you have a stable DSL or not. If your DSL is mature, I would prefer<br>
DSLR over DRL for reasons of understandability to non-technical users.<br>
Unless your template is meant to be hidden from the user.<br>
<br>
Regards,<br>
Frank<br>
<br>
<br>
laune wrote<br>
&gt;<br>
&gt; OK, thanks for the confirmation.<br>
&gt;<br>
&gt; Do you have any comments w.r.t. to usability during development<br>
&gt; (debugging?!) and maintenance? The example is simple enough, but what&#39;s<br>
&gt; your feeling?<br>
&gt;<br>
&gt; -W<br>
&gt;<br>
&gt; On 6 January 2012 08:46, FrankVhh &amp;lt;frank.vanhoenshoven@&amp;gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; laune wrote<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; What I suggested is a non-standard way of rule authoring, and I just<br>
&gt;&gt; think<br>
&gt;&gt; &gt; that it is possible - I&#39;ve never tried it.<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; This should work. I tried it once with Drools 5.0, so I assume it is<br>
&gt;&gt; still<br>
&gt;&gt; OK.<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://drools.46999.n3.nabble.com/file/n3637269/voc.dsl" target="_blank">http://drools.46999.n3.nabble.com/file/n3637269/voc.dsl</a> voc.dsl<br>
&gt;&gt; <a href="http://drools.46999.n3.nabble.com/file/n3637269/Sample.dst" target="_blank">http://drools.46999.n3.nabble.com/file/n3637269/Sample.dst</a> Sample.dst<br>
&gt;&gt; <a href="http://drools.46999.n3.nabble.com/file/n3637269/DroolsTest.java" target="_blank">http://drools.46999.n3.nabble.com/file/n3637269/DroolsTest.java</a><br>
&gt;&gt; DroolsTest.java<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://drools.46999.n3.nabble.com/Template-Key-in-DSL-tp3634710p3637269.html" target="_blank">http://drools.46999.n3.nabble.com/Template-Key-in-DSL-tp3634710p3637269.html</a><br>
&gt;&gt; Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; rules-users@.jboss<br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; rules-users@.jboss<br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Template-Key-in-DSL-tp3634710p3644953.html" target="_blank">http://drools.46999.n3.nabble.com/Template-Key-in-DSL-tp3634710p3644953.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</font></span></blockquote></div><br>