Hi guys,
When I stress my application I get the following error:
ENGINE-03005 Execution of ‘UPDATE VariableInstanceEntity[46a89b06-4108-11ea-8cdd-000d3a2fa37e]’ failed. Entity was updated by another transaction concurrently.
This happens when I call messageEventReceived passing variables:
runtimeService.messageEventReceived(messageName, foundExecutionId, variables);
We start our processes passing some authorization variables (userId, authToken, etc.) at ProcessInstance level. Then, when we invoke completeTask, saveTask, sendMessage we pass those variables to the process, along with some other new variables we may need. Those variables are intended to be used to call some EJB’s from our Java Delegates.
I think that the problem may arise because we are saving those variables at instance level and not at execution level… or at a task level. The point is that 95% of those problems arise when we use a sendMessage with variables.
Can you give me any advice so that I can minimize those concurrency problems? Also, can you give me any advice on how to manage those credentials without having to update them on every single process action?
BTW, my camunda version is 7.8.
Thanks in advance…
Alfonso.