cancel
Showing results for 
Search instead for 
Did you mean: 

Assign task to user by another user

opal
Champ in-the-making
Champ in-the-making
Hi,

I would like to know if there is possibility in activiti to assign a task to user by another user. In all examples the task is assigned to group and then one of the group's member can claim the task.

I need a slightly different scenario. A process is started through an API, then one user logs in and sees that the started process. The first user assign this task to the second user who performs the task.

Is this possible to implement such scenario? And how?
5 REPLIES 5

trademak
Star Contributor
Star Contributor
Hi,

Yes, you can change the assignee (user assigned to the user task) via the TaskService interface. Just call the setAssignee method with the taskId and the new assignee name.

Best regards,

Tijs Rademakers
Lead Developer Activiti Designer

opal
Champ in-the-making
Champ in-the-making
Thank You very much for the response.
Is it also possible from the activiti-explorer GUI?

trademak
Star Contributor
Star Contributor
Hi,

No, from the Activiti Explorer this is not possible. You'll have to to do some programming yourself to get this functionality.

Best regards,

jcosano
Champ in-the-making
Champ in-the-making
I do it, with activiti explorer.

First I have an user task associate to one group, when a user catch one, this user task has a form, with a combo with all target users, then when task is complete, arrives to a new task that has candidatee-user the name of combo list… then this task is assigned directly to user choosen in first task…

opal
Champ in-the-making
Champ in-the-making
Ok, and is it possible via REST api or with using groovy script? In the first case I guess that TaskService is necessary but don't know how to obtain it. In second case I don't even know how to start. Any would help would be greatly appreciated.