Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: wzr on May 19, 2022, 05:26:52 am

Title: Restrict use of Status Attribute for Stereotypes in MDG Tech
Post by: wzr on May 19, 2022, 05:26:52 am
Hello,

I would like to restrict the available options for the Status attribute of Elements wich are defined as Stereotypes in our MDG Technology.
What is a good way to do that? Maybe stereotype constraints (I couldnt find documentation or examples how to define them)?

Most of our stereotypes have the same status life cycle but some are different.
So first of all I would like to reduce the selectable status values of a stereotype.
In the next step I would like to define constraints for status changes.
Any suggestions to do that?

Thank you!

Title: Re: Restrict use of Status Attribute for Stereotypes in MDG Tech
Post by: Geert Bellekens on May 19, 2022, 06:02:02 am
You'll probably better off defining your own status property.
With an enumeration you can define the possible values.

With regards to the status changes, that's something you'll have to catch and handle using an add-in.

Geert