[rules-users] Drools pipeline API

2014-03-10 Thread GrantWang
Hi, I am new to Drools and have couple of questions: 1. I found the following in document: The Drools pipeline API has several adapters and helpers to do that as well as examples on how to do it. Could someone please send me a link to this Drools pipeline API. I did a search but couldn't find

Re: [rules-users] Drools pipeline API

2014-03-10 Thread GrantWang
Thanks, Mark. Would you please help with my 2nd question, i.e. the best way to monitor several directories and load DRL files on the fly in Drools 6.0 release? Best regards. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-pipeline-API-tp4028616p4028625.html Sent

Re: [rules-users] Drools pipeline API

2014-03-11 Thread GrantWang
Thanks! Now I know how to load a file. Really helps. Another question, is there a way in drools to monitor a directory? Like when our business team load some .drl files to a pre-defined directory, my app can detect that and load the files into existing sessions. Can I use kieScanner to do that?

[rules-users] How to set streaming mode

2014-03-13 Thread GrantWang
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();

[rules-users] Programmatically load rules classloader NullPointerException

2014-03-18 Thread GrantWang
Hello, I was trying to build a kie module and programmatically load DRL rules at runtime. But I found for any new event type I wanted to monitor, I had to add @rule(event) when I 1st created the module. If I didn't, I would get the following exception when I tried to updateToVersion. My java

Re: [rules-users] Programmatically load rules classloader NullPointerException

2014-03-20 Thread GrantWang
Would someone please help with this? Did I do something wrong or is this a bug? I am using 6.0.1. Thanks! -- View this message in context: http://drools.46999.n3.nabble.com/Programmatically-load-rules-classloader-NullPointerException-tp4028783p4028827.html Sent from the Drools: User forum

[rules-users] Sliding window full length question

2014-03-20 Thread GrantWang
Hi, I found the following statements in Drools document: Sliding windows start to match immediately and defining a sliding window does not imply that the rule has to wait for the sliding window to be full in order to match. For instance, a rule that calculates the average of an event property on