1 Reply Latest reply: Apr 27, 2012 3:47 PM by Darshan Pandhi RSS

Start a process from a third party application

Jose Miguel Loor Apprentice



I have deployed a jbpm 5.2 process in guvnor, build it and then it appears in the jbpm-console. Now i need to start it from a third application.


In the API examples i see this code:


KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();

kbuilder.add(ResourceFactory.newClassPathResource("sample.bpmn"), ResourceType.BPMN2);

return kbuilder.newKnowledgeBase();


but it seems to me, that this code is creating a new KnowledgeBase from scratch, and for what i want to do, i should be connecting to an existing KnowledgeBase; am i right ?? how can i do this ??


thanks a lot