-
1. Re: Rules Service - how to connect to rule repository?
jeffdelong Aug 15, 2012 9:09 AM (in response to magick93)The same article mentions lower down:
Using a KnowledgeAgent
A Drools KnowlegeAgent provides automatic loading, caching and re-loading of local or remote resources. An example of a remote resource would be one hosted by Guvnor. Enabling resources to be managed by a KnowledgeAgent is easy, and can be enabled simply either via annotations:
@Rules
(... agent=
true
)
or via XML:
<implementation.rules ... agent=
"true"
>
...
</implementation.rules>
It does leave out however that you also need to configure a ChangeSet.xml file:
<rules:resource location="META-INF/ChangeSet.xml" type="CHANGE_SET"/> and an include a ChangeSet.xml file that looks like this:
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='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/sandbox.michele/LATEST' type='PKG'
basicAuthentication="enabled" username="admin" password="admin" />/>
</add>
</change-set>
-
2. Re: Rules Service - how to connect to rule repository?
dward Aug 16, 2012 5:01 PM (in response to jeffdelong)Thanks Jeff. I've added a "Using a Rules Repository" section to the documentation, right under the "Using a Knowledge Agent" section.