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

radai.rosenblatt radai.rosenblatt at gmail.com
Sun Jan 30 02:32:55 EST 2011


how about numbering your ticks ?
as a rough outline, this might look something like:

1st : Tick ($number : num)
2nd : Tick (num == $number+1, {this.value below 1st.value})
3rd : Tick (num == $number+2, {this.value above 2nd.value})

this should find all "bottoms"

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Writing-a-pattern-in-which-each-event-constraint-depends-on-the-previous-event-tp2370165p2382430.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list