2 Replies Latest reply on Oct 7, 2012 6:27 PM by Sadiroveski S

    How JBPM Interrogate the process definition "evaluation.bpmn"

    Sadiroveski S Newbie

      Dear all,

       

      I want to know how the JBPM interrogate the process definition. We design the process and save in a .bpmn file in the classpath. Then, use the following code

       

      -------------

      KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();

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

      -------------

       

      1-The engine will look to the classpath for "Evaluation.bpmn". what next?

      2-Does the engine look to "Evaluation.bpmn" every time a new process initiated by a user??

      3- How the engine knows what task is next in a runtime process instance, by using the "Evaluation.bpmn" file or by looking into the database (if yes which field) or somewhere else??

       

      Your help by answering the 3 questions above is highly appreciated.

       

      Thanks,