bpmn-engine icon indicating copy to clipboard operation
bpmn-engine copied to clipboard

Multiple executions of the same engine at the same time.

Open allain opened this issue 3 years ago • 4 comments

If I set up a service that invokes a process on demand, can multiple executions of a process be running on the same engine at the same time or do I need to create an Engine per execution?

Thank you.

allain avatar Apr 02 '22 14:04 allain

One engine handles one execution. A definition may start multiple processes, e.g. a multi-instance call activity.

paed01 avatar Apr 02 '22 15:04 paed01

Thanks for responding.

If the process represents the on-boarding of customers for example. You'd model it as a single execution that can respond to events about the need for a new customer and then invoke the "onboard a single customer" activity?

If so, the list of postponed things can include the same task multiple times? How might you associate a postponed task with the customer that it represents? Do you bake in the customer info into every message that traces back to their on-boarding event?

Sorry for the n00b questions.

allain avatar Apr 02 '22 15:04 allain

Any update on how to do such scenario efficiently. I'm in a similar situation for a workflow management tool. Thanks!

MaheshkumarSundaram avatar Jul 12 '22 12:07 MaheshkumarSundaram