[rules-users] ODP: Guvnor repository_export.xml the code

Jervis Liu jliu at redhat.com
Wed Nov 10 21:49:00 EST 2010


On 2010/11/11 0:35, Pierre de Leusse wrote:
> 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 
(http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-repository/src/main/java/org/drools/repository/RulesRepository.java)

Cheers,
Jervis

> 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
>
>
>
> _______________________________________________
> 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