Re: [rules-users] Conditional 'not' invalid for event streams?

2009-08-30 Thread Barry Kaplan
Good evening Edson, I am using insert time -- the event classes have no timestamps properties. BTW, I have git project with all this code, but I don't think this last bit is pushed yet... (http://github.com/memelet/drools-esper/tree/master). Maybe once I've gotten thru the pattersn we can add it

Re: [rules-users] Conditional 'not' invalid for event streams?

2009-08-30 Thread Edson Tirelli
Barry, I did not run the code bellow, but drools uses the temporal distance algorithm to calculate how much time it has to wait on a "delaying not" before activating the rule. So, the first question I have is what are you using as timestamp for the events? the time they are inserted into the

[rules-users] Behavioral differences between session.insert() and entryPoint.insert()?

2009-08-30 Thread Barry Kaplan
I am seeing different behavior whether I insert events directly into session or into a named entry-point. The below rule and test is greenbar'ed: rule "How_do_I_correlate_events_arriving_in_2_or_more_streams?" when $e : WithdrawalEvent($accountNumber : accountNumber, $amount : amount)

[rules-users] An Interesting read on rulebased systems

2009-08-30 Thread James Owen
Check out http://adtmag.com/articles/2005/05/01/proponents-push-business-rules-but-programmers-arent-buying-yet.aspx BTW, if you haven't registered for October Rules Fest yet, this might be a good time to think about doing it. :-) SDG James Owen Founder October Rules Fest Senior Consultant

Re: [rules-users] Not conditional 'not' for event streams?

2009-08-30 Thread Edson Tirelli
For "not" and "exists" on anything but a simple pattern, you need to wrap it up in ( ). So, if you are using "from" you need to wrap up: not ( AbortedEvent(exchangeId == $se.exchangeId, this after[0s,30s] $se) from entry-point "stream" ) []s Edson 2009/8/30 Barry K

Re: [rules-users] Conditional 'not' invalid for event streams?

2009-08-30 Thread Barry Kaplan
After looking at ../integrationtests/test_CEP_DelayingNot.drl I'm getting closer, but not really understanding. I can get a greenbar with the below. However if change the last advanceTime() value to anything less than 30 the test fails. So it seems that the the conditional not clause does not star

Re: [rules-users] Conditional 'not' invalid for event streams?

2009-08-30 Thread Barry Kaplan
Well, I seem to have gotten past the compilation error by using parens: ... not (AbortedEvent(exchangeId == $se.exchangeId, this after[0s,30s] $se) from entry-point "stream") But my rule does not fire as expected. Has anybody formed a rule like this with events?

[rules-users] Not conditional 'not' for event streams?

2009-08-30 Thread Barry Kaplan
I'm trying to formulate a condition like: $se : StartEvent() from entry-point "stream" $fe : FinishedEvent(exchangeId == $se.exchangeId, this after[0s,30s] $se) from entry-point "stream"

[rules-users] Order matters!

2009-08-30 Thread Barry Kaplan
Found my problem. I was invoking kbuilder.add(..) for the declarations /after/ the rules. Simply switching the order fixed the problem. -- View this message in context: http://www.nabble.com/Share-%27declare%27-by-adding-drl-to-KnowledgeBuilder--tp25208077p25216742.html Sent from the drools - u

Re: [rules-users] Drools and Eclipse 3.5

2009-08-30 Thread ekke
I also have best experiences to use the Update Sites from http://labs.jboss.com/tools/download because they are P2 Update Sites and you can choose between stable, development, nightly thx to JBoss Team to provide these sites now online (first sites were only download-sites) ekke Jesper S. Knuds

Re: [rules-users] Drools and Eclipse 3.5

2009-08-30 Thread Jesper S. Knudsen
Hi Michael I had som problems with Eclipse 3.5 and Drools 5.0.1 stabel. But I managed to get the Drools 5.1.0 development to work fine with Eclipse 3.5 I just added the downloaded development version of JBossTools-Update-3.1.0.M2-N200907092133-H355.zip and installed it from this file. Remember

Re: [rules-users] Drools and Eclipse 3.5

2009-08-30 Thread Kris Verlaenen
Yes, the Drools 5.0 IDE plugin should be compatible with both Eclipse 3.4 and 3.5 Kris Quoting J Michael Dean : > Sorry because I am sure this has been answered, but cannot find. > Compelling reasons to switch to Eclipse 3.5 because of recent changes > > to Mac OSX but documentation pretty

[rules-users] Drools and Eclipse 3.5

2009-08-30 Thread J Michael Dean
Sorry because I am sure this has been answered, but cannot find. Compelling reasons to switch to Eclipse 3.5 because of recent changes to Mac OSX but documentation pretty clearly indicates 3.4 for Drools 5.0. Is Drools 5.0 compatible with Eclipse 3.5? - Mike ___