Book a Demo

Author Topic: Mandatory tagged values  (Read 3804 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Mandatory tagged values
« on: March 05, 2014, 05:50:19 am »
Hi,
I defined a number of tagged values in a stereotype through a UML profile. I don't seem to find a way to set some tagged values as mandatory.

Is it possible to forbid a tagged value to be empty?

Thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Mandatory tagged values
« Reply #1 on: March 05, 2014, 06:18:01 am »
I haven't heard of such an option. You might look for model consistency validation check. If that does not support it you might need to script it.

q.
« Last Edit: March 05, 2014, 09:11:27 am by qwerty »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Mandatory tagged values
« Reply #2 on: March 05, 2014, 08:47:22 am »
The closest you'll be able to come is to write model validation rules.

UML has guidelines that recommend multiplicity lower bounds not be enforced to allow for incomplete models. Writing validation rules seems to be an appropriate way to deal with this

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Mandatory tagged values
« Reply #3 on: March 05, 2014, 06:18:56 pm »
Hi,

you may use a default value.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)