Description of problem: I receive all the active process instances, when I want to get only four of them via query REST operation though I set the paging parameters: http://localhost:8080/business-central/rest/query/runtime/process?processinstancestatus=1&s=4&p=0 I tried also pagesize and page parameters but nothing changed the list of process instances that I received. However, the paging of tasks work. A similar paging issue in tasks was reported in BZ 1074322. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Fixed. Commits: 6.2.x: https://github.com/droolsjbpm/droolsjbpm-knowledge/commit/85b1dfa0 https://github.com/droolsjbpm/jbpm/commit/ff9c9d42 https://github.com/droolsjbpm/jbpm/commit/80d29fd5 https://github.com/droolsjbpm/droolsjbpm-integration/commit/8343c93f master: https://github.com/droolsjbpm/droolsjbpm-knowledge/commit/5ac9f77a https://github.com/droolsjbpm/jbpm/commit/2cc74902 https://github.com/droolsjbpm/jbpm/commit/61b47a99 https://github.com/droolsjbpm/droolsjbpm-integration/commit/20f27090 Caveat: paging for the REST task rich query is not performant. See: https://github.com/droolsjbpm/droolsjbpm-integration/blob/8343c93f6367e2724e6f85daa733175687530d7a/kie-remote/kie-remote-services/src/main/java/org/kie/remote/services/rest/query/InternalTaskQueryHelper.java#L71 I will open a new BZ to address this and post the link here.
See https://bugzilla.redhat.com/show_bug.cgi?id=1184521 for the performance paging bugzilla mentioned in the last comment.
Verified in BPMS 6.1.0.ER5