Hi All,
I am often facing a WriteConflict error when I complete tasks in parallel,
taskService = processEngine.getTaskService();
taskService.complete(taskId, inputVars);
When more than 1 task was to be completed, I am facing write conflict error. I am using Flowable 6.7.2 with MongoDB
. I am aware that the flowable-mongodb
integration is in alpha state, kindly let me know your thoughts.
Upon analysis, the issue is occurring when it is updating the entities in the below file
File Name: MongoDBSession.java
Method: flushUpdates()
Kindly let me know a way to avoid this Write conflict issue.
Cheers !