ksession = JPAKnowledgeService.loadStatefulKnowledgeSession( id, kbase, null, env );
processInstance = ksession.getProcessInstance( processInstance.getId() );
assertNotNull( processInstance );
ksession = JPAKnowledgeService.loadStatefulKnowledgeSession( id, kbase, null, env );
ksession.fireAllRules();
processInstance = ksession.getProcessInstance( processInstance.getId() );
assertNull( processInstance );
}
public void testPersistenceEvents() {