Async before and after in camunda modeller

Whats the difference between async before, after, exclusive in service task?

Capture

Hi Minisha,

Async sets transaction bounaries or units of work. To use an analogy, think of your process as a train comprising linked carriages and each carriage is a task. With no async continuations, one engine pulls the entire train. If you mark a task (carriage) as async after, you are decoupling the carriages after that carriage, thus a different engine (job executor) will pull the rest of the train. If you mark a task (carriage) as async before, you are decoupling the carriage before this carriage and this carriage and the ones behind it will be pulled by a different engine.

To keep using the train analogy, lets assume you have broken your process/train into many async sets of carriages/process fragments. Lets also assume you have lots of train engines and parallel tracks (think of the job executor). Sometimes you may want your train carriages to arrive in order, so one way to do that is to ensure the same engine is assigned to all the sets of carriages. This is what the exclusive flag does. You cn read more about it here

regards

Rob

4 Likes