Author Topic: Adding checklist tagged value to profile stereotype  (Read 4841 times)

DanielB

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Adding checklist tagged value to profile stereotype
« on: February 13, 2018, 10:29:18 pm »
Hi,

I've added Enumeration class as a new tagged value to my custom stereotype in an MDG I'm creating. How do I make this tagged value a checkilst (multiple selection) instead of single select? Should I change the type of Tag?

At the moment it looks like this in an XML file:
Code: [Select]
<Tag name="NAME" type="enumeration" description="" unit="" values="A,B,C" default="A"/>
Thank you in advance.

Regards,
Daniel
« Last Edit: February 14, 2018, 12:21:02 am by DanielB »

Arshad

  • EA User
  • **
  • Posts: 285
  • Karma: +19/-1
    • View Profile
Re: Adding checklist tagged value to profile stereotype
« Reply #1 on: February 13, 2018, 10:39:25 pm »
Hi Daniel

 For checklist please try

Code: [Select]
Type=CheckList;
Values=Val1,Val2,Val3;


Please define your own tagged value with checklist type and add it in the stereotype.


To Create tagged value from pre defined type
http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/create_tagged_values.html

For more details please refer Predefined Types
http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/predefinedtaggedvaluetypes.html

HTH
Arshad
« Last Edit: February 13, 2018, 10:43:12 pm by Arshad »

DanielB

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Re: Adding checklist tagged value to profile stereotype
« Reply #2 on: February 13, 2018, 10:48:50 pm »
I had tried this before posting a thread but it didn't seem to work:

Code: [Select]
<TaggedValues>
  <Tag name="NAME" type="CheckList" description="" unit="" values="A,B,C" default="A"/>
</TaggedValues>

still single selection.
« Last Edit: February 14, 2018, 12:20:37 am by DanielB »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Adding checklist tagged value to profile stereotype
« Reply #3 on: February 14, 2018, 11:56:53 am »
I had tried this before posting a thread but it didn't seem to work:

Code: [Select]
<TaggedValues>
  <Tag name="NAME" type="CheckList" description="" unit="" values="A,B,C" default="A"/>
</TaggedValues>

still single selection.
Hi Daniel,
If you started off with a single selection enumeration and now want a (simple) multiselection set then a type CheckList is NOT what you need.  EA implements a CheckList as a TRUE Checklist (I got "sucked in" the same way).  Re-read the definition referenced by Archad.  IIRC there is currently no mechanism to create a multiselection set.

In addition, IIRC there are issues with the current implementation of CheckList.  I posted a topic about it within the last year, I think.

Paolo

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!