cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer All Tasks using REST

alim736
Champ in-the-making
Champ in-the-making
Hi

How can i Transfer All tasks from (User A) to (User B) using REST
also how can i make delegation from (user A) to (user B) for future task using REST also

thanks
4 REPLIES 4

alim736
Champ in-the-making
Champ in-the-making
??

jbarrez
Star Contributor
Star Contributor
Check the section on tasks in the userguide: http://activiti.org/userguide/index.html#N14412

You can pass a claim/delegate action in the json body.

alim736
Champ in-the-making
Champ in-the-making
thanks for your reply but i ask about some thing like "Out of Office"
for example :suppose there is one user in vacation and we want to transfer any new task directly from his inbox to acting user inbox

frederikherema1
Star Contributor
Star Contributor
There is nothing built in for this right now. You can, as Joram pointed out, query all tasks assigned to user X and call a "delegate" action on the task. When delegating, the original assignee (the user that is on vacation) is retained in the owner-field of the task. Later on, you can resolve all delegate tasks again.

If you want a generic solution, not depending on N+1 rest calls, you can create a custom rest-resource in the Acitivit-rest project and do this logic in a single rest-resource.