]
Huisheng Xu updated JBPM-2625:
------------------------------
Fix Version/s: jBPM 4.x
allow to use page() and count() together on a query
---------------------------------------------------
Key: JBPM-2625
URL:
https://jira.jboss.org/browse/JBPM-2625
Project: jBPM
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.x
Reporter: Peter Horvath
Fix For: jBPM 4.x
Queries provide a powerful interface to access JBPM tasks, jobs, deployments, etc;
currently the only way you can get the number of results that match a filter is to load
the whole list, and determine its size by calling .size() method - this is extremely
inefficient and can even cause OutOfMemoryError (e.g. a HistoryActivityInstanceQuery could
return tens of thousands elements)
count() could be used with page(int firstResult, int maxResults) method to create a
paginated result list where you can display the number of pages
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: