Description of problem: Accessing http://localhost:8080/business-central/rest/task/query?language=en-UK&pageSize=5 returns all tasks in the database. If there are 10 then 10 will be in the returned list. Expected results: Only the first 5 tasks should be in the returned result. Additional info: See attached screenshot which defines pageSize=1.
Created attachment 872453 [details] screenshot
I also noticed that the tasks are not sorted. It might improved UX if the tasks where sorted based on ID.
Fixed. Waiting for flags to cherry-pick to 6.0.x. Commits: master: https://github.com/droolsjbpm/droolsjbpm-integration/commit/79231d84
BTW, good catch, Marek!
Fixed on 6.0.x. Commits: https://github.com/droolsjbpm/jbpm/commit/0e63010d https://github.com/droolsjbpm/jbpm/commit/c307845b https://github.com/droolsjbpm/droolsjbpm-integration/commit/c83287c2 https://github.com/droolsjbpm/droolsjbpm-integration/commit/8de5aa59 https://github.com/droolsjbpm/droolsjbpm-integration/commit/b5ac771d FYI: the max number of results that a query will now return has been limited to 1000. I can't imagine that returning more than 1000 results is practical.
Verified in BPMS 6.0.2.ER2