AnsweredAssumed Answered

TaskQuery to get all open tasks for the logged in user

Question asked by paiyyavj13 on Oct 23, 2018

Hi,

I am working on APS enterprise-

I am trying to get all active open tasks for the logged in user and all also would need the process variables-

 

I used taskService to create a taskQuery as below:

It works fine- but only returns limited processes- not more than 300, maybe even less(290 odd)

 

An example taskQuery for getting the candidate tasks is as below:

tasks = taskService.createTaskQuery().taskCandidateGroupIn(userGroupsString).orderByTaskCreateTime().asc()
.includeProcessVariables().listPage(0, intSizeAssignment);

 

where-

userGroupsString is a List<String> of Group Ids the logged in user belongs to

intSizeAssignment is the page size programmatically used

 

Is there a programmatic way of getting all open tasks of a user along with the process variables?

 

Any help woud be appreciated- Thank you...

 

Regards.

Outcomes