Sunday, December 15, 2013

How Parallel Is the Oracle Bpm's loop ?

I found out that  when you create a loop in your BPM flow and mark its mode as Parellel  it is actually not running in real parallel execution.
Instead it creates loop instances first and runs the 1st activity of all of them . Then it starts running the 2nd activity and so for..
In my test case I pass the service name  and loop counter to the WS and WS just prints the string input.
And here is the output :

Service : First Call :1
Service : First Call :2
Service : First Call :3
Service : First Call :4
Service : First Call :5
Service : Second Call :1
Service : Second Call :2
Service : Second Call :3
Service : Second Call :4
Service : Second Call :5
As it can be seen clearly that ot doesn’t execute in parallel. Meaning in case something goes wrong at one loop instance others won’t be executed until it is fixed. By the way if you wonder same applies to parallel executions that are forked at a gate as well.

No comments: