Author Topic: Quicklinker definition not working  (Read 22211 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Quicklinker definition not working
« on: December 08, 2015, 06:32:41 pm »
Hi,

I cannot get a Quicklinker definition to be taken into account in my MDG.
My MDG contains a UML Profile with stereotypes that extend built-in Archimate 2.
e.g.
ArchiMate_BusinessActor_Bis
ArchiMate_BusinessRole_Bis

I'm trying to replace the ArchiMate's quicklinker options with my own definition so I can create an ArchiMate_BusinessActor_Bis element with an ArchiMate_BusinessRole_Bis one via an Archimate Composition (standard one).
Taking the existing QL definitions in ArchiMate 2 MDG, I started a QuickLink document with the following:
Class,ArchiMate_BusinessActor_Bis,Class,ArchiMate_BusinessActor_Bis,,Class,ArchiMate_BusinessActor_Bis,Composition,ArchiMate_Composition,from,Composed of,Composed of,TRUE,TRUE,TRUE,TRUE,,,TRUE,TRUE,,,,

However this is never picked up by EA, even when I restart EA.
Am I missing something?


Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Quicklinker definition not working
« Reply #1 on: December 08, 2015, 07:47:29 pm »
Hi Guillaume,

I think some things changed int he latest versions of EA.

I'd take the exiting BusinessActor segment and copy and replace with the _bis form and add to then end of the QuickLinker definitions.

QuickLinker management is certainly and arcane art...  I've had some success, but more often by luck than design...

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

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Quicklinker definition not working
« Reply #2 on: December 08, 2015, 11:50:43 pm »
Hi Paolo,

I tried it without any luck. All my elements have both stereotypes set (Archimate_BusinessActor and Archimate_BusinessActor_Bis) when I create them. It seems that Archimate2 QL takes over any definition I attempt to put in my MDG.
As a solution I can only foresee using an add'in that will automatically add my stereotype when an Archimate2 is created (far from ideal..)

Unless you have other options on the QL.

Thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Quicklinker definition not working
« Reply #3 on: December 09, 2015, 12:28:58 am »
QL definition is a PITA. Reduce your set to a single connector and make that very basic (the best to start from a similar that is known to work). Then stepwise go further with adjustments.

q.

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Quicklinker definition not working
« Reply #4 on: December 09, 2015, 02:06:08 am »
I tried with a single entry (I read your MDG book -> QL chapter) and even with a single entry it doesn't work.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Quicklinker definition not working
« Reply #5 on: December 09, 2015, 04:46:38 am »
I'll give that one line you posted above a try.

q.

P.S. Challenging - like poking in the fog  :P
« Last Edit: December 09, 2015, 06:55:04 am by qwerty »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Quicklinker definition not working
« Reply #6 on: December 09, 2015, 07:03:28 am »
I think I got it :P

I changed the 2nd "Composed of" to "Composed of 2" and it showed up. YAEAB or else I would not know why those labels need to be different :o

Will you send a bug report?

q.
« Last Edit: December 09, 2015, 07:04:51 am by qwerty »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Quicklinker definition not working
« Reply #7 on: December 09, 2015, 10:55:56 am »
Quote
I think I got it :P

I changed the 2nd "Composed of" to "Composed of 2" and it showed up. YAEAB or else I would not know why those labels need to be different :o

Will you send a bug report?

q.
Hi Guillaume & Thomas,
An educated guess...  I suspect the reason that you need different labels is found in Giullaume's statement that his object have both stereotypes (if I understand him correctly -
Quote
All my elements have both stereotypes set (Archimate_BusinessActor and Archimate_BusinessActor_Bis) when I create them.
)
So firstly we have the problem that (I think) QuickLinker uses only the primary stereotype -  I may be proved wrong, but that's the assumption I've worked on and so far so good! QuickLinker is confused about which to apply, compounded by the semantic anomaly that you can't have two identical selectors (labels) for two different sources or endpoints.

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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Quicklinker definition not working
« Reply #8 on: December 09, 2015, 08:29:18 pm »
Paolo,
the menu texts will appear in different contexts. One when linking two existing elements and the other when dragging onto empty space to create a new element. So I don't see a reason for the behavior. Anyhow, it is most annoying to see what you see. A meaningful warning to the system log would simply overcome this situation.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Quicklinker definition not working
« Reply #9 on: December 10, 2015, 10:55:29 am »
Quote
Paolo,
the menu texts will appear in different contexts. One when linking two existing elements and the other when dragging onto empty space to create a new element. So I don't see a reason for the behavior. Anyhow, it is most annoying to see what you see. A meaningful warning to the system log would simply overcome this situation.

q.
I understand about the contexts.  However, I'm not clear about the scenario that Guillaume is describing.  Perhaps he could describe it more specifically, describing the behaviour with and without your fix.

Since I'm about to embark on a wholesale revamp of a very large QuickLinker file, I'm keenly interested in what's going on here.

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

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Quicklinker definition not working
« Reply #10 on: December 11, 2015, 12:15:22 am »
Hi Paolo & q,

First thanks to both of you on your additional inputs.

Quote
An educated guess...  I suspect the reason that you need different labels is found in Giullaume's statement that his object have both stereotypes (if I understand him correctly

That's right. When I open the element's properties, the stereotype that shows up is the one from my custom profile i.e. Archimate_BusinessActor_Bis.
When I browse for additional stereotypes and select Archimate2 profile, I see that ArchiMate_BusinessActor is enabled.

Quote
So firstly we have the problem that (I think) QuickLinker uses only the primary stereotype -  I may be proved wrong, but that's the assumption I've worked on and so far so good! QuickLinker is confused about which to apply, compounded by the semantic anomaly that you can't have two identical selectors (labels) for two different sources or endpoints.

My custom stereotype is the primary one, but QL still either gets confused or ignores my QL definition.

I tried as suggested narrowing down my UML profile & MDG to a single stereotype. I'm still having the same issue.

You can download the compiled MDG from here: http://bit.ly/1lx4ayF.
You can see the Quicklink definition in this file.
Once imported in EA, create a diagram > ArchiMate 2_Bis > ArchiMate 2_Bis
Created a business actor and try to create another one with the quicklinker.


« Last Edit: December 11, 2015, 12:38:40 am by gfuk »
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Quicklinker definition not working
« Reply #11 on: December 11, 2015, 12:52:20 am »
Guillaume, could you provide the source EAP for the MDG?

q.

P.S. The provided MDG has ArchiMate_cs_BusinessActor as source and that works.
« Last Edit: December 11, 2015, 01:45:57 am by qwerty »

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Quicklinker definition not working
« Reply #12 on: December 11, 2015, 01:06:05 am »
I zipped the source EAP file, available here: http://bit.ly/1OV4yR7

thanks
« Last Edit: December 11, 2015, 01:06:27 am by gfuk »
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Quicklinker definition not working
« Reply #13 on: December 11, 2015, 01:46:17 am »
See my P.S. above

q.

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Quicklinker definition not working
« Reply #14 on: December 11, 2015, 02:55:23 am »
There was a mistake in my exported MDG.

If you retrieve the updated MDG from http://bit.ly/1lx4ayF, you can see what happens.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com