This content has been marked as final.
Show 3 replies
-
1. Re: jBPM 4.1 takeTask() race condition
jbarrez Nov 24, 2009 6:09 AM (in response to scollyp)Should be easy to do by just writing a service method that does a query/assignment with the jBPM API.
If you then get a staleObjectException, you know someone else has taken the task just before you. -
2. Re: jBPM 4.1 takeTask() race condition
kukeltje Nov 24, 2009 3:56 PM (in response to scollyp)I think this should become part of the API so a nice message can be returned like ' task has been taken by someone else' Users should not be bothered with low level SOE.
-
3. Re: jBPM 4.1 takeTask() race condition
jbarrez Nov 24, 2009 4:07 PM (in response to scollyp)Good suggestion.
My only concern is that it would be required in several different places with different error messages. Perhaps an interceptor that catches SOEs and wraps them in a jBPMException can do it in a generic way and is already sufficient?