Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Boron on September 14, 2018, 11:58:39 pm
-
Hello,
does anybody know how to make a tag read-only?
We created an own UML profile with some stereotypes for classes.
For one stereotype I would like to make one tag "read-only". The tag has a default value, and it would be nice if the user, who creates a class of such a stereotype cannot change the value of that tag.
-
You can create a workflow script that return false to method CanEditTag when the name of the tag match your criteria.
-
Predefined Structured Types (http://www.sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/predefinedtaggedvaluetypes.html)
Type=Const;
Default=Val;
Used to: Create a read-only constant value.
To include this in a profile, see With Predefined Tag Types (http://www.sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/definestereotypetagswithsu2.html).
-
Simons approach worked well.
Many thanks for that.