How to paginate large number of user tasks while retrieving the list of tasks from various methods of TaskClient API in jBPM 5 ?

Solution Verified - Updated -

Issue

  • While using the various methods of TaskClient API to retrieve user and Administrator tasks, it has been seen quite often that the user has large number of tasks to be returned as a result. Users often feel the need to paginate through those large number of results returned from TaskClient API cals (for example retrieve 10 by 10). How can this be achieved?
  • For an example if for a task user have a list of 100 tasks assigned to that user and the developer need to use the TaskClient API call to retrieve the tasks listed to the user. In such a case API call should itself return results in form of paging (i.e. 10 rows per call) . Here is a list of such methods which should be desired to support this kind of paging/pagination feature.
getTasksAssignedAsPotentialOwner(...)
getTasksAssignedAsBusinessAdministrator(...)
getTasksAssignedAsPotentialOwnerByStatus(...)
getTasksAssignedAsPotentialOwnerByStatusByGroup(...)

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 5.3.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.