Book a Demo

Author Topic: Date attribute in custom UML profile  (Read 4938 times)

bcrier

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Date attribute in custom UML profile
« on: September 07, 2013, 12:45:59 am »
For a custom profile, in the Stereotype element I am trying to add  Attributes with the Data and Time datatypes.  There are no date, time or datetime datatype in the drop down list of datatypes.

I found the following post and followed its instructions but it did not work - "

Go to "Settings | UML | Tagged Value Types" and create a tagged value type called "approved_date" with detail field set to "Type=DateTime;". Then go to your profile definition and give your <<stereotype>> class an attribute named "approved_date". Save the profile, import the profile and it should work."

Any help you can provide is greatly appreciated.

Thanks

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Date attribute in custom UML profile
« Reply #1 on: September 07, 2013, 04:55:55 am »
There's another thread which explains how to add those tags to your MDG. IIRC it was posted by Phil Chudley. I'd search that for you if it wasn't so cumbersome ;)

q.

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Date attribute in custom UML profile
« Reply #2 on: September 07, 2013, 11:27:54 pm »
Thanks q

The predefined tagged values are not encapsulated in a UML profile. You have to perform two import/exports

1) The UML profile
2) Model resources for the tagged values

So, in your case, open the project containing your profile and export the tagged values as model resource (Project menu)

Open up the other project and import the model resource, all is OK

A better method would be wrap up the UML profile and the tagged values in an MDG technology, [highlight]just make sure that MDG ID is exactly the same name as your UML profile package name[/highlight]

Hope this helps

Phil
Models are great!
Correct models are even greater!

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Date attribute in custom UML profile
« Reply #3 on: September 19, 2013, 06:18:10 am »
HI,

I have the same issue, but I can not find:

"export the tagged values as model resource (Project menu)"

Could you help me, pease ?

Thanks in advance,

Michel

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Date attribute in custom UML profile
« Reply #4 on: September 19, 2013, 08:09:13 am »
It's Project/Im-/Export/Export Ref Data/UML Types/Property Types

Hard to find, yes, yes.

q.

Michel777

  • EA User
  • **
  • Posts: 228
  • Karma: +0/-0
    • View Profile
Re: Date attribute in custom UML profile
« Reply #5 on: October 19, 2013, 08:23:54 pm »
Hi,

what are the corresponding attributes in XML to  the mentioned MDG ID and UML profile package name ?

MDG ID =  (A) or (B) or (C) or (D) ?

<MDG.Technology version="1.0">
<Documentation id="(A)" name="(B)" version="(C)" notes="(D)"/>


UML profile package name = (1) or (2) or (3) or (4)  ?

<UMLProfile profiletype="uml2">
<Documentation id="(1)" name="(2)" version="(3)" notes="(4)"/>

Thanks,

Michel
« Last Edit: October 19, 2013, 08:25:18 pm by michel777 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Date attribute in custom UML profile
« Reply #6 on: October 20, 2013, 09:40:15 am »
(B) and (2)

q.