Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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.
-
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
-
Thanks David, I will take a look at the rules options.
Mike
-
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.
-
Thanks for that pointer.
I was hoping to do it with OCL in the profile, but this offers a good alternative.
Mike