[rules-users] Define a time event
Christine
christine at christine.nl
Wed May 7 07:27:58 EDT 2008
> Hi everyone,
> For example:
> when Time(hour==22,minute==0) Lamp(status==1)
> then
> Console.Writeline("It's late,turn off the light and go to bed")
> where time is a class that return the current hour;
Claudio, this would probably work if you fire the rules every hour or
every minute or every time your Time object changes. Just having the rules
sitting in your rulebase doesn't mean they get executed.
Christine
More information about the rules-users
mailing list