cancel
Showing results for 
Search instead for 
Did you mean: 

difference between claim and delegate task

marwahussein
Champ in-the-making
Champ in-the-making
Hello,
I have several questions:

1- I need to know the difference between claim and delegate task, I know that delegation is to allocate a specific task to another resource before it started and I implemented it in the activiti code I am working on now. But when I tried to claim a task that was delegated before it throws an exception stated that this task is already claimed to another user before. I need to know how to make resource reallocate a task and how to state that the system did it.

2- I need to understand what resolve task do exactly and what is the difference between the task assignee and the task owner

3- last question:I need to know if there is a possibility to represent the task start, suspention and failed in Activiti or not ? as I need to throw an esper event when a task started, suspended or failed and I can't find anyway to do it directly from task service

thanks in advance
2 REPLIES 2

vasile_dirla
Star Contributor
Star Contributor
claim set the assignee and register the claim time in the history service.
delegate, will set the assignee of the task and will set the delegate state to pending.

so booth of them set the assignee that's why you cannot use claim after it was delegated. (did you try to unclaim the task ? it must set the assignee to null)

Yeah it worked I tried to unclaim it first and claim it again with a new user..thank you so much Smiley Happy
Is there any way in activity to represent the start of a task even in non direct way ? I need it in my work so I can map those events to a reference lifecycle and create new events