Author Topic: Contraining Connectors in UML Profile  (Read 3984 times)

MichaelHanson

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
  • EA is the best
    • View Profile
Contraining Connectors in UML Profile
« on: September 18, 2007, 06:34:43 am »
Apologies is this is a FAQ, I did search for other posts on subject but only came up with release notes.

Is it possible in a UML profile to constrain connecting one stereotype to another, or are we stuck with the constraints on the metaclass the stereotype extends.
Mike Hanson
Microsoft Technology Specialist

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Contraining Connectors in UML Profile
« Reply #1 on: September 18, 2007, 07:33:05 am »
You can create custom rules, for application when you validate a model.

I don't know if these can be applied at the level of a profile. Nor do I know whether you can set them to be interactive, so they are invoked when you actually connect things.

David
No, you can't have it!

MichaelHanson

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
  • EA is the best
    • View Profile
Re: Contraining Connectors in UML Profile
« Reply #2 on: September 18, 2007, 09:49:26 pm »
Thanks David, I will take a look at the rules options.

Mike
Mike Hanson
Microsoft Technology Specialist

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Contraining Connectors in UML Profile
« Reply #3 on: September 19, 2007, 02:06:45 pm »
Have a look in the help file here: Model Validation Broadcasts
. Especially, follow the link on that page to the C# example.
The Sparx Team
[email protected]

MichaelHanson

  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
  • EA is the best
    • View Profile
Re: Contraining Connectors in UML Profile
« Reply #4 on: September 19, 2007, 09:57:07 pm »
Thanks for that pointer.

I was hoping to do it with OCL in the profile, but this offers a good alternative.

Mike
Mike Hanson
Microsoft Technology Specialist