[rules-users] how to get the pkg from guvnor by KnowledgeAgent?

rjr201 rich.j.riley at gmail.com
Tue Feb 19 07:19:12 EST 2013


You need to add authentication in the ChangeSet.xml. Unfortunately the one
that Guvnor creates for you doesn't include it. So you need to download the
ChangeSet.xml into your project and load it using .newClassPathResource or
.newFileResource instead. 

You also need to add authentication to the ChangeSet.xml like so:

<change-set xmlns='http://drools.org/drools-5.0/change-set'
    xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
    xs:schemaLocation='http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd'
>
    <add>
         <resource source= "YOUR URL" 
         type='PKG' <b>basicAuthentication="enabled" username="admin"
password="admin"*/>
    </add>
</change-set>

Hope that works. 
Rich. 



--
View this message in context: http://drools.46999.n3.nabble.com/how-to-get-the-pkg-from-guvnor-by-KnowledgeAgent-tp4022417p4022446.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list