Hi I am using drools 5.1.1
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of rules-users-request(a)lists.jboss.org
Sent: Wednesday, March 05, 2014 2:20 PM
To: rules-users(a)lists.jboss.org
Subject: rules-users Digest, Vol 88, Issue 12
Send rules-users mailing list submissions to
rules-users(a)lists.jboss.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
rules-users-request(a)lists.jboss.org
You can reach the person managing the list at
rules-users-owner(a)lists.jboss.org
When replying, please edit your Subject line so it is more specific than "Re:
Contents of rules-users digest..."
Today's Topics:
1. Re: Drools template declaration in kmodule.xml (Michael Anstis)
2. Re: Guvnor - Custom operator problem (Not finding it)
(Michael Anstis)
3. Re: Drools 6.0.1 Workbench - How to import existing drl
files? (Michael Anstis)
4. Re: Some basic questions/assumptions on Drools
Work-bench/Guvnor (Michael Anstis)
5. Re: 6.0.1.F How to use @role and @expires with DSL
(Michael Anstis)
6. Re: Facing Problem with this exception (Wolfgang Laun)
----------------------------------------------------------------------
Message: 1
Date: Wed, 5 Mar 2014 08:06:26 +0000
From: Michael Anstis <michael.anstis(a)gmail.com>
Subject: Re: [rules-users] Drools template declaration in kmodule.xml
To: Rules Users List <rules-users(a)lists.jboss.org>
Message-ID:
<CAAG9P0suYi7MdP69nsNa4Y9S6c76nniZZ4u5QC72MO6zPTRLnA(a)mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
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(a)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-kmodu
le-xml-tp4028504.html Sent from the Drools: User forum mailing list
archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users