As Wolfgang pointed out, the fist and third pattern can be matched by the
same event, leading to your self-joined activations. I would add:
eventReq2 : EventRecord( id != $eventReq.id, . )
As for the reason why the "cross" join does not lead to an activation: could
you please post the "declar
On 11/04/2012 08:05, skatta1986 wrote:
> Hi,
>
> Please any one let me know if there is any followed by operator in Drools. I
> want to correlate an event with another event which follows the first event.
>
> Esper supports this by using followed by (->) operator.
> Example in esper:
> "select r1.
You have 2 EventRecord events with (apart from id) identical
attributes. If they have the same timestamp, they are concurrent and
both satisfy the relations expressed by your condition.
In this situation, using the timestamps Drools adds during insertion
is risky - you aren't analyzing "true" time
Actually I have tried this operator "after", but doesn't work properly as the
events are inserted into working memory one by one within fraction of
seconds.
Consider EventRecords EventRecord(name=katta, eventType=REQUEST, id=1),
EventRecord(name=katta, eventType=EVENT_UN_AUTHORIZED, id=1) and
Eve
There are several temporal operators, as described in the "Drools
Fusion" manual.
Most likely, the corresponding one is the "after" operator.
-W
On 11/04/2012, skatta1986 wrote:
> Hi,
>
> Please any one let me know if there is any followed by operator in Drools. I
> want to correlate an event w
Hi,
Please any one let me know if there is any followed by operator in Drools. I
want to correlate an event with another event which follows the first event.
Esper supports this by using followed by (->) operator.
Example in esper:
"select r1.name as name,r1.userIPAddress as ipaddress,count(*)