[rules-users] A Drools CEP Scenario - did I get it right?
amarok
mail at alexander-wolf.net
Wed Sep 11 14:53:32 EDT 2013
PseudoClockScheduler clock;
private void advance( Date eventDate ){
long currentTime = clock.getCurrentTime();
long eventTime = eventDate.getTime();
clock.advanceTime( eventTime - currentTime, TimeUnit.MILLISECONDS );
}
This simple but great piece of code should make it into the documentation!
Thank you laune!
--
View this message in context: http://drools.46999.n3.nabble.com/A-Drools-CEP-Scenario-did-I-get-it-right-tp4025863p4025918.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list