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 lim
ot I inject events with key 'A' or 'B', no events of any kind
are ever 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 mess
gName, 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-s
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 fro
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
novice. Could you point me to a doc 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 ma
ls.common.InternalFactHandle and look 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.
faultType1", this after f1 )
f2 : MyEvent( key == "faultType2", value == "ALARM" )
not MyEvent( key == "faultType2", this after f2 )
then
System.out.println( " BOTH FAULTS ARE ACTIVE!" )
We need to detect when multiple events are in a give
nstraints from which to derive the
expiration offset will have an infinite expiration offset, i.e., will never
be automatically 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 t
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
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.
Jim
rule1b: 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
DroolsCamelTestSu
quot; rule that catches all messages that haven't
been "caught" by other rules. So every message in evaluates at least one
rule to true. I 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
then \n";
rule += "System.err.println( \"rule1a: Just found person \" +
$p.getName() ); \n";
rule += "end\n";
*Output:*
rule1b: Just found message
org.apache.camel.component.bean.pojomessage.Person@1133fd6
rule1a: Just found person Bob
rule1b: Just found mes
fire 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 ma
d 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 archi
; rules like this, I need each 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-hig
ring() );
}
end*
Please 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
Se
ccumulate, and "over
window:time()" 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.nabbl
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
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" ha
21 matches
Mail list logo