-
1. Re: About Salaboy examples
salaboy21 Aug 29, 2011 9:04 AM (in response to tomarenz)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:
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
tomarenz Aug 29, 2011 9:13 AM (in response to salaboy21)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
salaboy21 Aug 29, 2011 9:20 AM (in response to tomarenz)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
tomarenz Aug 29, 2011 12:38 PM (in response to salaboy21)Oh yes, now I see: junit does the entire trick.