This is possible, but you will need to add the ability to compile the
repository_export.zip. This means you need to reuse a lot of the Guvnor
codes for resolving enums, package imports, guided rules and so on.
If I guess our needs correctly. You are better taking a different
approach. Build the repository using Guvnor and then add the import
function for Drools packages. This way you only need the Drools core in
your own application for running these packages and updating them is
easy.
Toni Rikkola
On ti, 2014-07-22 at 17:55 -0700, ilguapo wrote:
I'm using Drools 5.3.0
I'd like to find out if the following scenario is possible:
- Include the repository_export.zip file inside my application WAR file.
This way, Guvnor won't be necessary.
- Provide a special upload page just like Guvnor's Import/Export to upload a
completely new repository_export.zip file when rules have changed.
I haven't been able to find a way to read a repository_export.zip file with
the current API. They only talk about drl, pkg, etc..etc but no zip files.
I could potentially take the zip file, unzip it to an XML and maybe read
this file??
Any ideas would be really helpful.
Regards,
Ilguapo
--
View this message in context:
http://drools.46999.n3.nabble.com/Including-repository-in-a-WAR-file-tp40...
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