Thanks for the quick answer Jervis!
I couldn't find in the guvnor sources how the packages, rules and facts are
loaded into the RuleRepository. Is it placed somewhere else?
Is this what you are looking for?
The importRepository() method in RulesRepoistory.java
(
All the best,
Pierre
-----Wiadomość oryginalna-----
Od: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] W imieniu Jervis Liu
Wysłano: Wednesday, November 10, 2010 5:41 AM
Do: Rules Users List
Temat: Re: [rules-users] Guvnor repository_export.xml the code
pdl(a)agh.edu.pl wrote:
> Hello all,
>
> In Guvnor, the function export allows to dump the content of the
> repository's assets in a xml file. Could somebody please point me towards
> the pieces of code that allow this? More specifically, the code that
allows
> exporting rules and facts into xml?
>
> Below is an example of rule exported in the repository_export.xml:
>
> <sv:property sv:name="drools:content" sv:type="String">
> <sv:value>
> <rule> ...</rule>
> </sv:value>
> </sv:property>
>
> All the best,
> Pierre
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
Hi, take a look into RulesRepoistory.java (drools-repository module),
for example dumpPacakgeFromRepositoryXML method. Its using JCR API
internally.
Cheers,
Jervis
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users