Author Topic: MDG _subtypeProperty to support multiple tagged values  (Read 4545 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1099
  • Karma: +34/-2
    • View Profile
    • www.umlchannel.com
MDG _subtypeProperty to support multiple tagged values
« on: December 01, 2021, 12:36:39 am »
Hi,

I used while ago the _subtypeProperty attribute in my MDG UML profil to prompt the user to select an enum tagged value when creating the stereotyped element.
This is used for instance in the built-in BPMN MDG on tasks and gateways.

I have a stereotype that uses 2 enum tagged values and it would be great to be able to provide both tagged values in _subtypeProperty  so the user is prompted to select the values for each tag.

Similarly, could there be a way to specify in the toolbox the default values to set on a stereotyped element's tagged values?

Guillaume

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


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7635
  • Karma: +96/-18
    • View Profile
Re: MDG _subtypeProperty to support multiple tagged values
« Reply #1 on: December 01, 2021, 08:39:42 am »
I used while ago the _subtypeProperty attribute in my MDG UML profil to prompt the user to select an enum tagged value when creating the stereotyped element.
This is used for instance in the built-in BPMN MDG on tasks and gateways.

I have a stereotype that uses 2 enum tagged values and it would be great to be able to provide both tagged values in _subtypeProperty  so the user is prompted to select the values for each tag.
I can't think of a way to do this that wouldn't be a horrible user experience. Is it really two types or just something that you want the user to fill in? I would probably just go for a shape script that makes it clear that it's incomplete. Options include a dashed border on the basic shape or a great big red bar across it.

Similarly, could there be a way to specify in the toolbox the default values to set on a stereotyped element's tagged values?
There is an existing mechanism for this. Create a pattern and then use UMLPatternSilent on your toolbox.
Eve

support@sparxsystems.com

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1099
  • Karma: +34/-2
    • View Profile
    • www.umlchannel.com
Re: MDG _subtypeProperty to support multiple tagged values
« Reply #2 on: December 02, 2021, 11:00:50 pm »
Hi Eve,

I did a few tests on integrating silent patterns in the toolbox and it seems to be a valid alternative/solution to what I was looking for.

Thanks  :)
Guillaume
Guillaume

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