[rules-users] Accumulator function

2010-03-10 Thread Glenn Macgregor
Hi All, I am building an accumulator function to get the maximum value with a limit, so for instance I have need to find the highest negative (closest to 0 without being positive). I am calling the accumulator maxnegative, I have created the function but can't seem to figure out how to get the

Re: [rules-users] Rule looping question

2010-03-10 Thread Glenn Macgregor
threshold than the one in $tholdBreach that still satisfies our other criteria. There's probably an easier way, but hopefully that will give you some ideas! Hope it helps, Enda 2010/3/10 Glenn Macgregor mailto:gmacgre...@pocketkings.ie>> Hi All, I am in the process of creating some

[rules-users] Rule looping question

2010-03-10 Thread Glenn Macgregor
Hi All, I am in the process of creating some rules for a POC I am doing using drools, having some issues understanding why I have an infinite loop in a rule. Rule in question: rule "Check Parameter Threshold Update Breach" no-loop true when ParameterUpdateEvent($name : n

Re: [rules-users] Event Streams

2010-02-16 Thread Glenn Macgregor
Glenn From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Glenn Macgregor Sent: 16 February 2010 16:44 To: Rules Users List Subject: [rules-users] Event Streams Hi All...again, I am slowly working through my testcase and it seems to be going OK so far

[rules-users] Event Streams

2010-02-16 Thread Glenn Macgregor
Hi All...again, I am slowly working through my testcase and it seems to be going OK so far. My question is about stored events, @expires set to 1d for instance, and processing rules. declare ParameterUpdateEvent @role(event) @expires(1d1h) End rule "Print Average" no-loop tru

Re: [rules-users] CEP Question

2010-02-16 Thread Glenn Macgregor
is inserted, this does not seem to be using the >sliding window. Why does adding the advanceTime call cause this to happen. At >the end of the day these rules do need to be time based and I do need to test >them using JUnit. Thanks Glenn From: rules-users-boun...@lists.jboss.org [m

Re: [rules-users] CEP Question

2010-02-16 Thread Glenn Macgregor
there? Edson 2010/2/15 Glenn Macgregor mailto:gmacgre...@pocketkings.ie>> Hi All, I am still working through a CEP use case which is going fairly well. I have a few rules and it seems they are working as I expect. Is there a way to get called back when events go out of a time wind

Re: [rules-users] CEP Question

2010-02-16 Thread Glenn Macgregor
-users] CEP Question Hi Glen, The averages are indeed recalculated on event expiration. Example: You have values for the following events: e1: 20 e2: 30 e3: 40 So the average is 30. Whenever e1 is expired in your window, the average is recalculated to 35 (assuming no new event

[rules-users] CEP Question

2010-02-15 Thread Glenn Macgregor
Hi All, I am still working through a CEP use case which is going fairly well. I have a few rules and it seems they are working as I expect. Is there a way to get called back when events go out of a time window? My current use case is alerting, I have a stream of events (param updates) coming in

[rules-users] CEP Rule question

2010-02-12 Thread Glenn Macgregor
Hi All, Thanks for all the help so far I could not have gotten this far this fast without it. I have a couple questions regarding windows, accumulate and CEP. * Is this a valid rule: $param : Parameter(name == "testParam") $uEvent : ParameterUpdateEvent(name == $param.name, $value : valu

Re: [rules-users] CEP Error

2010-02-10 Thread Glenn Macgregor
...@lists.jboss.org To: Rules Users List Sent: Wed Feb 10 18:18:57 2010 Subject: Re: [rules-users] CEP Error Hi, It says that the $param is null so $param.name<http://param.name>() cannot be called regards Nicolas 2010/2/10 Glenn Macgregor mailto:gmacgre...@pocketkings.ie>> Hi All, I h

[rules-users] CEP Error

2010-02-10 Thread Glenn Macgregor
Hi All, I have a simple CEP test case which I am working through. I am currently getting a NullPointerException in the Consequence and have no idea why. Rule: rule "Param Update Event Rule" when $pue : ParameterUpdateEvent(name == "testParam2", $param : param) from entry-point

[rules-users] Usage Question

2010-02-09 Thread Glenn Macgregor
Hi All, I am in the process of evaluating Drools to use in a networks & systems management project. Some of the initial use cases are listed below. Use Cases: 1. Simple single parameter thresholds with configurable warning and error levels. 2. Simple multi parameter thresholds fro

[rules-users] Dynamic Rules

2010-02-08 Thread Glenn Macgregor
Hi All, Just getting started using Drools and I have a question about dynamic rules. I have written a simple application based on one of the tutorials. Rule: rule "basic rule" when Account($balance : balance < 100) then