I think sivan k wrote:

> 
> On selecting the choice female from a combo box and clicking the ok 
> button in frame1 frame2 should appear based on the rule testframe. The 
> problem is though the fact is asserted and  rule is activated the rule does 
> not fire ie. frame2 does not appear.  Is the way I wrote the rule incorrect.
> 
>  

Jess fires rules only while the function (run) is executing. You're
actually calling (run) at the end of your script, but this call to
(run) is over long before the user pushes the button -- probably
before frame1 actually appears on the screen. (run) returns as soon as
there are no more rules that need to be fired, and at the time you
call (run) there aren't any activated rules, so the function returns
immediately. You want Jess to be running after the fact is asserted.

The easiest thing to do would probably be to change the (run) at the
end of your script to (run-until-halt). Just make sure that's the last
line of your script, because (run-until-halt) won't return until the
program exits or something calls the Jess (halt) function.


---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov


--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to