assertTrue(events.isEmpty());
}
public void testPersistenceSubProcess() {
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add( new ClassPathResource( "SuperProcess.rf" ),
ResourceType.DRF );
kbuilder.add( new ClassPathResource( "SubProcess.rf" ),
ResourceType.DRF );
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
kbase.addKnowledgePackages( kbuilder.getKnowledgePackages() );
EntityManagerFactory emf = Persistence.createEntityManagerFactory( "org.drools.persistence.jpa" );