UML Deployment Diagram Tutorial

UML Deployment Diagram depicts deployment of artifacts on nodes. It is used for showing the placements of artifacts (software, system, module, etc.) on physical nodes (hardware, server, database, etc.) and the relationships between particular parts of the solution.

Deployment Diagram in UML

A deployment diagram is a structure UML diagram. It shows the solution architecture using nodes, components, artifacts, and their dependencies.
Deployment Diagram in UML
Deployment Diagram in UML

Deployment Diagram Symbols

Software Ideas Modeler offers tools for following elements of a deployment diagram:

  • Node - is depicted as a 3d block. It represents a computational unit - either a hardware resource (device) or a software container (e.g. operating system, server). A node provides an execution environment for software modules and components.
  • Artifact - is an integrated piece of information that can be generated or used by a process or a module. An artifact can be a file, a document, a card, etc.
  • Component - it represents a module, a system part, or an application. It includes one or more classifiers that form a replaceable unit.
  • Association
  • Dependency
  • Generalization
  • Deploy
  • Manifest

Deployment Diagram Overview

UML Deployment Diagram Overview
UML Deployment Diagram Overview

How to Draw a Deployment Diagram?

You can create a new deployment diagram in multiple ways:

  • Click on a Plus button in the tab switch bar, navigate to UML group and click on the UML Deployment Diagram item
  • Press CTRL+SHIFT+D, choose Deployment Diagram from the UML group, enter the name and click on the OK button.
  • Switch to Project tab in the ribbon and click on the Deployment Diagram item in the Content gallery.
  • Open Project sidebar, right-click on a project (or a folder) node, and in the Add Diagram submenu, choose UML Deployment Diagram.
Create a new UML deployment diagram
Create a new UML deployment diagram

How to Draw Deployment Diagram Elements?

How to Draw a Node?

  • Click on the Node button in the Deployment Diagram group in the toolbox.
  • Specify the bounds of the new node by dragging on the diagram canvas. A node may be nested in another node.
  • If you want to add a node with the default size, just click on a diagram canvas and the node will be inserted to the specified position. You can also drag the Node tool button from the toolbox and drop it over the diagram canvas, also over another node to create a nested hierarchy.
  • If you want to insert multiple nodes in a row, double click (or click twice) on the Node button in the toolbox and draw so many nodes as you want in the diagram editor. If you do not want to add others, press the ESC key, or click to the Selection tool button.

How to Draw a Component?

  • Click on the Component button in the Deployment Diagram group in the toolbox.
  • Specify the bounds of the new component by dragging on the diagram canvas. A component may be nested in a node.
  • If you want to add a component with the default size, just click on a diagram canvas and the component will be inserted to the specified position. You can also drag the Component tool button from the toolbox and drop it over the diagram canvas, also over a node, if you want to nest it there.
  • If you want to insert multiple components in a row, double click (or click twice) on the Component button in the toolbox and draw so many components as you want in the diagram editor. If you do not want to add others, press the ESC key, or click to the Selection tool button.

How to Draw an Artifact?

  • Click on the Artifact button in the Deployment Diagram group in the toolbox.
  • Specify the bounds of the new artifact by dragging on the diagram canvas. An artifact may be nested in a node.
  • If you want to add an artifact with the default size, just click on a diagram canvas and the artifact will be inserted to the specified position. You can also drag the Artifact tool button from the toolbox and drop it over the diagram canvas, also over a node, if you want to nest it there.
  • If you want to insert multiple artifacts in a row, double click (or click twice) on the Artifact button in the toolbox and draw any number of artifacts in the diagram editor. If you do not want to add others, press the ESC key, or click to the Selection tool button.

How to Draw an Association?

  • Click on the Association button in the Deployment Diagram group in the toolbox.
  • Drag from an element to another element. The inserted association is undirected.
  • Another way you can insert an association between two elements is to click on the Association button in the toolbox and drag it in between two elements. The diagram editor shows you which two elements will be connected when you release the button.
  • If you want to insert multiple associations in a row, double click (or click twice) on the Association button in the toolbox and draw the desired number of associations in the diagram editor.

New Comment

Comment