[jboss-user] [jBPM] - Accessing Guvnor using the REST API

Darryl Youngblood do-not-reply at jboss.com
Fri Nov 4 06:42:24 EDT 2011


Darryl Youngblood [http://community.jboss.org/people/d.y.] created the discussion

"Accessing Guvnor using the REST API"

To view the discussion, visit: http://community.jboss.org/message/635035#635035

--------------------------------------------------------------
Hey there,

I'm new to REST and i wonder how i can add a process from the guvnor repository to my knowledgeBase. When I add processDefinitions from my pc to my KnowledgeBase i would do like this: 

KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(new ClassPathResource("fileName.BPMN"), ResourceType.BPMN2);

Using the REST API I can either

get the xml:
 http://localhost:8080/guvnorJB7/rest/packages/firstPackage/assets/process/source http://localhost:8080/guvnorJB7/rest/packages/firstPackage/assets/process/source

or the bpmn file:
localhost:8080/guvnorJB7/rest/packages/firstPackage/assets/process/binary

but I don't know how i would add the processDefinition to the KnowledgeBase.

Anyone of you may help me with this issue?

Thank you in advance.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/635035#635035]

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/20111104/91662f32/attachment.html 


More information about the jboss-user mailing list