Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: DASHBY88 on January 16, 2024, 10:26:48 pm

Title: Profile Constraint for multiplicity
Post by: DASHBY88 on January 16, 2024, 10:26:48 pm
I was wondering if there is a way to constrain a developed MDG profile to restrict the number of relationships that can be created between Stereotypes.

As far as I can tell there is not at least without using Addins but would love to not.

For example (bad), a <<Level2>> Requirement may only be derived from a single <<Level1>> requirement.
Title: Re: Profile Constraint for multiplicity
Post by: Geert Bellekens on January 16, 2024, 11:16:08 pm
No, not easily; at least not when working with connectors.

You could do that easily if you replaced the connector with a tagged value reference.
That is guaranteed to be limited to a single element.

Another way would be to use the classifier/instance relation (less applicable in this case I guess)

Geert
Title: Re: Profile Constraint for multiplicity
Post by: DASHBY88 on January 19, 2024, 08:00:40 pm
Thank you for confirming my thoughts Geert.