Creating UML models

Depending on the complexity of the system or application that you are modeling, you might choose to create a single model or several models. You can create empty models or use an existing model or model template as a starting point.

Before you begin

You must have a project in order to create a UML model. To create a project, click File > New > Project and choose a type of project. You can add a UML model to any type of project, but the Model project is the default type for UML modeling.

About this task

The IBM® Rational® Software Architect Designer provide several templates that you can use to create content for particular types of model. When you create a UML model from a template, the new model contains diagrams and elements from the template, which you can then edit or add to. Models created from templates also inherit other settings from the template, such as which capabilities are enabled for that model. The templates that are available depend on the features that you installed and the capabilities that are enabled in the workbench.

Similarly, you can create a new model using an existing model as a template. In this case, the elements, diagrams, and capabilities are copied from the existing model into the new model.

Procedure

  1. From the Modeling perspective, click File > New > Model.
  2. In the Model wizard, on the Create Model page, click Standard template to create the model from a template (including the blank template for an empty model), or click Existing model to create the model from a model in your workspace.
  3. Click Next.
  4. If you are creating the model from an existing model, select that model in the Select a model file field, give the new model a name and location, and click Finish.
  5. If you are creating the model from a template, follow these steps:
    1. Under Categories, select a category of template.
    2. Under Templates, select the template to use. If you want to start with an empty model, select the General category and the Blank Package template. If you don't see the template you want to use, select the Show All Templates check box to show templates that are hidden because their capabilities are disabled.
    3. Give the new model a name and a location.
    4. Click Next.
      Note: The wizard that you use to create a model from a template contains several pages; the pages differ depending on the type of model template that you select. For example, you can only specify default diagrams or referenced projects for certain templates.
    5. Depending on the template, fill in the information on the next page or pages of the wizard. You may need to select the type for the default diagram, the capabilities to associate with the model, the type of package to create in the model, or whether to add the model to a working set.
  6. Click Finish.

Results

The new model is added to the selected project and is displayed in the Project Explorer view. Some templates include instructions, which are displayed in the diagram editor when the new model opens.

Feedback