Dear Arun ,
i already did this but it doesnt work for the instances that was instantiated befor server down . in other word although there are active instances was started befor the server was down and presisted in DB , when i call knowledgeSession.getProcessInstances() it returns null , it only works if i start a new instance and then try to retrive it using this call but without restaring the server .. am i missing something here .. i did load the seesion after restart and didnt creat new one , is there any thing else i need to do ..
ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionID, kbase, null, env);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task",new CommandBasedWSHumanTaskHandler(ksession
));
ksession.getProcessInstances() >>> null pointer Exception