uvijayreddy657 [
http://community.jboss.org/people/uvijayreddy657] created the discussion
"How to fetch existing process from drools repo"
To view the discussion, visit:
http://community.jboss.org/message/631329#631329
--------------------------------------------------------------
Am trying to fetch all process from drools repository by using the following code.
But size of "kbase.rulebase.process" is always "0".
Java Logic
| | | | | *KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent(
"MyAgent" );* |
| | | | |
*kagent.applyChangeSet(ResourceFactory.newClassPathResource("ChangeSet.xml"))*;
|
| | | | | *kbase = kagent.getKnowledgeBase();* |
*ChangeSet.xml*
<change-set xmlns="
http://drools.org/drools-5.0/change-set
http://drools.org/drools-5.0/change-set"
xmlns:xs="
http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="
http://drools.org/drools-5.0/change-set
http://drools.org/drools-5.0/change-set change-set-1.0.0.xsd">
<add>
<resource
source="
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defa...
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defa...
type="PKG" basicAuthentication="enabled"
username="admin" password="admin" />
</add>
</change-set>
what is the logic am missing here to load the processes into
"kbase.rules.packages"
is this the correct way ?
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/631329#631329]
Start a new discussion in jBPM Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]