On Thu, Feb 11, 2010 at 3:54 PM, Wolfgang Laun <[email protected]>wrote:

> There are (at least) two ways of doing this. Both rely on a Java
> thread which will
> call a method at some given time. Such a class for handling timeouts is not
> difficult to write, although handling a large number of simultaneously
> running
> timeouts efficiently requires a little circumspection.
>
> Now, given that you can have an object's method being called at a given
> time,
> you can either write your rules depending on a fact Time with the current
> time
> that is inserted as a result of a timeout expiry, with another fact
> containing the
> required time.   For a periodic task depending just on the hour of the day
> this
> would probably preferable. The other way would be based on an additional
> flag
> in your facts, initialized to false and updated to true by a Timeout
> action, with
> the rule's firing depending on this flag being true.
>
> -W
>
> On Thu, Feb 11, 2010 at 5:55 AM, Yasir Khalid <[email protected]>
> wrote:
> > Hai There,
> > I am curious about a rule that the pattern (LHS) is depended on timing
> > event, what i meant the rule fired on specific time.
> > for example, a dummy and small program that should able to print out
> "Good
> > Morning" for every 8'Clock morning ,
> >
> > I have tried to google and see on the manual, i just could not find any
> idea
> > on how to do it.
> > Thanks
> >
> > --
> > - Yasir -
> >
>
>
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [email protected]'
> in the BODY of a message to [email protected], NOT to the list
> (use your own address!) List problems? Notify [email protected].
> --------------------------------------------------------------------
>
> Yes, i got the idea I think it would be similar with i discussed in other
email.
Thanks for the responds


-- 
- Yasir -

Reply via email to