[
https://jira.jboss.org/jira/browse/JBPM-2567?page=com.atlassian.jira.plug...
]
Tom Baeyens commented on JBPM-2567:
-----------------------------------
Koen, note that if count() is called, the hql has got to be changed significantly.
I want to review a first query (preferrably before you check in, depending on how sure you
are) before you roll out the solution to all queries
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:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira