[jboss-dev-forums] [jBPM Development] - jBPM: issue with getting TaskSummary from BlockingTaskSummaryResponseHandler

Navin Maheshwari do-not-reply at jboss.com
Tue Aug 21 09:06:35 EDT 2012


Navin Maheshwari [https://community.jboss.org/people/navinpmjboss] created the discussion

"jBPM: issue with getting TaskSummary from BlockingTaskSummaryResponseHandler"

To view the discussion, visit: https://community.jboss.org/message/754812#754812

--------------------------------------------------------------
Hello All,

we are getting random behavior for getting jbpm task from BlockingTaskSummaryResponseHandler object. we are using jbpm-human-task-5.2.0.Final.jar from JBPM 5.2 with jboss 7.0.2.

below is my codeblow which behaviour is not expected, i am not able to get tasksummary everytime, sometimes its return task but sometime due to multiple call,  transaction is not returning value,

     BlockingTaskSummaryResponseHandler taskSummaryHandler = new BlockingTaskSummaryResponseHandler();
     taskClient.getTasksAssignedAsPotentialOwner(role.get(0),"en-UK", taskSummaryHandler);

     for(*TaskSummary task : taskSummaryHandler.getResults()*)
     {
                if(task.getProcessInstanceId() == processInstanceId && task.getName().equalsIgnoreCase(activity) && task.getStatus().toString().equalsIgnoreCase(toStatus))                  
                    this.task = task;
                if(null != this.task)
                    break;
     }

anyone has any suggestionm please help? we have doubt whether jbpm transaction management is not working properly. Do we need to do any change? please suggest.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/754812#754812]

Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120821/5ce1cf9e/attachment.html 


More information about the jboss-dev-forums mailing list