JBoss Community

Start a process from a third party application

created by Jose Miguel Loor in jBPM - View the full discussion

Hi

 

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

Reply to this message by going to Community

Start a new discussion in jBPM at Community