Sparx Systems Forum
Enterprise Architect => Uml Process => Topic started by: Andrew Warner on December 16, 2009, 01:28:48 pm
-
Hi,
is it possible to specify the allowable source and destination Types for a stereotyped Connector in a UML Profile?
I would like to constrain the creation of Connectors with particular stereotypes to the Types that are relevant for them; I don't want to leave it up to the modeller to remember all the relevant types and their connectors.
I haven't been able to find a way of doing that. Only via the quick linker. The trouble there is that it is said that the links have to be part of the same profile as the Types they are linking.
Any thoughts welcome.
Cheers,
Andrew.
-
[size=18]...[/size]
I haven't been able to find a way of doing that. Only via the quick linker. The trouble there is that it is said that the links have to be part of the same profile as the Types they are linking.
[size=18]...[/size]
Hi Andrew,
I'm not sure that this statement is correct. I've got QuickLinker definitions in one profile that link elements not defined in the profile.
Have you actually tried it and it fails?
Perhaps the Sparxians can give a more definitive answer.
However, it seems to me that if you define the link in terms of the metatype with the stereotype, EA should still be able to figure out what's going on.
I'd like to definitively know the answer to this.
HTH,
Paolo
-
Thanks Paolo,
I tried it and it works. I've put a definition for a link between two stereotypes, neither of which is defined in my UML profile and it worked fine. Better, as it happens, than the ones that are defined in the profile but that's another story.
Here's the help text that I based my assumption on. Perhaps I misunderstood it.
The same applies if a profile is included within a technology, with the proviso that the QuickLink element must be in the same profile as the link stereotype definitions. This means that a technology could have a set of Quick Link definitions for each profile.
Thanks again,
Andrew.
-
Thanks Paolo,
I tried it and it works. I've put a definition for a link between two stereotypes, neither of which is defined in my UML profile and it worked fine. Better, as it happens, than the ones that are defined in the profile but that's another story.
Please tell, as I'm interested in this also.
Here's the help text that I based my assumption on. Perhaps I misunderstood it.
[size=18]...[/size]
Yes, I'd understand the same as you. Luckily I hadn't read that before I set up the QuickLinker... ;D
Perhaps Sparxian Roy can confirm/deny our understanding of the Hlep text and whether it is correct or not.
Paolo