cancel
Showing results for 
Search instead for 
Did you mean: 

NativeTaskQuery listpage

vvstraet
Champ in-the-making
Champ in-the-making
According to http://jira.codehaus.org/browse/ACT-1588, there should be support for pagination (listpage() operation) for native Queries in version 5.12.

However, when trying to use this, I find the NativeTaskQuery API:

package org.activiti.engine.task;

public interface NativeTaskQuery extends org.activiti.engine.query.NativeQuery<org.activiti.engine.task.NativeTaskQuery,org.activiti.engine.task.Task> {
}
and the NativeQuery API:

public interface NativeQuery<T extends org.activiti.engine.query.NativeQuery<?,?>, U>   {
    T sql(java.lang.String s);
    T parameter(java.lang.String s, java.lang.Object o);
    long count();
    U singleResult();
    java.util.List<U> list();
}

No listPage() to be found on these interfaces …

My maven imports are - I think - correct to import Activiti 5.12:


<dependencies>
     …
     <!– Activiti –>
     <dependency>
          <groupId>org.activiti</groupId>
          <artifactId>activiti-spring</artifactId>
          <version>5.12</version>
     </dependency>


Am I missing something here or is this feature really not implemented?
2 REPLIES 2

udoderk
Champ in-the-making
Champ in-the-making
According to http://jira.codehaus.org/browse/ACT-1588, there should be support for pagination (listpage() operation) for native Queries in version 5.12.
….

Am I missing something here or is this feature really not implemented?

Hi,
The support of pagination for native queries pull backed :roll:
See also github history with description "Pull back native query paging due to mssql and db2 errors on qa " for the classes

Activiti / modules / activiti-engine / src / main / java / org / activiti / engine / query / NativeQ...
and

Activiti / modules / activiti-engine / src / main / java / org / activiti / engine / impl / Abstract...

The state of issue ACT-1588 is imho not correct

jbarrez
Star Contributor
Star Contributor
Indeed it was pulled back due to not working on other databases.
So paging through native queries is not yet supported (through the API).

I reopened the issue.