10-08-2013 10:42 AM
int retries = 3;
while (retries > 0) {
try {
runtimeService.messageEventReceived(messageName, task.getExecutionId());
break;
} catch (ActivitiOptimisticLockingException ex) {
if (–retries < 1) {
// fatal, escalate
}
try {
// give some time to recover, allow other instance to finish work on process
Thread.sleep(100);
} catch (InterruptedException e) {}
}
}
10-08-2013 11:21 AM
10-08-2013 01:08 PM
10-09-2013 04:14 AM
10-09-2013 04:35 AM
10-09-2013 05:20 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.