Book a Demo

Author Topic: Adding QuickLink to UML profile not working  (Read 8826 times)

cjo

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Adding QuickLink to UML profile not working
« on: January 09, 2016, 12:44:15 am »
I'm trying to add some Quick Link customisations into my MDG technology. I am using EA version 12.

I have followed the Quick Linker example in the Help and added the elements indicated into the technology, but nothing seems to happen after I export the MDG Technology file.  Here are the steps I have followed:

Create new MDG Technology and a new profile.
Create 2 new stereotypes in the profile: Actor (metaclass is 'Actor') and Business Service (metaclass is 'Activity').
Create toolbox and diagram profiles
Create CSV definition of quicklinks
Add 'QuickLink' document artefact to profile diagram and paste contents of CSV into this and save it
Export the profiles
Generate MDG Technology
Import MDG technology.

The new stereotypes, toolboxes and diagrams all work, but I cannot see any of my quick links showing up.

I have also created the 'quick' stereotype and the CSV definitions from the help page and this does not work either.

My CSV file is:

Actor,Actor,Activity,Business Service,,,,Association,Accesses,to,Accesses,,TRUE,,TRUE,,,0,,,TRUE,,

I have looked in the MDG xml file in notepad and the CSV information appears in the QuickLink element under the Content node of the UMLProfile:

            <QuickLink data="Actor,Actor,Activity,Business Service,,,,Association,Accesses,to,Accesses,,TRUE,,TRUE,,,0,,,TRUE,,&#xA;"/>

Is there a trick I have missed somewhere. I have seen posts from people saying they have done this, but nothing which says how.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Adding QuickLink to UML profile not working
« Reply #1 on: January 09, 2016, 01:09:25 am »
I see that you are using a stereotype that already exists as a metatype.
To rule out any conflict with that I would start with a simple example. Something like "MyStereoA" and "MyStereoB"

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Adding QuickLink to UML profile not working
« Reply #2 on: January 09, 2016, 02:00:40 am »
I haven't tested this in EA 12, but in earlier versions there's a problem with the final dummy column ('W' in the help): it can't be empty.

So add a dummy value, like 0, to the end of each line and you should be OK.

/Uffe
My theories are always correct, just apply them to the right reality.

cjo

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Adding QuickLink to UML profile not working
« Reply #3 on: January 09, 2016, 03:00:45 am »
Many thanks for the responses.

I've started again with a fresh MDG with just a profile (no toolbox or diagram) and now the quicklinks from the 'quick' stereotype from the help documentation works.  :)

However, adding any quicklinks to my stereotypes still does not work. I don't think the final column is a problem as the help example (which is now working) doesnt' have dummy values. However I have now added the dummy value and changed the names as suggested, so now my quicklinks file contains the following:

Actor,OrganisationUnitAA,Activity,BusinessServiceAA,,,,Dependency,,to,Dependency to,,TRUE,,TRUE,TRUE,,0,,,,,0

I would expect this to add the value 'Dependency to' to the quick links when linking from an OrganisationUnitAA to a BusinessServiceAA, but I am just getting the default quick links and not the additional value I would expect.

Any more ideas what I could be doing wrong please?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Adding QuickLink to UML profile not working
« Reply #4 on: January 11, 2016, 09:13:03 am »
Assuming the stereotypes are spelt correctly, I can't see anything wrong with it. Might be worth sending your technology in to Support so someone (probably me) can run it in debug.

(One thought: depending on which version of EA you are using, the quicklinker tables might not be refreshed on enabling your technology/importing your profile. Restarting EA will guarantee your quicklinker data is loaded.)
« Last Edit: January 11, 2016, 09:16:25 am by KP »
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Adding QuickLink to UML profile not working
« Reply #5 on: January 11, 2016, 10:52:44 am »
Assuming the stereotypes are spelt correctly, I can't see anything wrong with it. Might be worth sending your technology in to Support so someone (probably me) can run it in debug.

(One thought: depending on which version of EA you are using, the quicklinker tables might not be refreshed on enabling your technology/importing your profile. Restarting EA will guarantee your quicklinker data is loaded.)
Hi Neil,

Any change we poor long-suffering  :-* QuickLinker designers could get hold of the Debugger?

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

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Adding QuickLink to UML profile not working
« Reply #6 on: January 11, 2016, 11:07:25 am »
Hi Neil,

Any change we poor long-suffering  :-* QuickLinker designers could get hold of the Debugger?

Paolo
That's probably my fault... When I said "run it in debug" I meant run EA in debug, stepping through the EA source code. So to answer your question: No you may not have the EA source code!!  :o
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Adding QuickLink to UML profile not working
« Reply #7 on: January 11, 2016, 11:09:45 am »
Hi Neil,

Any change we poor long-suffering  :-* QuickLinker designers could get hold of the Debugger?

Paolo
That's probably my fault... When I said "run it in debug" I meant run EA in debug, stepping through the EA source code. So to answer your question: No you may not have the EA source code!!  :o
Didn't really expect a "Yes"   ;)
But since it's my first day back at work, I thought why not ask?

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

cjo

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Adding QuickLink to UML profile not working
« Reply #8 on: January 13, 2016, 12:35:32 am »
Hi all,

Many thanks for all of the responses. I have found the problem and it is the oldest trick in the book (Thanks to the hint from KP). I needed to restart EA to pick up the changes.

What I don't understand is that it managed to pick up some of the changes (using the quick links tutorial example) without a restart, but to pick up my changes does require a restart. Quite strange, but at least it's working now.

Many thanks for your help!