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
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
, 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
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
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
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
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
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
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
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
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
: 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
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.
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
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
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
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
() 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
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
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
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
21 matches
Mail list logo