in my application ,I have disposed the session, and I'm using persistent sessions, how can I reload it ,I don't know how to do it.
Please help ,thanks very much!
I have solved the problem ,
using WorkItem after completing the task :
long proID = task.getProcessInstanceId();
workItemID = getWorkItemIdbyTaskId(task.getId());
then It will work properly.