How to Reassign a userTask

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member II

How to Reassign a userTask

Jump to solution

how to reassign a userTask?

lets assume a userTask is assign to user X and i want to assign this usertask to assign to user y.

i am using that query to assign a task

{"action":"claim","assignee":"userId"}

http://localhost:8080/activiti-rest/service/runtime/tasks/taskId

what is the query to reassign a userTask?

1 Solution

Accepted Solutions
Senior Member

Re: How to Reassign a userTask

Jump to solution

You must call the two REST APIs in order.

1. unclaim

POST runtime/tasks/%taskId%

{
"action": "claim",
"assignee": null
}

2. claim

POST runtime/tasks/%taskId%

{
"action": "claim",
"assignee": %userId%
}

Reference

15.7.5. Task actions

Activiti User Guide 

View solution in original post

2 Replies
Senior Member

Re: How to Reassign a userTask

Jump to solution

You must call the two REST APIs in order.

1. unclaim

POST runtime/tasks/%taskId%

{
"action": "claim",
"assignee": null
}

2. claim

POST runtime/tasks/%taskId%

{
"action": "claim",
"assignee": %userId%
}

Reference

15.7.5. Task actions

Activiti User Guide 

View solution in original post

Active Member II

Re: How to Reassign a userTask

Jump to solution

thank you    
yes you are right Smiley Happy  its work.