Book a Demo

Author Topic: SoaML modelling: instance of class: How to set?  (Read 11459 times)

mhag

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
SoaML modelling: instance of class: How to set?
« on: September 03, 2009, 10:41:38 pm »
Hi,
I have a service architecture with a participant class called TransportUser and a ServiceContract called Booking. This ServiceContract is composite. In this service Contract, I want to have an instance of the TransportUser class called for instance Booker. How do I set up this relation? I mean, the relation between the class TransportUser and the instance Booker.  

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: SoaML modelling: instance of class: How to set
« Reply #1 on: September 03, 2009, 10:50:07 pm »
I don't know about SoaML and whether or not this changes anything to the normal way of doing things, but here is how this is normally done:

To create an object as in instance of a class you can Ctrl-drag the class from the Project browser to a diagram. That should give you a dialog allowing you to select "instance of".
If you already have an object and you whish to make it an instance of a class then you right click on the object, select "Instance Classifier" and select the class.

Geert

mhag

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: SoaML modelling: instance of class: How to set
« Reply #2 on: September 04, 2009, 06:53:39 pm »
Thank you very much; that helped a lot!

Another question:

when dragging and dropping a service contract to an existing service contract, I can chose either "Apply ServiceContract Type" or "Add Service Contract". The last one is easy to understand, but what happens when choosing Apply ServiceContract Type"  ??

- Marianne