Real Parallel Execution of Paths

Hi, I watched a training video of Camunda. In the video (2018), it has been explained, that real parallel execution is not possible (no multi threading). Is this still true? We need a parallel execution of two differnt paths, (e.g. while the pizza is in the oven, the user can wash the dishes. The Process “pizza in the oven” is on ongoing, so for my understanding, the token needs to stay on the “pizza in the oven” until the pizza is done.)

Best
Clemens

If you mean executing two service tasks in parallel then this is possible using the external task pattern.
But it would not be advisable to have 2 threads act on the same instance at the same time. You could have serious problems with inconsistent states

Hi Niall,

I have attached an example. So, if I use an external service task, would the second service task being started in parallel, or would the second service task wait for the first one to finish, before it starts?

parallel.bpmn (4.8 KB)

Best

In that case with the external task pattern implemented the code being executed by both service tasks will run in parallel on different threads.

Perfect, thanks, that’s what I needed to know. Thanks for the super fast response :slight_smile: