[rules-users] How to include one .drl file from another .drl file

Ansgar Konermann ansgar.konermann at googlemail.com
Fri Mar 9 14:28:44 EST 2012


Am 09.03.2012 19:16 schrieb "Shur, Bob" <robert.shur at hp.com>:
>
> Is there something like #include for drl files? That is, something like
this:
>
> rule "1"
> when
> then
>  doSomething;
> end
>
> #include "another.drl"
>
> rule "2"
> when
> ...
>
> I know I can load multiple drl files into the knowledge base in Java. I'm
just wondering whether someone writing a drl file can include other drls
without having to copy and paste.

If you want to achieve binary code reuse for your *.drl files (in contrast
to source code reuse), you might want to have a closer look at the Maven
Drools Plugin. [1]

Kind regards,

Ansgar

[1] http://passion.forco.de/content/maven-drools-plugin

>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120309/07ce56e4/attachment.html 


More information about the rules-users mailing list