No count on search method REST API

1
0
-1

Hi, Is this possible with the REST API to use search method without specify the count parameter, and so gets all results ? When I don't put this parameter, I get only 10 results. For example, when I have 13 cases, I want to retrieve all of them without writing in the request the count parameter. Thanks a lot,

Cheers

2 answers

1
+1
-1

Which API are you using?

According to the " List the pending tasks API ," you can define the parameter "c" with the number of records you want to retrieve:

  1. http://localhost:8080/bonita/API/bpm/humanTask?p=0&c=10&f=state%3dready&f=user_id%3d104

c: maximum number of elements to retrieve

Comments

Submitted by fabien.puchol on Tue, 03/03/2015 - 08:40

Hi Randomiopl, I agree with you with this parameter but my problem is I don't know how many results I can have, 10, 100 or maybe 10000000.

1
0
-1

I would recommend to retrieve records in small chunks; otherwise, a large number could affect the performance of the program.

Notifications