Author Topic: Connector API - Client and Supplier Connector  (Read 1324 times)

adepreter

  • EA User
  • **
  • Posts: 75
  • Karma: +2/-2
    • View Profile
Connector API - Client and Supplier Connector
« on: December 05, 2016, 03:19:06 am »
Using the connector API (http://www.sparxsystems.com/enterprise_architect_user_guide/13.0/automation/connector2_2.html)

- how can we figure out that the client or supplier is another connector?

- if the client or supplier is a connector, how can we get a reference to that connector? Would the Client/SupplierID then be the ID of a connector?

qwerty

  • EA Guru
  • *****
  • Posts: 9216
  • Karma: +140/-133
  • I'm no guru at all
    • View Profile
Re: Connector API - Client and Supplier Connector
« Reply #1 on: December 05, 2016, 04:05:22 am »
Client/supplier are always elements, never connectors. What are you trying here?

q.

adepreter

  • EA User
  • **
  • Posts: 75
  • Karma: +2/-2
    • View Profile
Re: Connector API - Client and Supplier Connector
« Reply #2 on: December 05, 2016, 06:15:27 am »
We have detailed connectors that realize summary connectors. This is expressed using a connector to connector realization relationship.

0------0
    / \
     |
     |
0------0

Based on a selected connector (SC), I would like to create a script providing zoom-in/zoom-out behaviour :
- Find "connector to connector" connectors (CCs) starting from the selected connector (SC)
- Find target connectors (TCs) at the other end of each "connector to connector" connector (CC)
- Open diagrams that contain the target connectors (TCs) and select the target connectors

qwerty

  • EA Guru
  • *****
  • Posts: 9216
  • Karma: +140/-133
  • I'm no guru at all
    • View Profile
Re: Connector API - Client and Supplier Connector
« Reply #3 on: December 05, 2016, 06:59:54 am »
How can you draw such a relation in EA manually?

q.

P.S. Though I seem to remember having seen such a thing, I can't remember where. According to the UML 2.5 specs a Relationship is a specialization of Element and such could be source/target of another connector. However, in Sparx' world, a connector is NOT an element but a 2nd class citizen with different properties. Maybe they have tricked around in V13 to make it possible. But I have no idea how to do that manually.

P.P.S. Found http://sparxsystems.com/enterprise_architect_user_guide/13.0/modeling_tools/conn_to_conn.html I'll have a look.
« Last Edit: December 05, 2016, 07:20:33 am by qwerty »

qwerty

  • EA Guru
  • *****
  • Posts: 9216
  • Karma: +140/-133
  • I'm no guru at all
    • View Profile
Re: Connector API - Client and Supplier Connector
« Reply #4 on: December 05, 2016, 07:52:31 am »
Back again. What they do is to create elements for the connectors which have a MetaType ProxyConnector. These have a ClassifierID which is the ID of the corresponding connector. Good luck (because this is something they added "just now" and where I have a gut feeling you should not touch it for production until the next say 3 months have passed).

q.