[jboss-dev-forums] [jBPM Development] - How to fetch existing process from drools repo
uvijayreddy657
do-not-reply at jboss.com
Wed Oct 12 07:18:26 EDT 2011
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/defaultPackage/LATEST http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST"
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&containerType=14&container=2035]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111012/cc9eda10/attachment.html
More information about the jboss-dev-forums
mailing list