-
1. Re: ConcurrentModificationException when LocalTaskService.complete()
salaboy21 Jul 4, 2012 4:30 AM (in response to devilkazuya99)This is fixed in master already.
There should be a property inside teh TaskService to set it as local. if you do that, the callbacks will be executed in the same thread avoiding the race condition.
Cheers
-
2. Re: ConcurrentModificationException when LocalTaskService.complete()
devilkazuya99 Jul 4, 2012 5:01 AM (in response to salaboy21)Do you mean this? (set local)
SyncWSHumanTaskHandler syncWSHumanTaskHandler = new SyncWSHumanTaskHandler(localTaskService, ks);
syncWSHumanTaskHandler.setLocal(true);
-
3. Re: ConcurrentModificationException when LocalTaskService.complete()
salaboy21 Jul 4, 2012 5:05 AM (in response to devilkazuya99)Yes sorry, are you using that option in the WorkItemHandler?
-
4. Re: ConcurrentModificationException when LocalTaskService.complete()
devilkazuya99 Jul 4, 2012 9:47 AM (in response to salaboy21)SyncWSHumanTaskHandler syncWSHumanTaskHandler = new SyncWSHumanTaskHandler(localTaskService, ksession);
syncWSHumanTaskHandler.setLocal(true);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", syncWSHumanTaskHandler);
This is what I did. Am I missing something?
-
5. Re: ConcurrentModificationException when LocalTaskService.complete()
devilkazuya99 Jul 4, 2012 9:49 AM (in response to devilkazuya99)Any different if I do it this way? (Use blank
SyncWSHumanTaskHandler
constructor)SyncWSHumanTaskHandler syncWSHumanTaskHandler = new SyncWSHumanTaskHandler();
syncWSHumanTaskHandler.setLocal(true);
syncWSHumanTaskHandler.setClient(localTaskService);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", syncWSHumanTaskHandler);