Questions Tagged With sessionhttps://answers.axonivy.com/tags/session/?type=rss&user=Jailson%20Britoquestions tagged <span class="tag">session</span>enWed, 01 Feb 2017 15:45:36 -0500findWorkTasks() never returns tasks in TaskState.RESUMED statehttps://answers.axonivy.com/questions/2410/findworktasks-never-returns-tasks-in-taskstate-resumed-state<p>Hello. </p> <p>Using engine 6.0.5, I am trying to query tasks that the session user is working or can work on. </p> <p>According to the docs, <a href="http://developer.axonivy.com/doc/6.0.5/publicApi/ch/ivyteam/ivy/workflow/IWorkflowSession.html#findWorkTasks-ch.ivyteam.ivy.workflow.IPropertyFilter-java.util.List-int-int-boolean-java.util.EnumSet-"><code>findWorkTasks()</code></a> can return tasks in states <code>TaskState.SUSPENDED</code>, <code>TaskState.CREATED</code>, <code>TaskState.RESUMED</code>, <code>TaskState.PARKED</code>. </p> <p>When I use it like this: </p> <p><code>result = ivy.session.findWorkTasks(filter, order, first, pageSize, true, EnumSet.of(TaskState.SUSPENDED, TaskState.RESUMED));</code></p> <p>It never returns <code>TaskState.RESUMED</code> tasks, only <code>TaskState.SUSPENDED</code>.</p> <p>Just to double check if I have resumed tasks, I tried the following call and it returns the <code>TaskState.RESUMED</code> tasks. <code>result = ivy.session.findLockedWorkTasks(filter, order, first, pageSize, true, EnumSet.of(TaskState.RESUMED));</code> </p> <p>What am I doing wrong on my use of <a href="http://developer.axonivy.com/doc/6.0.5/publicApi/ch/ivyteam/ivy/workflow/IWorkflowSession.html#findWorkTasks-ch.ivyteam.ivy.workflow.IPropertyFilter-java.util.List-int-int-boolean-java.util.EnumSet-"><code>findWorkTasks()</code></a>?</p> <p>Thanks in advance,</p>Jailson BritoWed, 01 Feb 2017 15:45:36 -0500https://answers.axonivy.com/questions/2410/findworktasks-never-returns-tasks-in-taskstate-resumed-statesessiontask-query