Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-2625

allow to use page() and count() together on a query

XMLWordPrintable

      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

              Unassigned Unassigned
              h.peter Peter Horvath (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated: