Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: MichaelHanson on September 18, 2007, 06:34:43 am

Title: Contraining Connectors in UML Profile
Post by: MichaelHanson 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.
Title: Re: Contraining Connectors in UML Profile
Post by: «Midnight» 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
Title: Re: Contraining Connectors in UML Profile
Post by: MichaelHanson on September 18, 2007, 09:49:26 pm
Thanks David, I will take a look at the rules options.

Mike
Title: Re: Contraining Connectors in UML Profile
Post by: KP on September 19, 2007, 02:06:45 pm
Have a look in the help file here: Model Validation Broadcasts
(http://www.sparxsystems.com.au/EAUserGuide/validation.htm). Especially, follow the link on that page to the C# example.
Title: Re: Contraining Connectors in UML Profile
Post by: MichaelHanson 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