-
1. Re: Parallel gateways really parallel?
davesomebody Sep 24, 2011 1:35 PM (in response to tob1as)1 of 1 people found this helpfulThere is only a single thread executing any single process instance. So when you do parallel gateways they will execute sequentially. I don't know the guts well enough to know anything about order.
Another way to reason about this would be to consider how many people could write thread safe scripts for their before and after actions. No offense to you non-programmer workflow creators. Making stuff thread safe is tough. Making systems as extensible and customizable as this thread safe is a nightmare.
-
2. Re: Parallel gateways really parallel?
tob1as Sep 24, 2011 6:51 PM (in response to davesomebody) -
3. Re: Parallel gateways really parallel?
salaboy21 Sep 25, 2011 5:27 PM (in response to tob1as)Exactly, parallel doesn't mean multi threading programming it means "business" paralelization where microseconds usually don't mean to much.
Cheers
-
4. Re: Parallel gateways really parallel?
tob1as Sep 25, 2011 6:32 PM (in response to salaboy21)Ok, just to extend this thought.
I had a look at the evaluation example. Both mary and john receive human tasks in the tasklist at the same time.
Event though these tasks are triggered sequentially after each other. I guess that is possible, because the human task handlers are asynchonous.
But lets imagine the node on top would be an intermediate message receive event node and the one on the bottom a timer event node. If the receive node is entered first, the process would be waiting until a message comes and the timer would not be executed (until the message comes in). Vice versa, if the timer is entered first, the timer would be finished and then the receive node would be activated (and waiting).
-
5. Re: Parallel gateways really parallel?
mnorsic Sep 26, 2011 4:09 AM (in response to tob1as)Hi Tobias,
I think I've seen the scenario you described in jpbm-examples JUnit test suite, test case BPMN2-EventBasedSplit2. The only difference is that JUnit sample uses undefined diverge gateway and your sample uses AND diverge gateway. Could you try with non-defined diverge gateway and see if it is going to work?
HTH
Miljenko
-
6. Re: Parallel gateways really parallel?
tob1as Sep 26, 2011 5:14 AM (in response to mnorsic)Hi, thanks for your help. I noticed the EventBasedSplit as well. Unfortunately Oryx did not like it and I tried to create a work around with And and XOR gateways. Tihomir fixed it by now, see here:
http://community.jboss.org/thread/172530
However, I was still interested how this strange behaviour came up. I mean, why the timer was never executed, while even if it was synchonous, the timer should have started after everything else was finished.