Author Topic: Custom QuickLink Problems  (Read 5034 times)

MalkContent

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Custom QuickLink Problems
« on: December 05, 2009, 09:54:33 pm »
Hello,
I have been messing around with the creation of a new MDG technology to create a new toolbox for myself.
I have defined a set of stereotypes for classes and transitions and wanted to redefine the QuickLink option, following the instructions given in EA's help.

I now have a DocumentArtifact named QuickLink within the Diagram where in I defined both the stereotypes for classes and transitions.
The following lines are the contents of said DocArtifact:

Code: [Select]
Object,MOFSDMElements::mofsdmObject,Object,MOFSDMElements::mofsdmObject,,Object,MOFSDMElements::mofsdmObject,Assosiaction,,directed,,,TRUE,TRUE,,TRUE,,0,,,,,
ActivityInitial,MOFSDMElements::mofsdmStart,Activity,MOFSDMElements::mofsdmActivity,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,directed,,,TRUE,TRUE,,TRUE,,0,,,,,
Activity,MOFSDMElements::mofsdmActivity,Activity,MOFSDMElements::mofsdmActivity,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,directed,end,,TRUE,TRUE,,TRUE,,0,,,,,
Activity,MOFSDMElements::mofsdmActivity,ActivityFinal,MOFSDMElements::mofsdmStop,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,directed,,,TRUE,TRUE,,TRUE,,0,,,,,
ActivityFinal,MOFSDMElements::mofsdmStop,Activity,MOFSDMElements::mofsdmActivity,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,from,,,TRUE,TRUE,,TRUE,,0,,,,,

Perhaps someone can tell me what I am doing wrong, because at the moment the quicklinks of my stereotypes seemingly are not affected at all.
« Last Edit: December 05, 2009, 10:18:11 pm by MalkContent »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8605
  • Karma: +256/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Custom QuickLink Problems
« Reply #1 on: December 05, 2009, 10:25:32 pm »
First of all I'd try seeing if the quicklinks work with ordinary stereotypes.

I suspect (with absolutely no proof -other than many years experience with EA's self inconsistency) that adding the namespace is the problem.

I'd chge one of your current settings to remove the namespace prefix and I'd rename another to an existing stereotype - to see if that activated the QL.

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

Michael Proske

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Custom QuickLink Problems
« Reply #2 on: December 07, 2009, 11:38:39 pm »
Where did you place the information. First time i put it in the notes property of the document and i got no result. You have to create a linked documemt first and put the information in the linked document.

Maybe that helps. If not i can send you an example of a profile with quick link information.

MalkContent

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Custom QuickLink Problems
« Reply #3 on: January 11, 2010, 09:01:57 pm »
Sorry for not answering for so long. Got sidetracked. *cough*
Soooo... I have the QuickLink informations written down in a DocumentArtifact (Artifact with document stereotype).
The info can be seen when rightclicking the DocumentArtifact and choosing "Edit Linked Document".

Do I have to create a standard issue document element, write the info in there and link it to the artifact somehow? :/

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Custom QuickLink Problems
« Reply #4 on: January 12, 2010, 08:55:17 am »
Your document artifact named QuickLink has to be saved as part of a UML Profile. If you think you've done this, just check by opening your profile file in a text editor and looking for a <QuickLink> section towards the end of the file. The UML Profile can then be imported into your model or deployed as part of an MDG Technology.
The Sparx Team
[email protected]

MalkContent

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Custom QuickLink Problems
« Reply #5 on: January 12, 2010, 09:08:47 am »
the quicklink part is present:

Code: [Select]
<QuickLink data="Object,MOFSDMElements::mofsdmObject,Object,MOFSDMElements::mofsdmObject,,Object,MOFSDMElements::mofsdmObject,Assosiaction,,directed,,,TRUE,TRUE,,TRUE,,0,,,,,
ActivityInitial,MOFSDMElements::mofsdmStart,Activity,MOFSDMElements::mofsdmActivity,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,directed,,,TRUE,TRUE,,TRUE,,0,,,,,
Activity,MOFSDMElements::mofsdmActivity,Activity,MOFSDMElements::mofsdmActivity,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,directed,end,,TRUE,TRUE,,TRUE,,0,,,,,
Activity,MOFSDMElements::mofsdmActivity,ActivityFinal,MOFSDMElements::mofsdmStop,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,directed,,,TRUE,TRUE,,TRUE,,0,,,,,
ActivityFinal,MOFSDMElements::mofsdmStop,Activity,MOFSDMElements::mofsdmActivity,,Activity,MOFSDMElements::mofsdmActivity,Controlflow,,from,,,TRUE,TRUE,,TRUE,,0,,,,,
"/>

maybe I made an error when adressing the elements to be affected?
« Last Edit: January 12, 2010, 09:09:50 am by MalkContent »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Custom QuickLink Problems
« Reply #6 on: January 12, 2010, 09:20:21 am »
You don't want to use fully-qualified stereotypes: Say "mofsdmObject" not "MOFSDMElements::mofsdmObject".
The Sparx Team
[email protected]

MalkContent

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Custom QuickLink Problems
« Reply #7 on: January 21, 2010, 08:54:16 pm »
still not working :/

This is my diagram for the element-profile:


The QuickLink Artifact has the same text as stated before, but with not-fully-qualified stereotypes.

MalkContent

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Custom QuickLink Problems
« Reply #8 on: January 22, 2010, 12:23:32 am »
little update
I found some typos (wrote Assosiation instead of Association) and inconsistencies (ActivityInitial and ActivityFinal are both referred to as StateNode, at least that's what the addin-debugging tells me).

But it's still not working.
By now I am limiting my efforts to get it working for the mofsdmObject stereotyped objects.

The documentArtifact now says the following:
Code: [Select]
Object,mofsdmObject,Object,mofsdmObject,,,,Associaction,mofsdmLink,to,Link To,,TRUE,,TRUE,TRUE,,0,,,,,
so it's nothing fancy
still, it wont work, i only get the standard object-options

here's a pic of the table, please note that I rly only tried to implent the lower line
« Last Edit: January 22, 2010, 12:31:53 am by MalkContent »