]
Tom Baeyens updated JBPM-2567:
------------------------------
Fix Version/s: jBPM 4.3
(was: jBPM 4.x)
Assignee: Joram Barrez
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
Assignee: Joram Barrez
Priority: Minor
Fix For: jBPM 4.3
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: