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:
Yes, that is the purpose ;)
I will try ;)
Thanks 4 your help
2009/7/22 Greg Barton greg_bar...@yahoo.com
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
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 , id
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
On 7/23/09, Olaf Raether o.raet...@epro.de 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
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
Consider adapting to the new API using KnowledgeBuilder etc. You can use a
ObjectOutput/InputStream with write/readObject on
CollectionKnowledgePackage, which simplifies matters somewhat.
See below, two remarks.
On 7/23/09, Olaf Raether o.raet...@epro.de wrote:
I create *.pkg file with the
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 nesta...@gmail.com
Hi again Greg,
I've tried your suggestion and it seems like the facts that
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.
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 cause
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
In my case yes...
2009/7/23 Greg Barton greg_bar...@yahoo.com
So do you mean this didn't work:
myWorkingMemoryEP = ksession.getWorkingMemoryEntryPoint(correlatorName);
for (Fact a : Facts)
ksession.getWorkingMemoryEntryPoint(correlatorName).insert(a);
...but this did?
12 matches
Mail list logo