Book a Demo

Author Topic: MDG tagged value boolean vs Boolean  (Read 4256 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
MDG tagged value boolean vs Boolean
« on: December 06, 2022, 02:42:38 am »
Hi,

When I have a boolean tagged value to add to an MDG stereotype, I create a predefined tagged value with the Boolean type.
As a result the tagged value is rendered with a drop down list to select between True and False.

I noticed from an older MDG that it is also possible to define a boolean tagged value by applying the boolean data type on the stereotype Class' attribute (as explained on qwerty site here: http://tvandesijpe.blogspot.com/2011/04/creating-mdgpart-1-create-uml-profile.html)
The difference is that the values are lowercase i.e. true, false.

Are these just 2 alternatives with a different result (True/False vs true/false) ?

Thanks
Guillaume
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: MDG tagged value boolean vs Boolean
« Reply #1 on: December 06, 2022, 03:23:02 am »
Well, that's not my blog (I have none at all).

Anyhow, case match or no case match. That's the EA question. Sometimes it is important. Sometimes not. So you have to experiment and trust the outcome. As long as the next EA version comes up.

q.
« Last Edit: December 06, 2022, 03:29:45 am by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: MDG tagged value boolean vs Boolean
« Reply #2 on: December 06, 2022, 04:22:54 am »
I personally don't trust either method. I create my own enumeration (True, False, and sometimes TBD) and use that for my tagged values.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: MDG tagged value boolean vs Boolean
« Reply #3 on: December 06, 2022, 05:35:57 am »
Nailed! As you said this, I'm also doing it this way (but probably only when the TBD is involved).

q.

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: MDG tagged value boolean vs Boolean
« Reply #4 on: December 06, 2022, 06:20:40 pm »
Thank you for your feedback  :)
Guillaume

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