JBoss Community

unable to retrieve results when getTasksAssignedAsPotentialOwner

created by Skulled Field in jBPM - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in jBPM at Community