Hello,

I believe the KIE API doesn't supports your use-case.

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.

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.

With kind regards,

Mike






On 4 March 2014 22:24, david.berkman <david.berkman@grenadefish.net> wrote:
Is there any way to declare a drools template (*.drt) and its data files (in
tab delimited or csv or whatever) in a kmodule.xml for publication via
Maven? I realize I can use the Workbench to create a 'similar' web template
and deploy that as a consumable .jar file, but I get the impression that
this web template is not quite the same as a drools template, and if I
publish like that and disassemble the resulting jar, that the kmodule.xml
present there (if there is one), would not reverse engineer and be
applicable to my .drt + .csv files I'm currently loading programmatically.
And although programmatic loading works, it's not available to monitoring by
a KieScanner, and of dynamically loading any changes thereby. I can create
my own monitoring and reloading system, but I'd rather not be reinventing
the wheel.

All help appreciated,

Thanks,
David



--
View this message in context: http://drools.46999.n3.nabble.com/Drools-template-declaration-in-kmodule-xml-tp4028504.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users