Missing data can occur on two levels: attribute and iteration. The missing description in the Dishwasher classes shows what happens at the attribute level: IBM® Rational® Rhapsody® ReporterPLUS is able to extract classes from the model, but not all of the classes have data for all of the attributes specified in the template. There might also be missing data on the iteration level. For example, if you open a model that has no object model diagrams, then generate a document with a template iterating over object model diagrams, the template tries to extract object model diagrams, but there are none.
In this section, you learn how to control whatRational Rhapsody ReporterPLUS does when data is missing from a model at either the attribute or the iteration level.
The «No Model Data» message is the default behavior of the product when attributes are missing from a model. To change that behavior to something more specific, follow these steps:
When the model is missing an element that an iteration is attempting to extract, the default behavior is to skip the iteration and print nothing for that iteration in the generated document. However, there might be instances when you want to know that the model does not contain an element. You can print heading or body text when an iteration cannot find the specified model data.
Because your template is fairly simple—it extracts only diagrams and classes—in order to see how this option works, you need to add a generic element to the template that you know does not exist in the Dishwasher model.
Do the following: