Book a Demo

Author Topic: Why can I not create an Attribute of a stereotype  (Read 4646 times)

MagnusOfSweden

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Why can I not create an Attribute of a stereotype
« on: March 18, 2012, 03:31:44 am »
Hi,

I'm a beginner struggling with UML profiles. I have 3 main issues right now

1. In an UML Profile I want to create a new stereotype 'Q&A' that contains two attributes
  - Question = preferably I would like to have a pre-defined drop-down list of strings (enums) where the strings are defined outside the UML profile. These questions are Re-usable assets. How to do?

  - Proof = a Memo text field where you note down proof to your answer (the answer to the question is written in the Notes)
                    

2. This Q&A I then use in many different types of elements that I want to define in my UML Profile, like Market Segment, Customer Segment, Assessment, etc.

So how can I define an attribute inside a stereotype in a UML Profile that uses another stereotype defined in same/different UML Profile? I can't get this to work? After importing the UML profile and using it (e.g Market segment) in a diagram trying to edit the Q&A Tagged Value - it acts like a string value. Howver, if I add a Tagged Value to the object (outside the UML profile) it works like a charm.


3.  The attribute 'Proof' above (of type Memo) doesn't work when I try to define it directly in the Attribute window (in the UML Profile).

Do you have to go via the Settings>UML Types...define a tagged type called Proof (with Type=Memo) and then use that type in the UML Profile?

If so there will be many, many Tagged Types in Settings>UML Types.

Can these tagged types be removed if you turn the UML Profile(s) into a MDG (MTS file) and load it instead?

I hope this makes sense, cos' I make no sense at all right now with my testing  >:(

Thanks in advance  -Magnus

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile

MagnusOfSweden

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Why can I not create an Attribute of a stereot
« Reply #2 on: March 18, 2012, 11:51:30 am »
Well, it definitely address some of the problem. Since I'm new to EA, I haven't made a MTS file every time, but rather just updated the UML profile only, and then re-imported it. This I thought was a faster way of testing my new profile...but it's probably my big mistake  ;)

Still my basic question is how I create a new element inside a UML profile, which is also used by other elements in the same (or another UML profile). For every stereotype created, DO I have to create a matching user defined tagged value using Settings<UML Types... also?

To define that I would use the Type=RefGUID; Is that the only way, or is there a way to do this from "inside" the UML profile?

I first thought that that was why you used the profile relationship Tagged Value link, as I expected the Tagged Value link's name to appear in the Tagged Values window. This doesn't happen. At least not if I only stay on the UML Profile level and skip generating the MTS file. What am I doing wrong?

How do I insert a (Snipping tool) picture in this thread to show you a snapshot of my UML profile diagram?

Please bare with me and my basic questions...-Magnus      

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Why can I not create an Attribute of a stereot
« Reply #3 on: March 18, 2012, 11:51:42 pm »
To insert pictures you need to upload them to a a common provider (e.g. imageshack) and embed the link in your post via the 3rd icon.

q.

MagnusOfSweden

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Why can I not create an Attribute of a stereot
« Reply #4 on: March 19, 2012, 01:07:09 am »
Thx

here is my trial profile


and as I said, trying to understand why the taggedValue link "cannot be" used. Shouldn't it show up as a Tagged Value attribute 'Key Value Arguments' in the element Value Proposition, or am I wrong?

So, have I understood it correctly, that I need to create a matching user defined tagged value using Settings<UML Types... for each element attribute?

I've also noticed that when I use the Type=RefGUID; and click on the [...] to choose an object - should I choose to Create New, that window is not pre-loaded with the correct Stereotype. Instead you need to locate the type in a very long list of Stereotypes. Is this a bug or a feature?

Are these issues due to that I don't create a MDG MTS file or what am I doing wrong?  

The answers will guide me in my implementation of my complete Business Architecture package, and I want to do it "as correct as possible" from the beginning. ;D

Thanks in advance  /Magnus

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Why can I not create an Attribute of a stereot
« Reply #5 on: March 19, 2012, 07:25:50 am »
First: the tagged values are what you define as attributes in the stereotypes. E.g. Details will become a tagged value for Value Proposition. That is when you create a class with that stereotype it will receive Details and Effort as tags. As you found out Details will be populated with Q&A elements (assuming this is a stereotype in your profile). Finding that is a feature, not a bug. You can either navigate or search for it. Usually you have some static location for these elements.

Using an MTS is just a way to let EA couple the profiles into one MDG. You may do that by hand as well.

q.