On Thu, Feb 11, 2010 at 1:18 PM, Ernest Friedman-Hill <[email protected]>wrote:

> Look at question 9 in the FAQ:
>
> http://www.jessrules.com/jess/FAQ.shtml#Q9
>
> The example is not working for me, It doesnt fire any rule.  but I got some
ideas out of  this example, which definitely i should use for the timing
event.

Just make your "idle" fact include the current time (you can use Jess's
> "time" function to get it). Then you can write rules that match the current
> time as included in this fact.
>
>
>
Since, the example is not working for me. then I could not try out for my
problem.  But I have tried similar other thing, I think i would use shadow
fact as the 'idle fact' as you mentioned,  and this fact will be
modified/changed in a method of  the javabean class that basically ast the
timer (TimerTask class) .

But before that i have tried simple shadow facts example from here
http://www.jessrules.com/jess/docs/52/language.html, but  i got an error as
shown below
* Message: No method named 'setName' found in class ExampleBean.
*I am not sure why i got this error, any idea ?*
*
I just need to this shadow fact working and then i will try to change the
fact from javabean class.

Thanks in advance,

>
> On Feb 4, 2010, at 12:39 PM, Yasir Khalid 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 browse and see on the manual, i just could not find any
>> idea on how to do it, I am even a 'dirty' program, which create recursive
>> function which is called itself, and it has if statement to check the is it
>> 8'Clock, plus dummy rule, which call the that particular function, and what
>> i got long bunch of run time error(Obvious... )
>>
>> So is there any suggestion ?
>> --
>> - Yasir -
>>
>
> ---------------------------------------------------------
> Ernest Friedman-Hill
> Informatics & Decision Sciences, Sandia National Laboratories
> PO Box 969, MS 9012, Livermore, CA 94550
> http://www.jessrules.com
>
>
>
>
>
>
>
> --------------------------------------------------------------------
> 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].
> --------------------------------------------------------------------
>
>


-- 
- Yasir -

Reply via email to