4 Replies Latest reply on Aug 29, 2011 12:38 PM by Renzo Tomaselli

    About Salaboy examples

    Renzo Tomaselli Novice

      Hi,

      I hope this forum is the right place to ask for support/clarifications about those examples.

      A couple of starting questions:

       

      - in ex03_greetings.bpmn a xor split leads to three branches, which action is to printout something then stop (no output connections). Flow seems to restart by catching an internal event, but where is it raised ?

       

      - example projects starting from 01-jBPM5-SimpleEmergencyServiceProcess miss the java main part.

      What is the overall architecture of those examples as compared to the typical console case ? Which component runs in which JVM ?

       

      Thanks.

        • 1. Re: About Salaboy examples
          Mauricio Salatino Master

          Hi Renzo,

          Those examples try to demonstrate different functionalities of the jBPM engine.

          All the examples there are JUnit Tests that create a business process and assert the diferent states of the process. Except for the first example that is a community contribution all the rest are just Unit Tests.

          About the ex03_greetings.bpmn the process graph looks like:

          Screen Shot 2011-08-29 at 10.00.30 AM.png

          And yes.. if you want to continue the process you need to signal the event.

          We definitely need to improve those examples and move them to Junit.

          Cheers

          • 2. Re: About Salaboy examples
            Renzo Tomaselli Novice

            Thanks Mauricio.

             

            >>> All the examples there are JUnit Tests that create a business process and assert the diferent states of the process. Except for the first example that is a community contribution all the rest are just Unit Tests. <<<

             

            Ok, but I still miss the init stuff which is usually located in main. Loading named resources, creating processes, creating initial parameters, asserting initial facts, asserting a process in working memory and alike.

            • 3. Re: About Salaboy examples
              Mauricio Salatino Master

              I'm not sure what you mean.. if you take a look at the class called: SimpleEmergencyProcessTest in the jbpm5/01-jBPM5-SimpleEmergencyProcess/src/test/java/com/wordpress/salaboy/examples/ You will find the code that initializes and test the process for that example.

              • 4. Re: About Salaboy examples
                Renzo Tomaselli Novice

                Oh yes, now I see: junit does the entire trick.