Create UserService to User Dependency

This page provides directions to create the dependency from UserService to User using MagicDraw 16.5.

  1. Open the Services class diagram in the service package.
  2. From the Containment Tree on the left, drag the User class on to the diagram. Warning: It is important to bring in the existing User class from the domain package into this diagram. Don't create a new User class in this diagram.
  3. Click on the User class to select it. You will see two "minus" icons on the left. Click on each of these icons. This will close the attribute and operation compartments and the entity will take of the shape of a circle.
  4. Select the Dependency relationship from the toolbar (5th icon from the common group) and create a dependency from UserService to User.
  5. Make sure your class diagram matches the one shown on the right.
  6. Save your timetracker model by selectingFile > Save Project.
  7. Export it in EMF/UML2 format by selectingFile > Export > EMF UML2 (v2.x) XMI File. Choose C:/timetracker/mda/src/main/uml as export directory and clickExport.

Please go back to the main tutorial page and continue from where you left off.