<div dir="ltr">Hello,<div><br></div><div>I believe the KIE API doesn&#39;t supports your use-case.</div><div><br></div><div>You would normally use drools-templates pro grammatically: parse the template and interpolate your data. The resulting DRL would then be added to a KBase.</div>
<div><br></div><div>Templates within the Workbench work exactly the same (and uses drools-templates); however we persist the template and accompanying data as XML that KieBuilder (fortunately) knows how to convert to DRL.</div>
<div><br></div><div>With kind regards,</div><div><br></div><div>Mike</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 4 March 2014 22:24, david.berkman <span dir="ltr">&lt;<a href="mailto:david.berkman@grenadefish.net" target="_blank">david.berkman@grenadefish.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there any way to declare a drools template (*.drt) and its data files (in<br>
tab delimited or csv or whatever) in a kmodule.xml for publication via<br>
Maven? I realize I can use the Workbench to create a &#39;similar&#39; web template<br>
and deploy that as a consumable .jar file, but I get the impression that<br>
this web template is not quite the same as a drools template, and if I<br>
publish like that and disassemble the resulting jar, that the kmodule.xml<br>
present there (if there is one), would not reverse engineer and be<br>
applicable to my .drt + .csv files I&#39;m currently loading programmatically.<br>
And although programmatic loading works, it&#39;s not available to monitoring by<br>
a KieScanner, and of dynamically loading any changes thereby. I can create<br>
my own monitoring and reloading system, but I&#39;d rather not be reinventing<br>
the wheel.<br>
<br>
All help appreciated,<br>
<br>
Thanks,<br>
David<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-template-declaration-in-kmodule-xml-tp4028504.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-template-declaration-in-kmodule-xml-tp4028504.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>
</blockquote></div><br></div>