I found issue in my code. I was closing the session before CommandBasedHumanTaskHandler was updating the process instance details in database. Its working fine now. but I found another issue in process execution itself (how Gateway diverge and Gateway converge works in jBPM). I will create a separate discussion thread for that.