In my case yes...
2009/7/23 Greg Barton
>
> So do you mean this didn't work:
>
> myWorkingMemoryEP = ksession.getWorkingMemoryEntryPoint(correlatorName);
>
> for (Fact a : Facts)
> ksession.getWorkingMemoryEntryPoint(correlatorName).insert(a);
>
> ...but this did?
>
> myWorkingMemoryEP = ks
So do you mean this didn't work:
myWorkingMemoryEP = ksession.getWorkingMemoryEntryPoint(correlatorName);
for (Fact a : Facts)
ksession.getWorkingMemoryEntryPoint(correlatorName).insert(a);
...but this did?
myWorkingMemoryEP = ksession.getWorkingMemoryEntryPoint(correlatorName);
for (Fac
Finally I've solved my problem. It was in the engine:
Looking the doc, for inserting a new fact into a stream of the working
memory says:
ksession.getWorkingMemoryEntryPoint("MyEntryPoint").insert();
Which is perfect but not for my enviroment ;), I was inserting the events in
differents WM caus
Thanks so far - i will change the api calls and post my results.
--
View this message in context:
http://www.nabble.com/Problem-when-using-multiple-rule-files-%28Drools-5%29-tp24623347p24626080.html
Sent from the drools - user mailing list archive at Nabble.com.
___
Hi
Find attached working example for CEP rule with the scenario you stated.
Here I used Psuedo clock.
Hope this would help you to understand better.
Regards,
Priya
2009/7/23 Nestor Tarin Burriel
> Hi again Greg,
>
> I've tried your suggestion and it seems like the facts that is the rule
> ch
Consider adapting to the new API using KnowledgeBuilder etc. You can use a
ObjectOutput/InputStream with write/readObject on
Collection, which simplifies matters somewhat.
See below, two remarks.
On 7/23/09, Olaf Raether wrote:
>
> I create *.pkg file with the following app:
>
>
>
I create *.pkg file with the following app:
--
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.ObjectOutputStream;
import java.net.URL;
import or
On 7/23/09, Olaf Raether wrote:
>
> The code looks like this:
>
> RuleBase ruleBase = RuleBaseFactory.newRuleBase();
> for (int i = 0; i < rules.length; i++) {
> Package pkg = getPackage(i);
> ruleBase.addPackage(pkg);
> }
I'd expect to find "Package pkg = rules[i];" or similar in t
Hey,
i have a drl file with round about 100 rules. when i run this single file
everything fine !
When i splip the file into two files and add them seperate into the ruleBase
i get the following Exception
during the inserting of the facts:
java.lang.NullPointerException
at org.drools.base.Clas
Hi again Greg,
I've tried your suggestion and it seems like the facts that is the rule
checking are the same.
This is my last try:
rule "SnortRuleRetract"
dialect "mvel"
when
$s1 : Snort( sig_name != "(portscan) Open Port")
$s2 : Snort ( sig_name != "(portscan) Open Port"
Yes, that is the purpose ;)
I will try ;)
Thanks 4 your help
2009/7/22 Greg Barton
>
> Ah, overlooked that second rule. Have you tried the overlap operator?
>
> So, just to clarify, the purpose of the two rules should be:
>
> SnortRule: If two Snort events that are not port scans of an open p
Hi,
just write this in the 'Field' box: address.street - sure, it's not
perfect (the GUI doesn't let you go deeper and provide the proper fields
to choose), but it's possible.
Cheers,
Jarek
Wishing Carebear wrote:
> Hello:
> I have a facts objects with nested objects : example:
> Emplo
12 matches
Mail list logo