[rules-users] Guvnor repository_export.xml the code

Jervis Liu jliu at redhat.com
Tue Nov 9 23:41:06 EST 2010


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




More information about the rules-users mailing list