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/...
>
<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/packa...
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav/packa...
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&...]