Business Logic in the CML/LitCrit Application

While using the Web-based CML application, a borrower can query for a list of titles and then click a title to see more information about it. In addition to title information and the Request Title button (for checking out the library item), the Details page shows an average of the overall rating values given so far for this title. Previous borrowers gave overall ratings in their critiques, and when their critiques were approved, this value was stored in the review table in the FmLib database.

This CML Web page also displays a reference to the critique in the LitCrit public folder. (If possible this reference is a link that can be clicked, using the stored objectId of the posted critique form. If that is not possible, the reference lists the steps the user takes to read the critique.)

When the CML Details page is displayed (by Ddetails.asp), the server-side Critique COM component is instantiated. Script in a Microsoft Exchange Server Event-Service agent uses CDO to retrieve message properties, and passes these values to the server-side Critique component, which stores them in the FmLib database.

Objects Used in CML/LitCrit

All but one of the six original CML objects (three of them being COM components) are used just as they were originally designed. They are described in this guide's Scenario 1 sections, specifically in About the CML Components within the Design Decisions section.

The only change made to the original objects for the sake of LitCrit functionality is the addition of a single method to the Search component. See New Method in the CML Search Component.

The following new objects were designed for CML/LitCrit:

For comparison, these are the objects this application uses on the client: