1 Reply Latest reply on Apr 27, 2012 3:47 PM by darshan.pandhi

    Start a process from a third party application

    jmiguel77

      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