[rules-users] ODP: Guvnor repository_export.xml the code
Pierre de Leusse
pdl at agh.edu.pl
Wed Nov 10 11:35:12 EST 2010
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?
All the best,
Pierre
-----Wiadomość oryginalna-----
Od: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at 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 at 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 at 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 at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
More information about the rules-users
mailing list