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,
On 4 March 2014 22:24, david.berkman <david.berkman(a)grenadefish.net> wrote:
Is there any way to declare a drools template (*.drt) and its data
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
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
All help appreciated,
View this message in context:
Sent from the Drools: User forum mailing list archive at Nabble.com
rules-users mailing list