[rules-users] Guvnor - more than one resource in changeset.xml

rganesh84 ganesh_r04 at infosys.com
Tue Aug 27 04:21:47 EDT 2013


I have 2 packages in Guvnor UI having different set of rule assets in it.

pkg1 -> UI rules
pkg2 -> Business rules

In the java application code base, is it mandatory to have 2 change set xmls
with different package contents?

[Java] // for UI rules
kagent.applyChangeSet(ResourceFactory.newClassPathResource("guvnor-tomcat-pkg1-changeset.xml"));
[/Java]

[Java] // for business rules
kagent.applyChangeSet(ResourceFactory.newClassPathResource("guvnor-tomcat-pkg2-changeset.xml"));
[/Java]

Can this be achieved having only one changeset holding multiple packaged
rules?

[change set]
<add> 
	<resource
source='http://server:8080/guvnor-tomcat/rest/packages/com.pkg1/source' 
	type='DRL' basicAuthentication="enabled" username="admin" password="admin"
/>
</add>
[/changeset]

If i add a resource to add tag, how do I call it in Java code?



--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-more-than-one-resource-in-changeset-xml-tp4025690.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list