4 Replies Latest reply on Dec 10, 2014 3:51 AM by bennixview

    unable to retrieve results when getTasksAssignedAsPotentialOwner

    skulled

      Hello,

       

      I can't get tasks of user by userID with the method : getTasksAssignedAsPotentialOwner(userId, language,  TaskSummaryResponseHandler). But with the same java code with another database it works.

      I do a "select * from jbpm_peopleassignments_potown where entity_id = 'myuserid';" in my database and I get results.

       

      I don't understand why this code return no results :

       

      Java code :

      BlockingTaskSummaryResponseHandler task = new BlockingTaskSummaryResponseHandler();

      client.getTasksAssignedAsPotentialOwner( userId, "en-UK", task );

      List<TaskSummary> tasks = task.getResults();

       

      Error log :

      java.lang.RuntimeException: Timeout : unable to retrieve results

          at org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHandler.getResults(BlockingTaskSummaryResponseHandler.java:41)

      ...

       

      Please help me.

       

      Thanks