Hi,
why ActivitiOptimisticLockException is thrown after serviceTask is completed, not before its execution? During stress tests I can see, that executor which get AOLE done given serviceTask and after that exception is thrown, so task will be executed again?
Why lock is not checked before serviceTask execution? And another question - how I can handle such case to avoid such situations?