Try using DSL:
[when]temporal EventB=EventB()
[when]temporal EventA=EventA()
[when]-after {period:[0-9]+} EventB=this after[{period}d] $eventB
2009/11/17 Mark Proctor mproc...@codehaus.org
Ming Fang wrote:
Is it possible to make temporal parameters dynamic by using bound
variables?
So, Do you mean that for serializing the state of a StatefulKnowledgeSession
we must include our rules into a ruleflow? How do you upgrade your
KnowledgeBase without loosing the WM state?
Please check this issues:
https://jira.jboss.org/jira/browse/JBRULES-1946
Hi Nair I tried this (see the last comment):
https://jira.jboss.org/jira/browse/JBRULES-1946
The issue is closed, but it still throw me that exception. Try it and check
if it works in your enviroment and feed me back please!
Cheers,
Nestor
2009/10/30 Nair, Mahesh mahesh.n...@qwest.com
Hi,
Did you try setting the attribute @expires(1d) ?
2009/8/31 Francesco Chiarelli chiarelli.france...@gmail.com
Hi!
i'm new to use a drools-fusion, i've a next lhs condition in rule:
$o: Order(status!=EU_C_R1_INIT)
SystemConfig(value:value) from hbnSession.createQuery(from
Hi Justin,
Try this:
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
Resource resource = ResourceFactory.newClassPathResource(MyDrl.drl,
MyClass.class);
kbuilder.add(resource, ResourceType.DRL);
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
Correlator
TimelessSnortRuleRetract
$s1 : Snort( sig_name != (portscan) Open Port) from entry-point
Correlator
$s2 : Snort ( sig_name != (portscan) Open Port , id != $s1.id)
from entry-point Correlator
--- On Wed, 7/22/09, Nestor Tarin Burriel nesta...@gmail.com wrote
see in my code ...
NEStor
2009/7/23 Nestor Tarin Burriel nesta...@gmail.com
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
? I dont
retract any fact ... as you can see in my code ...
NEStor
2009/7/23 Nestor Tarin Burriel nesta...@gmail.com
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
?
myWorkingMemoryEP = ksession.getWorkingMemoryEntryPoint(correlatorName);
for (Fact a : Facts)
myWorkingMemoryEP.insert(a);
--- On Thu, 7/23/09, Nestor Tarin Burriel nesta...@gmail.com wrote:
From: Nestor Tarin Burriel nesta...@gmail.com
Subject: Re: [rules-users] CEP Rule Help Needed
To: Rules
Hi Edson,
Thanks for the fix, but the problem still happens :(
Here my complete .drl file:
package ArgosCorrelator
global com.s2grupo.triton.global.Context Context
declare MyFact
@role( event )
id: java.lang.Long
ip: String
end
rule Rule1
salience 2
dialect mvel
when
Hi Edson,
Thanks for the fix, but the problem still happens :(
Here my complete .drl file:
package Correlator
global com.s2grupo.triton.global.Context Context
declare Snort
@role( event )
icmp_code: String
tcp_sport: String
data: String
sig_rev: String
tcp_dport: String
the inserting method:
ksession.getWorkingMemoryEntryPoint(Correlator).insert(fact);
ksession.fireAllRules();
So I dont understand why my CEP rules never fires ...
Thanks again,
nestabur
2009/7/22 Nestor Tarin Burriel nesta...@gmail.com
Hi Edson,
Thanks for the fix, but the problem still
Yes, :(
Did you see some errors at the rule?
2009/7/22 Greg Barton greg_bar...@yahoo.com
--- On Wed, 7/22/09, Nestor Tarin Burriel nesta...@gmail.com wrote:
So I dont understand why my CEP rules never fires ...
Ah, the eternal lament of the rules developer. :)
Have you tried removing
Thanks Greg,
As you can see in the code I sent, I have the 2 implementations:
SnortRule
$s1 : Snort( sig_name != (portscan) Open Port) from entry-point
Correlator
$s2 : Snort( sig_name != (portscan) Open Port , id != $s1.id,
ip_dst == $s1.ip_dst, this after [5m] $s1) from
Yes,
If I put a non existent package and type, the method getFactType returns me
null value, but if I put the correct package and type it throws that error.
Thanks,
NEStor
2009/3/8 Michal Bali michalb...@gmail.com
your factTypeName should consist of package name + type name, for example:
15 matches
Mail list logo