[jboss-user] [jBPM] - Re: Instantiating the KnowledgeBase
Piotr Tempes
do-not-reply at jboss.com
Thu Apr 7 08:36:45 EDT 2011
Piotr Tempes [http://community.jboss.org/people/carek] created the discussion
"Re: Instantiating the KnowledgeBase"
To view the discussion, visit: http://community.jboss.org/message/598492#598492
--------------------------------------------------------------
I guess I have similiar problem. I wish to get all proccess definitions (NOT instances) from guvnor, but I don't know how to...
above sample code:
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("testKAgent", aconf);
kagent.applyChangeSet(
ResourceFactory.newUrlResource(
"http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor"
+ "/package/defaultPackage/LATEST/ChangeSet.xml"));
And then you take the knowledgeBase from the KnowledgeAgent like this :
KnowledgeBase kbase = kagent.getKnowledgeBase();
claims that by applyChangeSet I can have those definitions in agent and than get it from him by getKnowledgeBase, but I don;t have anything like changeSet.xml under that address and even if I would what would be it's content? I tried to read from local changeset.xml:
<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/webdav/packages/defaultPackage' type='BPMN2'/>
</add>
</change-set>
but that didn't work.
I have guvnor running and in browser on address http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav/packages/defaultPackage http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav/packages/defaultPackage
I can see:
Contents of this Folder:
drools.package
test.bpmn2
test.bpmn2 is correctly displayed in editor and created via guvnor... so everything is fine, except I don't know how can I download to my client from guvnor those definitions...
anybody? I would be gratefull for any piece of advice
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/598492#598492]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110407/5b9d803e/attachment.html
More information about the jboss-user
mailing list