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
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
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)
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
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
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
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?
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"
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
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
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
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
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
___
13 matches
Mail list logo