Create UserService to User Dependency
This page provides directions to create the dependency from
UserService
to
User
using MagicDraw 16.5.
- Open the
Services
class diagram in the
service
package.
- 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.
- 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.
- Select the
Dependency
relationship from the toolbar (5th icon from the common group)
and create a dependency from
UserService
to User.
- Make sure your class diagram matches the one shown on the right.
- Save your
timetracker
model by selectingFile > Save Project.
- 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.