[rules-users] TimerService vs TimeMachine and date-effective

Mark Proctor mproctor at codehaus.org
Wed Jun 1 16:54:16 EDT 2011


On 01/06/2011 21:37, drdaveg wrote:
> A common issue that I am looking into is setting the execution date to test
> future or legacy rules (i.e., with dates that are not the system date.)  A
> number of users have posted about TimeMachine, TimeServices and the perils
> of setting the system date - but a JIRA lists TimeMachine as being remove
> and TimeServices doesn't look like it has a setter for the execution time.
>
> What is the API for simulating the date to be compared against effective and
> expiration dates of rules that can be used by stateful sessions?
in upcoming drools 5.2, see CR1. TimeMachine was removed. Everything 
should now work around the session clock, where it can use the system 
clock or a pseudo clock.

Mark
> --
> View this message in context: http://drools.46999.n3.nabble.com/TimerService-vs-TimeMachine-and-date-effective-tp3012560p3012560.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>





More information about the rules-users mailing list