Example: Creating Robustness Diagram Extensions

In this example, we will recreate the Robustness extension file delivered with PowerDesigner to extend the OOM communication diagram to enable robustness analysis. Robustness diagrams sit between use case and sequence diagram analysis, and allow you to bridge the gap between what the system has to do, and how it is actually going to accomplish it.

In order to support the robustness diagram, we will need to define new objects by applying stereotypes to a metaclass, specify custom tools and symbols for them, as well as defining custom checks for instance links and producing a file to output a description of messages exchanged between objects.

Creating the robustness extensions will enable us to verify use cases like the following, which represents a basic Web transaction:



A customer wants to know the value of his stocks in order to decide to sell or not, and sends a stock value query from his Internet Browser, which is transferred from his browser to the database server via the application server.

The first step in defining extensions, is to create an extension file (.xem) to keep them in:

  1. Create or open an OOM and select Model > Extensions to open the list of extensions attached to the model.
  2. Click the Add a Row tool to create a new extension file, and then click the Properties tool to open it in the Resource Editor.
  3. Enter Robustness Analysis Extensions in the Name field, and clear the Complement language generation check box, as these extensions do not belong to any object language family and will not be used to complement any object language generation.
  4. Expand the Profile category, in which we will create the extensions:

    Robustness Example Empty Extension File
    For detailed information about creating extension files, see Creating an Extension File.