How do I display a "Goodbye" page at the end of a run, or go to another KB?

There are 2 ways to do this. The first uses Corvid Screen commands:

At the end of the run the Corvid applet will display a "System Done" message. This can be replaced with your own screen by selecting to display a screen of Corvid commands. Add a command at the end of your command file. In the Screen Command Builder, click the Results tab and select "Display file of Corvid Screen Commands". Build a screen with any text/images that you wish. Make sure that in the screen the line "BUTTONS: LastScreen" is set. This will eliminate the OK button.

The other way to do it, is to have the HTML page running the applet replaced by another HTML page at the end of the run. This is done by having the system display an HTML page in the same window. Normally, a DISPLAY_HTML command displays the new page in a separate window, but here the idea is to overwrite the current page. Add a command at the end of the Command Block, with a DISPLAY_HTML command (built from the Results tab on the Command Builder) and add "_self" as the target. This would look something like this:

DISPLAY_HTML "your_goodbye_web_page.html,_self"

The command means you are also specifying the window/frame name that the your_goodbye_web_page.html is to be displayed in, and "_self" causes the page to be displayed in the window that the applet was in.

Note: Do this only when the applet is done, since it will close the page running the applet and it cannot continue. If the user hits their Back button to go back to the Web page that holds the applet, the applet will start and run all over again from the beginning. It will not remember anything from the earlier run (unless the expert system wrote data to the database on the server and then retrieves it when it runs the second time).

The same approach can be used to link to a second expert system by calling an HTML page that starts another system. Again, the systems will not share any data unless this is passed via a database.

When using the Corvid Servlet Runtime, the system will go to the specified final screen. Any screen that is not a form or has an action that does not go back to the Corvid servlet, will take the user out of the system. A simple way to do this is to finish a run with a screen that just has a link back to some other place in your Web site.