Book a Demo

Author Topic: Quick Linker: Add other Type Connection  (Read 6773 times)

marku

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Quick Linker: Add other Type Connection
« on: May 23, 2018, 05:28:53 pm »
Hi
I tried add other type of connection:  Control Flow, in QuickLinker. I want use it to connect  between Application Component (in Archimate).
I have EA 14 and 13, tried add it like on this site:
https://www.sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/quick_linker_example.html or http://www.sparxsystems.com.au/resources/user-guides/14.0/modeling/introducing-metamodels.pdf (page 15)

Unfortunately I still doing something wrong. Is any simple solution to add only one type relationships to QuickLink?  (it should be for all users)
(Later I will describe it in more detail)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Quick Linker: Add other Type Connection
« Reply #1 on: May 23, 2018, 06:07:54 pm »
No. Messing with the QL is blood, sweat and tears. Start with a simple QL, Add a slightly modified record, Test it. You need to restart EA for each new test (I guess that still needs to be done).

q.

marku

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Quick Linker: Add other Type Connection
« Reply #2 on: May 23, 2018, 07:46:08 pm »
I was thinking "add one, existing in program, connection" - it will be much simple than add fantastic relations.
Reading instructions about it -a still have one think "something is missing in text" like your suggestions "You need to restart EA for each new test" - I only Reload Project

I work like in:
https://www.sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/createprofile.html
Next steps I’m doing  on the Diagram in "<<profile>> Package", such like in:
https://www.sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/addingelementsandmetaclass.html
In step 2 "Extend Metaclass" I have check: "Core Connectors" and "ControlFlow"
And what next?
- I adding document with text from csv file ( question: How "Document Artifact" with quick link definitions is connected, pinned to Profil, metaclass. It’s enough that it’s on the diagram in the Package <<Profile>> ?): https://www.sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/add_quick_linker_definition_to.html)
And
https://www.sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/exportprofile_2.html

And I have XML file on computer
Then I work like in:
https://www.sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/addingprofileinmdgtechnolo.html
(in 1 step I work like in: https://www.sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/creatingmdgtechnologies.html
In step 6 I only have check Metamodel- Profiles (exactly like was writing before)
Restart  Sparx and nothing

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13495
  • Karma: +572/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Quick Linker: Add other Type Connection
« Reply #3 on: May 23, 2018, 08:34:39 pm »
You still have to load the MDG file you created in order to make it active.

Geert

marku

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Quick Linker: Add other Type Connection
« Reply #4 on: May 23, 2018, 09:21:17 pm »
In Specialize->Manage-> MDG Technology window I see check "Enabled" at my group. I'm doing "Set Active" ("*" is visible next to the name).
And I see my group in Toolbox, but still haven't it in the QuickLinker.
I will try later once again
(mayby I should add object ApplicationComponent to the new group Profile- but  I only want add one type of relation- no build new type of techology design- mayby much later >:( ;D )

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Quick Linker: Add other Type Connection
« Reply #5 on: May 23, 2018, 09:30:42 pm »
I seem to remember that getting my first QL to work took me at least a whole day (gnawing my keyboard most of the time). Most annoying was the debugging process. Just to experience that the restart was necessary took me a couple of hours until realizing that. It's just topped by the fact that EA does not give any hint to what could be wrong. It's just: does not work. Not even a message that something is wrong.

q.

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Quick Linker: Add other Type Connection
« Reply #6 on: May 23, 2018, 10:03:44 pm »
Are you trying to add a control flow between two Application Components?.  (by modifying the ArchiMate technology) or are you trying to extend the Application Component as something else (say Application) and add a Control Flow between

Below is an excerpt from my custom MDG where Application(extended from Component) is connected with a ControlFlow
Code: [Select]
//Source Element Type,Source ST filter,Target Element Type,Target ST Filter,Diagram Filter,New Element Type,New Element ST,New Link Type,New Link ST,New Link Direction,New Link Caption,New Link &amp; Element Caption,Create Link,Create Element,Disallow Self connector,Exclusive to ST Filter + No inherit from metatype,Menu Group,Complexity Level,Target Must Be Parent,Embed element,Preceeds Separator LEAF,Preceeds Separator GROUP,DUMMZ COLUMN
Component,Application,Component,Application,,,,Controlflow,,to,MY_Control Flow,,TRUE,,FALSE,TRUE,,0,,,,,

PS - if you are intending to modify the default ArchiMate MDG, you have to insert this one line in your QL text from ArchiMate technology

marku

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Quick Linker: Add other Type Connection
« Reply #7 on: May 23, 2018, 11:16:51 pm »
@Nizam:
Yes i'm
Quote
trying to add a control flow between two Application Components?
-only it.
I use your code- still nothing. Suppouse, I'm doing something wrong "somewhere else"
It's seems like SParx dosen't know that the "relationship recipe" is in the file documentArtifact

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: Quick Linker: Add other Type Connection
« Reply #8 on: May 24, 2018, 09:07:52 am »
If you can share your quicklinker.csv file we'll be able to see if  there is anything specifically standing out.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8098
  • Karma: +118/-20
    • View Profile
Re: Quick Linker: Add other Type Connection
« Reply #9 on: May 24, 2018, 09:44:49 am »
Quote
trying to add a control flow between two Application Components?

Try using metamodel constraints for a profile.

Create a profile package.
Add the ControlFlow metaclass and ArchiMate3::ArchiMate_ApplicationComponent from the stereotypes page of the metaclass dialog.
Drag two metaconstraint connectors from the ControlFlow to the ApplicationComponent. Set the umlRole tags to source and target.
Import the profile directly into your model using Specialize > Technologies > Publish > Import UML Profile. (Alternatively, create the MDG technology file manually and distribute it as needed)

This will allow the UML Control Flow relationship between two application components. By default you still won't see it in your quicklinker because it filters to the current toolbox. Either pin the Activity Relationships page, or turn off the filter in the quicklinker menu.

marku

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Quick Linker: Add other Type Connection
« Reply #10 on: May 25, 2018, 01:21:24 am »
Exactly:
Quote
By default you still won't see it in your quicklinker because it filters to the current toolbox. Either pin the Activity Relationships page, or turn off the filter in the quicklinker menu.
I still haven't see it in Quicklinker.
I will try it by next days
Thx for all