[rules-users] System actions available within RHS

jpullmann jaroslav.pullmann at fit.fraunhofer.de
Mon Jul 4 04:17:02 EDT 2011


 ... thank you Wolfgang. Later I came across the sought example [1] for
inserting events into an event stream within RHS. 
The pseudo-clock is obtainable / adjustable via the implicit "drools"
object: 

                SessionPseudoClock c = (SessionPseudoClock)
drools.getWorkingMemory().getSessionClock();
		c.advanceTime(5000, TimeUnit.MILLISECONDS);

  Cheers 
    Jaro

[1]
http://drools.46999.n3.nabble.com/Insert-fact-to-a-stream-in-rule-consequence-td1181392.html

--
View this message in context: http://drools.46999.n3.nabble.com/System-actions-available-within-RHS-tp3129049p3136861.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list