[jboss-user] [jBPM] - Re: listing active processes in a persisted and resumed ksession
remohamed
do-not-reply at jboss.com
Tue Apr 24 05:28:05 EDT 2012
remohamed [https://community.jboss.org/people/remohamed] created the discussion
"Re: listing active processes in a persisted and resumed ksession"
To view the discussion, visit: https://community.jboss.org/message/731838#731838
--------------------------------------------------------------
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
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/731838#731838]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120424/0eb5748e/attachment.html
More information about the jboss-user
mailing list