Author Topic: Defining Tagged Value with RefGUID-Feature in base eap? [solved]  (Read 3008 times)

Shegit Brahm

  • EA User
  • **
  • Posts: 95
  • Karma: +1/-0
    • View Profile
Hi,

I tried to do the following:
- creating a definition eap where I set my UML profile
- creating a usage eap where I will use defined profile
- extending Action with stereotype and attributes so I will have Tagged Values after import of Profile

what works:
- Setting any enum works fine (->"WithEnum")
- defining Memo works only with <memo> as "Initial value" of corresponding attribute (-> "WithMemo")

my problem:
- how to enforce "Integer"?
- how to enforce "RefGUID"?

my workaround:
- creating profile as intended
- exporting as MDG as well
- editing MDG-XML with an editor:
Code: [Select]
</UMLProfiles>
<TaggedValueTypes>
<RefData version="1.0" exporter="EA.25">
<DataSet name="Property Types" table="t_propertytypes" filter="Property='#Property#'">
<DataRow>
<Column name="Property" value="WithInteger"/>
<Column name="Notes" value="Type=Integer"/>
</DataRow>
<DataRow>
<Column name="Property" value="WithRefGUID"/>
<Column name="Notes" value="Type=RefGUID;Metatype=Decision;"/>
</DataRow>
</DataSet>
</RefData>
</TaggedValueTypes>
</MDG.Technology>

See files if you like:
https://www.dropbox.com/s/7t9jh5agbyas8zn/Shegit_MDG.xml?dl=0
https://www.dropbox.com/s/tfeo43ju3y7l25r/Shegit_MDG_edited.xml?dl=0
https://www.dropbox.com/s/d6tezhto74yeayw/TVDefinition.eap?dl=0
(Edit: changed to dropbox)

For Memo I did it that way to, but found out that "initialValue" takes it as well.

I prefer to include the Tag-Definition inside eap because otherwise I need to take care for every change of Profile whil updating mdg-xml.

Thanks,
Shegit
« Last Edit: July 12, 2017, 01:36:13 am by Shegit Brahm »

qwerty

  • EA Guru
  • *****
  • Posts: 11388
  • Karma: +295/-262
  • I'm no guru at all
    • View Profile
Re: Defining Tagged Value with RefGUID-Feature in base eap?
« Reply #1 on: July 10, 2017, 06:28:02 pm »
I don't know what these links are you posted. The first (and probably all others) downloads a mdg-file for my Mac to install an app. Hell, no!

q.

P.S. It appears that you have to use the blue download square to the right, not that fat green labeled button. Who's supporting such sharing "services"??

P.P.S. Obviously this "service" placed a pop-up "You asked the 1 billion Google question. You won..." AAAAAARRRRGGGGGHHHHH 
« Last Edit: July 10, 2017, 07:37:31 pm by qwerty »

qwerty

  • EA Guru
  • *****
  • Posts: 11388
  • Karma: +295/-262
  • I'm no guru at all
    • View Profile
Re: Defining Tagged Value with RefGUID-Feature in base eap?
« Reply #2 on: July 10, 2017, 06:53:57 pm »
In order to create a RefGUID you need to create a TaggedValue connector from your stereotype to either a metaclass or another stereotype (depending on what kind of RefGUID you want to have).

q.

Shegit Brahm

  • EA User
  • **
  • Posts: 95
  • Karma: +1/-0
    • View Profile
Re: Defining Tagged Value with RefGUID-Feature in base eap?
« Reply #3 on: July 10, 2017, 07:37:26 pm »
Thanks for your time, qwerty.

This TV connector helps me with the RefGUID-Defintion.  :)

For Integer, I might live with enum-workaround - or which Core Element / Core Connection / Abstract Metatype / Stereotype do I need to connect?
(Because didn't find any "sounds good", "DataType" did nothing)


Which file share to you prefer? last time I could link directly to file, not a download page.

Thanks, Shegit

qwerty

  • EA Guru
  • *****
  • Posts: 11388
  • Karma: +295/-262
  • I'm no guru at all
    • View Profile
Re: Defining Tagged Value with RefGUID-Feature in base eap?
« Reply #4 on: July 10, 2017, 07:38:31 pm »
See my PPS above. I'd prefer a simple Dropbox link. Never had any issues there.

q.

Shegit Brahm

  • EA User
  • **
  • Posts: 95
  • Karma: +1/-0
    • View Profile
Re: Defining Tagged Value with RefGUID-Feature in base eap?
« Reply #5 on: July 11, 2017, 01:41:54 am »
Question of curiosity:

I could tv-connect one metaclass and found it as restriction while Connection the tv

If I connect more than one metaclass, the profile export picks only one by random
- I set on connector the target role to the attribute where it should apply.

If I now edit the XML to
Code: [Select]
<TaggedValueType property="WithRefGUID" description="" notes="Type=RefGUID;Metatype=ActivityFinal,Decision;"/>I limit restriction to both types while
Code: [Select]
<TaggedValueType property="WithRefGUID" description="" notes="Type=RefGUID;"/> takes away any element restriction.

What can I do to control this behaviour inside EA GUI instead of exported XML?

thanks, Shegit
« Last Edit: July 11, 2017, 04:50:38 pm by Shegit Brahm »

qwerty

  • EA Guru
  • *****
  • Posts: 11388
  • Karma: +295/-262
  • I'm no guru at all
    • View Profile
Re: Defining Tagged Value with RefGUID-Feature in base eap?
« Reply #6 on: July 11, 2017, 06:17:39 am »
I guess you need to report a bug. Or dig in the help if it's not documented the way it behaves (which I doubt). There's an ancient programming language called RPG (from IBM IIRC). It's been very cryptic and the acronym in Germany wonderfully translates to Guess, Try, Look (Rate, Probiere, Gucke). EA is just like RPG.

q.

Shegit Brahm

  • EA User
  • **
  • Posts: 95
  • Karma: +1/-0
    • View Profile
Re: Defining Tagged Value with RefGUID-Feature in base eap?
« Reply #7 on: July 11, 2017, 04:49:50 pm »
thanks, will use the aggronym ( 8)) and will eventually report the bug.