Author Topic: Defining RefGUIDs via UML profile limits to 1 tagggedValue-Connector, cause: XML  (Read 2513 times)

Shegit Brahm

  • EA User
  • **
  • Posts: 95
  • Karma: +1/-0
    • View Profile
Base eap to define a UML profile with
- stereotype "myStereo" extending metaclass Action (myStereo1 for only one per attribute, myStereo2 for more than one)
- several attributes for this stereotype
- connector "taggedValue" between metaclass Action, ActivityInitial and Decision
- connector role specified as attributes names intend

exporting as MDG Technology or UML profile

Use eap to have tagged values depending on stereotype
- creating activity diagram with at least one element for each type of metaclass in base eap
- importing MDG Technology/ UML profile
- creating Action "useStereo1" and Action "useStereo2" in Activity diagram
- setting "myStereo1" and "myStereo2" as stereotype for this action.
- defining entries for each tagged value of both actions

what is:
- every tv is limited to only one metaclass

what should:
- every tv is limited to each metaclass as defined in base eap

source of problem:
- generated xml selected one metaclass by random

"workaround":
- editing xml so that 'notes="Type=RefGUID;Metatype=Action,Decision,...;"

With the XML I can achieve almost any limitation.
But that's what the generated xml should do as well.

example files:
https://www.dropbox.com/s/500b4as78dw3vfy/RefGUID_difference_GUI_XML_Base.eap?dl=1 eap used to define stereotypes with tagged values
https://www.dropbox.com/s/a7rhs8o0hhpnjmo/RefGUIDandRefGUIDs.xml?dl=1 MDG generated by EA
https://www.dropbox.com/s/0pr3ve1e7vauwj8/RefGUIDandRefGUIDs_Edited.xml?dl=1 MDG edited to achieve aimed behavior
https://www.dropbox.com/s/1zknc7cyi9ypmtz/RefGUID.xml?dl=1 UML profile for single tagged value connectors
https://www.dropbox.com/s/d9s2hzeivtwooh0/RefGUIDs.xml?dl=1  UML profile for multiple tagged value connectors
https://www.dropbox.com/s/tnzom6j02zh20vt/RefGUIDs_AllTargetSet.png?dl=1 diagram RefGUIDs with multiple connectors
(edit: changed dropbox links to start download directly (dl=1) instead opening dropbox page (dl=0))

general discussion took place here:
http://sparxsystems.com/forums/smf/index.php/topic,38459.0.html
« Last Edit: July 14, 2017, 12:15:27 am by Shegit Brahm »

qwerty

  • EA Guru
  • *****
  • Posts: 11388
  • Karma: +295/-262
  • I'm no guru at all
    • View Profile
The links do not work for me.

q.

Shegit Brahm

  • EA User
  • **
  • Posts: 95
  • Karma: +1/-0
    • View Profile
tested links in different browser with being logged out in dropbox. works.
changed to offer files directly instead opening download page.

qwerty

  • EA Guru
  • *****
  • Posts: 11388
  • Karma: +295/-262
  • I'm no guru at all
    • View Profile
Now it worked. Will have a look.

q.

qwerty

  • EA Guru
  • *****
  • Posts: 11388
  • Karma: +295/-262
  • I'm no guru at all
    • View Profile
Just at a quick look: the <<taggedValue>> needs a role name which you have not assigned. You should see a warning in EA's System Console
Quote
UML Export: Association relationship [ActionTV]---[Class] ignored as no valid identifier exists (link name or destination role)
Open the connector properties and assign a role name to TARGET.

q.

Shegit Brahm

  • EA User
  • **
  • Posts: 95
  • Karma: +1/-0
    • View Profile
I moved extend connector around to clarify: all TARGET are set:
https://www.dropbox.com/s/tnzom6j02zh20vt/RefGUIDs_AllTargetSet.png?dl=1

this "candidate as bug" came from your help in topic http://sparxsystems.com/forums/smf/index.php/topic,38459.0.html

thanks, Shegit
« Last Edit: July 14, 2017, 12:15:55 am by Shegit Brahm »

qwerty

  • EA Guru
  • *****
  • Posts: 11388
  • Karma: +295/-262
  • I'm no guru at all
    • View Profile
Getting MDG to work is not a piece of cake. You have to swallow some not so tasty pieces too. And coffee isn't served as well. You have to make your own.

q.