cancel
Showing results for 
Search instead for 
Did you mean: 

Limitation of List Tasks using RESTFUL

sarkar92
Champ in-the-making
Champ in-the-making
today I try get list of tasks which assigned to a user.
If I logged in to "Activiti-Explorer" to see assigned task, there I can see "16" pending tasks.
But when I try get list of tasks using RESTFUL for that user it return only "10" pending tasks.

I am using Activiti 5.9 and to get all tasks I am using below link

http://10.*****:9090/activiti-rest/service/tasks?assignee=caadmin

and it returns



{
  "size": 10,
  "start": 0,
  "order": "asc",
  "sort": "id",
  "total": 16,
  "data": [
    {
      "name": "User Task",

It clearly shows pending tasks is "16" but return only "10".
is it activiti limitation?
if so then how can get all the pending tasks using RESTFUL
5 REPLIES 5

frederikherema1
Star Contributor
Star Contributor
Please read the user guide more thoroughly:


GET /tasks?[assignee={userId}|candidate={userId}|candidate-group={groupId}]&start={start=0}&size={size=10}&sort={sort=id}&order={order=asc}

Use the size-parameter to raise the size of entities you want to have returned. The default is 10

sarkar92
Champ in-the-making
Champ in-the-making
Please read the user guide more thoroughly:


GET /tasks?[assignee={userId}|candidate={userId}|candidate-group={groupId}]&start={start=0}&size={size=10}&sort={sort=id}&order={order=asc}

Use the size-parameter to raise the size of entities you want to have returned. The default is 10


thanks…

b_schnarr
Champ in-the-making
Champ in-the-making
I have the same problem: I tried with
<code>http://host:8080/activiti-rest/service/runtime/tasks?assignee=kermit?start=0?size=100</code>
Then, I get en empty result. Without the parameters, I get 10 insted of 17 results. I use activiti 5.16 Snapshot.

b_schnarr
Champ in-the-making
Champ in-the-making
Sorry, was my fault. Forget about it

mobarkiyasmine
Confirmed Champ
Confirmed Champ

did you find a solution to this question?