I have the following that is working. KieServices kieServices = KieServices.Factory.get(); ReleaseId releaseId = kieServices.newReleaseId("com.company", "drools", "0.0.1-SNAPSHOT"); KieFileSystem kfs = kieServices.newKieFileSystem(); kfs.generateAndWritePomXML(releaseId); addRules(kieServices, kfs); KieContainer kieContainer = kieServices.newKieContainer(releaseId); final KieSession kieSession = kieContainer.newKieSession();
Then I want to change to STREAM mode, so I tried to create the session using KieBase, but none of my rules runs using this method (doesn't matter if STREAM or not). I am new to drools, would someone please let me know what is wrong in my code? (full file also attached) // KieBaseConfiguration kieBaseConf = kieServices.newKieBaseConfiguration(); // //kieBaseConf.setOption( EventProcessingOption.STREAM ); // KieBase kieBase = kieContainer.newKieBase(kieBaseConf); // final KieSession kieSession = kieBase.newKieSession(); Old output with session from container: ---- no rule ---- ---- hot-deploy-0.drl ---- DRL started: insertion A inserted mod1 A -> B mod2 B -> A mod1 A -> B ---- hot-deploy-1.drl ---- mod2 B -> A mod1 A -> B New file loaded new mod2 B -> C ---- I am done ---- New output with session from kieBase: ---- no rule ---- ---- hot-deploy-0.drl ---- ---- hot-deploy-1.drl ---- ---- I am done ---- Thanks! Playground4.java <http://drools.46999.n3.nabble.com/file/n4028692/Playground4.java> -- View this message in context: http://drools.46999.n3.nabble.com/How-to-set-streaming-mode-tp4028692.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users