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

Brecht De Rooms bderooms at vub.ac.be
Tue Mar 4 10:42:08 EST 2014


I received an answer on IRC so I thought I'd share it to close this topic.

The scan just automates the updating of the KieContainer and the  
KieContainer is loaded from the jar itself. The jar contains a  
kmodule.xml. In the kmodule,xml you can set the stream vs cloud modus.


On Mon, 03 Mar 2014 20:23:45 +0100, Brecht De Rooms <bderooms at vub.ac.be>  
wrote:

> 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
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


-- 
-------------------------------------------------------------
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