Create UserService to User Dependency
This page provides directions to create the dependency from
UserService
to
User
using RSM.
- 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.
- Right-click on the
User
class. Uncheck
Filter > Display / Hide Compartment > Attributes compartment
and
Filter > Display / Hide Compartment > Operation compartment. This will close the attribute and operation
compartments.
- Select the
Dependency
relationship from the toolbar (7th icon from the class diagram 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 double-clicking on
timetracker.emx
and clicking on
File > Save
(Ctrl + S).
-
SelectFile > Export.... Choose
UML2 Model
and then click onNext.
As
source
select
/TimeTracker/timetracker.emx
and as
destination
browse to C:\timetracker\mda\src\main\uml.
Please go back to the main tutorial page and continue from where you left off.