How to paginate large number of user tasks while retrieving the list of tasks from various methods of TaskClient API in jBPM 5 ?
Issue
- While using the various methods of
TaskClientAPI to retrieveuserandAdministratortasks, it has been seen quite often that theuserhas large number of tasks to be returned as a result. Users often feel the need to paginate through those large number of results returned fromTaskClientAPI cals (for example retrieve 10 by 10). How can this be achieved? - For an example if for a task
userhave a list of100 tasksassigned to thatuserand the developer need to use theTaskClientAPI call to retrieve the tasks listed to theuser. In such a case API call should itself return results in form of paging (i.e.10 rowsper 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
