Skip to content

Lab 1

Basic usage and introduction to UML Models and Diagrams

What we want to achieve in this lab a short introduction how to use DevOps Model Architect. You will get an overview how to use the Modeling Perspective and a simple intro into UML Models and Diagrams.

Start DevOps Model Architect and Switch to Modeling Perspective

  1. Doubleclick on the icon for "IBM DevOps Model Architect" on the Desktop

dma

  1. Select a workspace folder for Eclipse. You can for example call it dma_workspace_YOURNAME.

Eclipse Workspace Dialog

  1. The first time you open a new workspace you will get the Welcome Page. Close it by pressing the Workbench button in the upper right corner.

Welcome Page

  1. Next switch to the Modeling Perspective
  2. Click on the Menu "Window" on top of Eclipse

    Menu Window

  3. Click on Open Perspective then on Other

    Open Perspective Other

  4. Dialog opens with list of perspectives

    Open Perspective Other

  5. Scroll down and Select "Modeling" from the list

    Open Perspective Other

  6. The Modeling Perspetive opens. You can also switch Perspectives using the icon on the top right corner

    Open Perspective Other

Create a project

  1. Click on Create a new Model Project or Create Project

Create a new Project

Create a new Project

  1. In the case you selected "Create a Project" a wizard will be shown.
  2. Search and select the modeling project type

Select Projecttype

Select Modelingproject

  1. Provide a name for your new project.

Projectname

  1. Select "General" from Categegories and "Blank Package" from Templates

BlankPackage

  1. Have a look at your freshly created new Project

Freshly created Project

Basic UML Models and Basic UML Diagrams

  1. If Project is collapsed, click on the > symbols to expand Project and Elements

Project Explorer

Uncollapse Project

Uncollapse Models

  1. Add new Class to Model by right clicking the Package and select the class entry in the UML menu

Right Click on Package

Right Click on Package

  1. This creates a fresh new class. Name this new class "Customer"

Newly created class

name class Customer

  1. Next add a new attribute to this class using the context menu of the element and name it "custID"

add attribute to class

newly created attribute

name attribute

  1. Now create an additional attribute and name it "custName"

name attribute

  1. Create a new Diagram to manage all customer related model artifacts and name it "CustomerStore_Class"

create new diagram for customer

newly created diagram

name the new diagram

  1. Add our "Customer" class to this diagram by using the context menu of the item

add class to diagram using context menu

class is added to diagram

  1. Don't forget to save all your changes!

How to import existing artifacts

  1. Right click Project to open context menu and select Import

Context Menue for importing

  1. In this lab we want to import from the filesystem, please select "file system" in the wizard dialog

Wizard - select "file system"

click on Next 3. In the file system dialog browse for the "Simple-Model" folder from your repository

File System dialog

click on Browse and select "Simple-Model"

Select folder

click on Open 4. The Import dialog opens

Import Simple-Model

  1. Select the folder on the left (checkbox) and the model file will be automatically selected.

Import Simple-Model folder selected

  1. Click on Finish to start the import
  2. The modeling artifact is imported and "SimpleUMLModel" is shown.

Import Result

  1. Double-click on the newly created Model and a migration dialog will open as the artifacts were created with older version.

Profile Migration 1

Just accept the default settings and the diagram will be opened

open simple model 1

  1. To have a better view, right click on the canvas to open context menu and select "Arrange All"

Arrange on canvas

result of new arrangement

How to add a new UML artifact to existing diagram

  1. Adding new UML artifacts to a diagram can be done by using the "Palette" or the context menue of the diagram.
  2. First we will use the "Palette"
  3. On the right side of DevOps Model Architect you will find the "Palette" menue.
  4. Click on "Class" entry to get all UML class types available

    Add new Class from Palette

  5. Drag and drop the "Class" element from the Palette to the open diagram.

  6. A fresh new class is added and the name is selected for change. Change the name to "APPF2"

    new class and name

  7. Now we want to create a relationship from "APPF2" to "AppFunction1"

    1. click and drag the "incoming" icon to "AppFunction1"

    new class and name

    new class and name

  8. A new dialog opens and use "Create Instance" type

    new relation

  9. The relation "create instance" is established between these two elements

    final relation

  10. Do not forget to save your changes!

Conclusion of Lab 1

In this Lab we have been introduced how to use DevOps Model Architect to create a project, work on simple diagrams and import existing artifacts.