Author Topic: Create read-only tag in an UML profile  (Read 3565 times)

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Create read-only tag in an UML profile
« 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.

Mauricio Moya (Arquesoft)

  • EA User
  • **
  • Posts: 341
  • Karma: +8/-4
  • EA Consulting and development in Spanish
    • View Profile
    • Arquehub Azure Module
Re: Create read-only tag in an UML profile
« Reply #1 on: September 15, 2018, 03:18:52 am »
You can create a workflow script that return false to method CanEditTag when the name of the tag match your criteria.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Create read-only tag in an UML profile
« Reply #2 on: September 17, 2018, 09:16:18 am »
Predefined Structured Types
Quote
Code: [Select]
Type=Const;
Default=Val;
Used to: Create a read-only constant value.

To include this in a profile, see With Predefined Tag Types.
« Last Edit: September 17, 2018, 11:48:25 am by Simon M »

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Re: Create read-only tag in an UML profile
« Reply #3 on: September 18, 2018, 04:45:35 pm »
Simons approach worked well.
Many thanks for that.