Book a Demo

Author Topic: Link restrictions  (Read 6417 times)

Alex9329

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Link restrictions
« on: September 23, 2017, 01:14:10 am »
Hi,

I have created a new MDG technology in which I created a new stereotype of the relation (link). Can I make a restriction that that relation should be only between stereotype1 and stereotype2, but not with other stereotypes.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Link restrictions
« Reply #1 on: September 23, 2017, 07:42:07 am »
Right out of my head (the QL format is a nightmare): There are 2  columns Source/Target Stereotype Filter in the QL definition which are used for this purpose.

q.

Alex9329

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
    • View Profile
Re: Link restrictions
« Reply #2 on: September 23, 2017, 03:04:04 pm »
Could you please tell me more about it, how to configure this QL in my MDG?...
My purpose is not only Quicklinker. My purpose is to create in MDGG tech my own link and to set on it restrictions that only Stereotype1 and Stereotype2 can be connected using this type of link. If I try to connect Stereotype1 with Stereotype3 - an error will appear that it is not allowed to use this link for such connection. Something like that

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Link restrictions
« Reply #3 on: September 23, 2017, 04:42:08 pm »
Didn't I mention that nightmare? The best is to use an existing QL definition. Use the example from the help: http://sparxsystems.com/enterprise_architect_user_guide/12.1/building_models/quick_linker_definition_format.html (there is one linked below). And alter it stepwise.

Good luck.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Link restrictions
« Reply #4 on: September 25, 2017, 09:04:55 am »
The quicklinker can suggest valid connections but can't prevent invalid connections. You can write an add-in that implements the EA_OnPreNewConnector broadcast handler to prevent invalid connections, or you can write a validation script or add-in to report on invalid connections in your models.
The Sparx Team
[email protected]