[rules-users] Why no auto-retraction after adding this temporal rule?

2013-03-06 Thread Ladd
automatically retracted. Why is that? Thanks for helping me understand this!! - Ladd NoRetractionTest.java http://drools.46999.n3.nabble.com/file/n4022716/NoRetractionTest.java -- View this message in context: http://drools.46999.n3.nabble.com/Why-no-auto-retraction-after-adding

Re: [rules-users] Why no auto-retraction after adding this temporal rule?

2013-03-06 Thread Ladd
laune wrote Also, note that the implementation does not try to analyze beyond time stamps, i.e., the subtle distinctions of the key property are lost. Thanks Wolfgang! That seems to be the kicker alright. I added a short limit to my after and sure enough, the events older than that limit

Re: [rules-users] Remove rule but timer still fires

2012-07-25 Thread Ladd
, ruleName ); where I'm calling: org.drools.rule.Package pkg; pkg.removeRule( rule ); Changing my code to call kbase.removeRule() got rid of the timer!! Awesome! - Ladd -- View this message in context: http://drools.46999.n3.nabble.com/Remove-rule-but-timer-still-fires

Re: [rules-users] retract + @expires == memory leak ??

2012-07-24 Thread Ladd
No comments or workarounds suggested so I created a bug report for it after searching to see if had already been reported. https://issues.jboss.org/browse/JBRULES-3583 -- View this message in context: http://drools.46999.n3.nabble.com/retract-expires-memory-leak-tp4018807p4018869.html Sent

Re: [rules-users] How to retract events that don't match any rules (without @expires())

2012-07-20 Thread Ladd
or example that deals with activation bindings? Thank you!! - Ladd -- View this message in context: http://drools.46999.n3.nabble.com/How-to-retract-events-that-don-t-match-any-rules-without-expires-tp4018760p4018805.html Sent from the Drools: User forum mailing list archive at Nabble.com

[rules-users] retract + @expires == memory leak ??

2012-07-20 Thread Ladd
I tracked down what looks like a memory leak when you retract an event with an explicit expiration. Am I missing something? And if not, is this a known problem? Test classes attached. Thanks! - Ladd http://drools.46999.n3.nabble.com/file/n4018807/MemoryLeakTest.java MemoryLeakTest.java

[rules-users] How to retract events that don't match any rules (without @expires())

2012-07-18 Thread Ladd
retracted./ So my question is, how can I retract events which don't match any rules? Thanks in advance for any tips or suggestsions!! - Ladd -- View this message in context: http://drools.46999.n3.nabble.com/How-to-retract-events-that-don-t-match-any-rules-without-expires-tp4018760.html Sent from

Re: [rules-users] How to retract events that don't match any rules (without @expires())

2012-07-18 Thread Ladd
ARE ACTIVE! ) We need to detect when multiple events are in a given state at the same time. Order doesn't matter. Time between events doesn't matter. Again, thanks for taking the time to help! - Ladd -- View this message in context: http://drools.46999.n3.nabble.com/How-to-retract-events

Re: [rules-users] How to retract events that don't match any rules (without @expires())

2012-07-18 Thread Ladd
at getFirstLeftTuple() and getFirstRightTuple(). I haven't checked it completely, but I would say that if the fact does not participate in any tuple, it might be worthy retracting. That's great info!! Worked like a charm. Once again, thanks guys! You've been extremely helpful. - Ladd -- View

Re: [rules-users] Why does it seem like salience is being ignored? - SOLVED!

2012-07-16 Thread Ladd
Many thanks to Edson, Wolfgang, and Mark. Edson, your solution of modifying the drools-camel component to call fireAllRules() after each insert did the trick. My salience values are now being honored. Thanks guys!! - Ladd -- View this message in context: http://drools.46999.n3.nabble.com/Why

Re: [rules-users] Why does it seem like salience is being ignored?

2012-07-14 Thread Ladd
figured rule with constraint when Message() with a low salience would do that. Since 1a and 1b both evaluate to true in my test, I figured adjusting the salience would adjust the firing order. Thanks for any insight you can offer!!! - Ladd -- View this message in context: http://drools.46999.n3

Re: [rules-users] Why does it seem like salience is being ignored?

2012-07-14 Thread Ladd
: Just found message org.apache.camel.component.bean.pojomessage.Person@14a4067 Thanks for the time guys!! - Ladd http://drools.46999.n3.nabble.com/file/n4018685/SalienceTest.java SalienceTest.java http://drools.46999.n3.nabble.com/file/n4018685/DroolsCamelTestSupport.java DroolsCamelTestSupport.java

Re: [rules-users] Why does it seem like salience is being ignored?

2012-07-14 Thread Ladd
I just tried the same test using 5.3.0 and got the same results. Rule1b fires first. -- View this message in context: http://drools.46999.n3.nabble.com/Why-does-it-seem-like-salience-is-being-ignored-tp4018669p4018687.html Sent from the Drools: User forum mailing list archive at Nabble.com.

[rules-users] Why does it seem like salience is being ignored?

2012-07-13 Thread Ladd
working? Thanks for taking the time to help me out!! - Ladd -- View this message in context: http://drools.46999.n3.nabble.com/Why-does-it-seem-like-salience-is-being-ignored-tp4018669.html Sent from the Drools: User forum mailing list archive at Nabble.com

[rules-users] Remove rule but timer still fires

2012-07-06 Thread Ladd
the API for cancelling or stopping a timer. Can anyone point me in the right direction? Thanks for the help!! - Ladd -- View this message in context: http://drools.46999.n3.nabble.com/Remove-rule-but-timer-still-fires-tp4018509.html Sent from the Drools: User forum mailing list archive

Re: [rules-users] Remove rule but timer still fires

2012-07-06 Thread Ladd
every 2 seconds. Thanks, - Ladd -- View this message in context: http://drools.46999.n3.nabble.com/Remove-rule-but-timer-still-fires-tp4018509p4018513.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing

Re: [rules-users] How to batch high freq events before sending to RHS

2012-07-05 Thread Ladd
one to have their own event batch/list. The name field keeps them unique (probably should change this to something like id). Seems to work. Thanks! - Ladd -- View this message in context: http://drools.46999.n3.nabble.com/How-to-batch-high-freq-events-before-sending-to-RHS-tp4018447p4018492

[rules-users] How to batch high freq events before sending to RHS

2012-07-03 Thread Ladd
() but the best I can do is get the list sent to my RHS each time an event is added to it. I feel like I'm close. Can somebody point me in the right direction? Many thanks in advance!! - Ladd -- View this message in context: http://drools.46999.n3.nabble.com/How-to-batch-high-freq-events-before

Re: [rules-users] How to batch high freq events before sending to RHS

2012-07-03 Thread Ladd
let me know if there's a danger with this approach or if there's a better way to do it. And thanks again! - Ladd -- View this message in context: http://drools.46999.n3.nabble.com/How-to-batch-high-freq-events-before-sending-to-RHS-tp4018447p4018449.html Sent from the Drools: User forum mailing

[rules-users] Trouble wrapping my head around window.length(1)

2012-06-22 Thread Ladd
I'm new to Drools and have what I think should be a simple use case. But I'm getting some puzzling results from my tests. I have a simple class with just a key and value. What I want to detect is when the last occurrence with key X has a value of ALARM and the last occurrence with key Y has a

Re: [rules-users] Trouble wrapping my head around window.length(1)

2012-06-22 Thread Ladd
Thanks a lot for the reply W! I tried your suggested alternative and it worked as I need it to. - Ladd -- View this message in context: http://drools.46999.n3.nabble.com/Trouble-wrapping-my-head-around-window-length-1-tp4018171p4018186.html Sent from the Drools: User forum mailing list archive