TaskQuery Should allow to .count() Tasks in addition of .list() them
---------------------------------------------------------------------
Key: JBPM-2567
URL:
https://jira.jboss.org/jira/browse/JBPM-2567
Project: jBPM
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.1
Reporter: Adolf Grazou
The interface : "org.jbpm.api.TaskQuery" allows to make queries to the existing
Tasks.
It allows to list the Tasks corresponding to a certain filter.
Currently, the only way to get the number of Tasks corresponding to this filter is to get
the list, then get the size of this list.
That means that for the equivalent of a "count" in the DB, we have to retrieve
the whole list. (which is not optimized).
Maybe adding a .count() method in addition of the .list() method would be interesting.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira