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&...]