[jboss-user] [jBPM] - Re: How to make a process instance go on with jBPM5?

Melih Cetin do-not-reply at jboss.com
Tue Aug 9 08:23:56 EDT 2011

Melih Cetin [http://community.jboss.org/people/mscetin] created the discussion

"Re: How to make a process instance go on with jBPM5?"

To view the discussion, visit: http://community.jboss.org/message/620092#620092


I restore a session using JPAKnowledgeService.loadStatefulKnowledgeSession (copy/paste from org.jbpm.integration.console.CommandDelegate which looks like a workaround) and re-registering work item handlers using WorkItemManager.registerWorkItemHandler method. What I notice is; these handlers are invoked for any newly created process instance but they are not invoked for process instances created before re-storing the session. (Human Task handler - CommandBasedWSHumanTaskHandler works with no problem though). Do I need to do anything extra to associate existing process instances with the handlers? 

I am testing this scenario by deploying a web application that uses jBPM to Glassfish, enabling persistence and stopping and starting the application server in between.

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110809/d50a845c/attachment.html 

More information about the jboss-user mailing list