cancel
Showing results for 
Search instead for 
Did you mean: 

Rest API for obtaining tasks that are not mine

lucasnt
Champ in-the-making
Champ in-the-making
Hi,
I readed the Activiti UserGuide, but I don't find solution to my problem: "How can I invoke the service runtime/tasks for obtaining tasks that have assignee but it is not me?"

Thank,
Luca
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
You can only query for tasks that are assigned to user X or assigned to nobody (taskUnassigned()), using the TaskQuery. If you want to query all task which are not assigned to a specific user, you can use a NativeTaskQuery for that instead.

lucasnt
Champ in-the-making
Champ in-the-making
So via Rest API, I can't do it; but from engine's inside, yes. Is it correct?

Thanks a lot

frederikherema1
Star Contributor
Star Contributor
yes, you can do that using the Java API, indeed. You can (if you want) extend the REST services and add a new resource that exposes this API-call with the correct native query…