Re: [rules-users] dynamic temporal parameters

2009-11-17 Thread Nestor Tarin Burriel
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?

Re: [rules-users] Maintaining DB/Working Memory Synchronization

2009-11-08 Thread Nestor Tarin Burriel
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

Re: [rules-users] Serialization of the StatefullKnowledgeSession

2009-10-30 Thread Nestor Tarin Burriel
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,

Re: [rules-users] sliding time in lhs

2009-09-01 Thread Nestor Tarin Burriel
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

Re: [rules-users] Adding rules at runtime

2009-08-27 Thread Nestor Tarin Burriel
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();

Re: [rules-users] CEP Rule Help Needed

2009-07-23 Thread Nestor Tarin Burriel
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

Re: [rules-users] CEP Rule Help Needed

2009-07-23 Thread Nestor Tarin Burriel
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

Re: [rules-users] CEP Rule Help Needed

2009-07-23 Thread Nestor Tarin Burriel
? 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

Re: [rules-users] CEP Rule Help Needed

2009-07-23 Thread Nestor Tarin Burriel
? 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

Re: [rules-users] CEP Rule Help Needed

2009-07-22 Thread Nestor Tarin Burriel
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

Re: [rules-users] CEP Rule Help Needed

2009-07-22 Thread Nestor Tarin Burriel
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

Re: [rules-users] CEP Rule Help Needed

2009-07-22 Thread Nestor Tarin Burriel
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

Re: [rules-users] CEP Rule Help Needed

2009-07-22 Thread Nestor Tarin Burriel
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

Re: [rules-users] CEP Rule Help Needed

2009-07-22 Thread Nestor Tarin Burriel
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

Re: [rules-users] Creating fact instance programatically

2009-03-09 Thread Nestor Tarin Burriel
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: