[rules-users] How to set a the Kiebase generated by a scanner to streaming modus?

Brecht De Rooms bderooms at vub.ac.be
Mon Mar 3 14:23:45 EST 2014


Dear Drools Users,

     When you create you own KieBase you can set the KieBase to streaming  
as follows:
	KieBaseConfiguration config =  
KieServices.Factory.get().newKieBaseConfiguration();
	config.setOption( EventProcessingOption.STREAM );
     However, when you use a scanner you would create a session as follows:
	    KieServices ks = KieServices.Factory.get();
             KieContainer kieContainer = ks.newKieContainer(releaseId);
             scanner = ks.newKieScanner(kieContainer);
You can't set the Streaming option directly on the session and I assume  
the KieBases will change from the moment a change is detected in the Maven  
package. Then how would you set the KieBases that are 'generated' by teh  
scanner to streaming modus?

Kind Regards,


-------------------------------------------------------------
Brecht De Rooms
Phd Student @ WISE
Department of Computer Science
Vrije Universiteit Brussel
Pleinlaan 2, B-1050 Brussels, Belgium

office: 10 G 731f
phone: +32 2 629 37 49
email: bderooms at vub.ac.be
-------------------------------------------------------------

---
Dit e-mailbericht bevat geen virussen en malware omdat avast! Antivirus-bescherming actief is.
http://www.avast.com



More information about the rules-users mailing list