I am working with Visio 2003; full name is Microsoft Office Visio for Enterprise Architects (11.8328.8405) SP3.
I have 2 classes Job and Task. These are the rules:
Job has 1 or more corresponding Tasks.Task cannot exist without a Job.This is the Class Diagram I have build which includes 2 classes and 1 composition association:
Now I am trying to build Object Diagram. Suppose I have a Job Close Payroll which has 3 Tasks:
I created the Object Diagram this way so far:
The problem I am having is with the associations in Object Diagram. I was expecting that the association between Job and Task will automatically show in Object Diagram as the way it has been defined in Class Diagram. But it did not happen. What I am doing wrong here? Do I have to define that association again in Object Diagram? I hope not.
Thanks
Instances are no classes and thus do not have associations. Instances are connected via Links which are not Associations but instantiations of the latter. See also uml-diagrams.org