Book a Demo

Author Topic: Connectors  (Read 5414 times)

baghira

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Connectors
« on: April 25, 2008, 12:20:25 am »
Hi,

I have build a profile and now I am wondering if it is possible to create a rule or something like that, so that my connector, which is an extension of UML:: Dependency, is only allowed to connect to a specific component/stereotype.

I can't find a source/target-type or such thing.
The other way I mentioned was to set validation rules. Is there an easy way to do this?

Thank you! :-)

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Connectors
« Reply #1 on: April 25, 2008, 05:03:30 am »
Perhaps you can use the quicklinker setup to do this...
No, you can't have it!

baghira

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Connectors
« Reply #2 on: April 25, 2008, 07:52:20 pm »
Hi again,

in the help is written that

"The philosophy behind the built-in Quick Linker definitions has always been to provide not a complete list of valid or legal connections, but a short and convenient list of the commonest connections for the given context."

According to the fact that I can only choose standard Connector Types I can't use it for limiting the connections.

Any other ideas?

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Connectors
« Reply #3 on: April 25, 2008, 08:07:47 pm »
You can use your own connector stereotypes in a quick linker definition. It won't help you, however, for limiting connections cause a user can always choose to drag a connector from the toolbox instead of using the quick linker.

I think the only way to really prevent unwanted connectors ist to write an AddIn and use broadcast events. In your handler for the EA_OnPreNewConnector event you can check the client and supplier elements and return false if you don't want to allow the connector.