Hi,
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.