Incidents in parallel mutl-instance in multi-node camunda cluster

Hi,

I have a workflow with a parallel multi-instance callActivity. Inside callactivity, there are couple of service task. I’ve applied multi-instance async after & exclusive. Also, the service task are async after/exclusive. Running the workflow throws multiple Incidents but all the sub process are completed. Because of the incidents the multi-instance is not completed and it doesn’t proceed for next task. When I checked the error “Variable instance ‘nrOfCompletedInstances’ was updated by another transaction concurrently”. I changed the async behaviour for multiple times but it throws 4-8 incidents.

I have read about async continuations and mutli-instance. Transactions in Processes | docs.camunda.org

In such cases, do I need to de-activate incidents? or skipOptimisticLockingException?

Below is the model

Hi ,
Is there any specific usecase you’re trying to achieve with async after/ exclusive?

Hi,

I was trying async changes to service task & other task to get rid of incident raised when “nrOfCompletedInstances” variable of multi-instance is updated concurrently during loop. I’ve updated the below WF, as you can see if the call-activity raises an incident then it doesn’t go to “Next batch” task instead it waits in the multi-instance body with running state. I don’t know, how to resolve this incident in multi-instance?

Note: Incidents are not thrown for failure of service task.