[rules-users] Sliding time windows and interval-based events

2011-02-17 Thread OlliSee
Hi there, I can't seem to find a hint in the documentary about WHEN an event is considered to be recognized by a sliding time window. I tried it out myself with an event with a duration of 5000 (= 5s) and a rule with a sliding time window of just 1s. So the event can never be completely

[rules-users] Drools Server 5.1.1 - Something wrong with the XStream Marshaller

2011-02-09 Thread OlliSee
Its impossible to add an out-identifier (which is pretty bad). The JSON Marshaller works fine, though. Can I get a clean implementation somewhere? Exception: Exception in thread main java.lang.NullPointerException at

[rules-users] How to obtain the timestamp of an event if I don't use an @timestamp attribute?

2011-02-07 Thread OlliSee
Yeah..the topic subject explains itself, I presume :) -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/How-to-obtain-the-timestamp-of-an-event-if-I-don-t-use-an-timestamp-attribute-tp2443366p2443366.html Sent from the Drools - User mailing list archive at

Re: [rules-users] Accumulating over a list of collected events (bug?)

2011-02-06 Thread OlliSee
Yes, you're right, Wolfgang. As I only use fast-and-easy-to-understand rules on the forum, I truncated some of the actual rule because I thought this wouldn't have an effect. Strangely, it does. In my rule, there is, like in yours, another easy pattern before the collect statement. -- View this

Re: [rules-users] timer and duration

2011-02-06 Thread OlliSee
No I don't modify any LoopDetectorEvent.Actually, in some situations the rule fires even more than two times for some Sensors. I don't use the logger. I just do System.out.println's to see when a rule fires. . If you need any more info, then I will use the logger for you. What information might

[rules-users] Accumulating over a list of collected events (bug?)

2011-02-05 Thread OlliSee
Hi folks, another bug discovered here? This rule yields a really nice exception rule Test when $list : List() from collect ( A() over window:time(5s) ) Number($avg : doubleValue) from accumulate( A($num : num) from $list, average($num)) then

Re: [rules-users] Drools Server 5.1.1 - can't run test.jsp

2011-02-04 Thread OlliSee
Thank you. I found the main problem, though. In the camel-client.xml, the route points to cxfrs://http://localhost:8080/drools-server-app/kservice/rest but cxfrs://http://localhost:8080/drools-5.1.1-server/kservice/rest is right. Then it works, if I also apply your little hint. Thanks. Now

Re: [rules-users] timer and duration

2011-02-04 Thread OlliSee
Hello folks. Got a new characteristic unveiled,... if I have a rule like this (with Fusion in STREAM mode)... (Sensor is a fact) rule Test timer(int: 7s 7s) when $sensor : Sensor() Number($avg : doubleValue 0.0) from accumulate

[rules-users] Drools Server 5.1.1 - can't run test.jsp

2011-02-01 Thread OlliSee
Hi there. I was trying to setup the Drools Server. As I understand, this is not a server per se, its just the usual Drools with some framework plumbing. But I appreciate not having to do that myself. But I can't get it to work. I imported the .war file into my Eclipse and tried to deploy it to

Re: [rules-users] Drools Server 5.1.1 - can't run test.jsp

2011-02-01 Thread OlliSee
HI Esteban, thanks for your hint.. But it didn't work out.. startup was fine again, now only without that INFO. But still impossible to run the test.jsp. There's still this single warning (WARNUNG) in the log. Does that happen to be a problem? Anyone got ideas? -- View this message in context:

Re: [rules-users] Writing a pattern in which each event constraint depends on the previous event

2011-01-30 Thread OlliSee
@Greg: Could you hand me a link to that discussion? @Wolfgang: I guess you are referring to the list I use. Of course I expect them to be ordered by timestamp. -- View this message in context:

[rules-users] Sliding window of length (1) equals latest event?!

2011-01-29 Thread OlliSee
Hey again everyone, I seem to be having another problem. When I have a rule like that when A() over window:length(1) B() over window:length(1) then ... I imagine now having two windows of length 1. One always keeping the latest A event and one always keeping

[rules-users] Writing a pattern in which each event constraint depends on the previous event

2011-01-29 Thread OlliSee
Hello everyone. Lets say we have StockTicks... Is it possible to detect a monotonically decreasing StockTick stream over a window? If I knew the number of events I want to check on, I'd do it this way $a : StockTick() over window:time(20s) $b : StockTick(this after $a, price $a.price)

[rules-users] Writing a pattern in which each constraint for an event depends on the previous event

2011-01-28 Thread OlliSee
Hello everyone. Lets say we have StockTicks... Is it possible to detect a monotonically decreasing StockTick stream over a window? If I knew the number of events I want to check on, I'd do it this way $a : StockTick() over window:time(20s) $b : StockTick(this after $a, price $a.price) over

[rules-users] Sliding length window of (1) equals latest event?!

2011-01-28 Thread OlliSee
Hey again everyone, I seem to be having another problem. When I have a rule like that when A() over window:length(1) B() over window:length(1) then ... I imagine now having two windows of length 1. One always keeping the latest A event and one always keeping the

[rules-users] Why won't this work? (Conjunction + Disjunction over a set)

2011-01-10 Thread OlliSee
Hello there and a happy new year to everyone reading :) Why am I here again? Yep, got a problem. Don't know why it doesn't work. I'm using the latest snapshot version. So here it goes. A simple rule with conjunction and disjunction but over a set of events. when $ldes

[rules-users] timer and duration

2010-12-09 Thread OlliSee
Hello there. I seem to have trouble with the timer operator which is documented to have superseded the duration operator for use in the rule body. I might have something to do with the not operator I use in my rule. Scenario: A is a fact, B is an event When I write something like this rule

Re: [rules-users] timer and duration

2010-12-09 Thread OlliSee
I ran a few more tests and it seems that duration is also not capable of achieving the expected results. If you have a lot of different A objects in the example, and a few more complex conditions in the LHS, the rule will only fire for a few A objects, omitting the rest, when the duration timer

Re: [rules-users] timer and duration

2010-12-09 Thread OlliSee
Thanks, unfortunately not working, either. Maybe it will help, if I describe the scenario more detailed. I have three A facts inserted at the beginning. Then the rule fires the first time after 5 seconds for every A fact and inserts the B events. Then I retract ONE of the B events, but the rule

Re: [rules-users] forall not delivering as expected

2010-11-26 Thread OlliSee
Hi there, I'm experiencing the same problem using Drools 5.1.1 Whats the status on this? By the way. It also doesn't work the other way round with not (exists(X(y != z))) which is basically the same as forall($x : X() X(this == $x, y == z) ) If this is still a problem,