[jboss-user] [jBPM] - From where taskClient.getTasksAssignedAsPotentialOwner(user, "en-UK", taskSummaryHandler); picks up the tasks

Rajan Bansal do-not-reply at jboss.com
Fri Sep 23 10:18:24 EDT 2011

Rajan Bansal [http://community.jboss.org/people/rajan01] created the discussion

"From where taskClient.getTasksAssignedAsPotentialOwner(user, "en-UK", taskSummaryHandler); picks up the tasks"

To view the discussion, visit: http://community.jboss.org/message/628258#628258

I am running the HumanTaskService in JBoss and its persistence is done in my Oracle db.
but when I run process with "UserTasks" in it, and it successfully runs through end.

*My ques is when I call the "taskClient.getTasksAssignedAsPotentialOwner(user, "en-UK", taskSummaryHandler);"*
 *then from where it picks up the data,* 
*1. from session?*
*2. or from db?*

If it picks it from *session*, then please tell me how i persisted the session of the whole "ProcessInstance" in my db and picks the pending task from there. 

Below is the code used to pick and complete the "UserTask". 

          TaskClient taskClient = new TaskClient(new MinaTaskClientConnector("MinaConnector",
           new MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
           taskClient.connect("", 9123);

          BlockingTaskSummaryResponseHandler taskSummaryHandler = new BlockingTaskSummaryResponseHandler();
          taskClient.getTasksAssignedAsPotentialOwner(user, "en-UK", taskSummaryHandler);

          TaskSummary task1 = taskSummaryHandler.getResults().get(0);
          BlockingTaskOperationResponseHandler taskOperationHandler = new BlockingTaskOperationResponseHandler();
          taskClient.start(task1.getId(), user, taskOperationHandler);
          taskClient.complete(task1.getId(), user, null,  taskOperationHandler);

Rajan Bansal

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110923/06cc226a/attachment-0001.html 

More information about the jboss-user mailing list