Validating a Model

The Rose Expert "Validate Model" feature quickly checks consistency and validity of all BEA TUXEDO related information in control classes, structure classes, task modules, and subsystems or component packages in the application model.

If the Rose Expert finds an error during model validation, it displays a popup window describing the error and where it was found. Also, the model object in error is automatically selected in the Rational Rose interface so you can find and correct it more easily.

Since the Rose Expert cannot perform automatic validation while a model is being constructed, we recommend that you run the Rose Expert Validate Model check frequently so that you can detect errors early. For example, it is a good idea to validate the model every time you enter a new class or any significant amount of data.

The validation process is quick-it should take only a few seconds.

To validate a model:

  1. In Rational Rose, make sure the model for which you want to generate code is currently displayed (ApplicationName.mdl) and contains at least one component package.

  2. Choose Tools->BEA TUXEDO Builder->Validate Model from the Rational Rose menu bar.

    This begins the validation process. A popup window is displayed to indicate the progress of the validation. (See Figure 3-6.)

    Figure 3-6 Validating the Model

    If the validation process encounters an error, you get a message describing the problem and where it was found. Also, the model object in error is automatically selected in the Rational Rose interface so you can find and correct it more easily. Figure 3-7 shows an example.

    Figure 3-7 Validation Process Error Message

    If the validation process completes with no errors, you a confirmation window as shown in Figure 3-8.

    Figure 3-8 Validation Succeeded

  3. Click OK to close the window.