cancel
Showing results for 
Search instead for 
Did you mean: 

locking a task?

christoph_retti
Champ in-the-making
Champ in-the-making
Hi, I would like to be able to lock a task so that only one specific user can work on it

In the API I find the methods

addUserIdentityLink(String taskId, String userId, String identityLinkType)

addCandidateUser(String taskId, String userId)
claim(String taskId, String userId)
setAssignee(String taskId, String userId)
setOwner(String taskId, String userId)

and have a few questions on them:

(a) Which one of the above methods would be appropriate?
(b) Is there a documentation of the semantics of asignee, owner, candidate?
© Could I use a own IdentityLink, e.g. locked for this purpose?

Also I was asking which TaskQuery I should use to get all tasks that I could work on - so where I am owner, candodate or assignee?

  regards, c
4 REPLIES 4

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
most examples there are of activiti, use the setAssignee(…) and or claim(…) Assigned tasks do not show up on the group/candidate task lists and therefor 'locks' it. Both are kind of the same with minor differences (mentioned in the api/java doc afaik)

Tip: buy the Activiti in Action book, it is really good (and no I'm not affiliated)

christoph_retti
Champ in-the-making
Champ in-the-making
Hi Ronald, I would buy the book, but as far as i know

  http://www.manning.com/rademakers2/

it is still beeing written and there are only 2 of 4 parts available?

  c

trademak
Star Contributor
Star Contributor
Hi,

Right, it's still being written. But you can already download the MEAP version with the chapters already available.
I expect that in the coming months you'll see a lot more chapters!

Best regards,

christoph_retti
Champ in-the-making
Champ in-the-making
already bought itSmiley Happy

is there anything speaking against using custom identity links?