Hello again,
I'm back on my problem and a colleague of mime suggested me the following
rule instead :
# declare events
declare Operation
@role(event)
@timestamp(date)
end
rule overActivity
dialect mvel
when
#condition : 2 operation in less than 1 minute
* $operation1
Hello Edson,
Ok, it's clear now.
I'll try my first attempt with the new 5.1M2 version.
Thank you very much !
Best regards,
Xavier
2010/5/27 Edson Tirelli tire...@post.com
Xavier (and others),
First, let me explain the problem: the temporal distance algorithm in
5.0.1 was not
Hello Wolfgang,
sorry, I wasn't available yesterday.
I just followed your instructions:
Here's my test method now :
@SuppressWarnings(unchecked)
@Test
public void testActivity() throws IOException, ParseException,
InterruptedException {
// parse the log file
Hello,
I'm new to Drools (5.0.1) and i've tryied the following (basic) fusion rule
for a few days now without success.
The rule is to determine if a user performs 2 operations in the sliding
window of 60s. In such a condition, a log message should be triggered.
Here is my DRL code :
# declare
You are inserting Operation facts, interleaved with advancing the clock,
both of which correctly updates the agenda and eliminates the facts that
are pseudo-too-old to matter.
But you are never goiving the Engine a chance to fire - until it is
pseudo-too-late.
Either you call
Hello Wolfgang,
Thanks for you answer. I changed my JUnit test method to the following :
@Test
public void testActivity() throws IOException, ParseException,
InterruptedException {
// parse the log file
Resource logFile = new ClassPathResource(
Try this sequence:
advance clock from 0 to Fri Apr 30 18:26:47 CEST 2010
insert 1st operation
advance clock to next time
insert 2nd operation
fireAllRules
-W
2010/5/17 Xavier Coulon xcou...@gmail.com
Hello Wolfgang,
Thanks for you answer. I changed my JUnit test method to the following :