Author Topic: Finding Dependencies in repository  (Read 4055 times)

Kezia

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Finding Dependencies in repository
« on: August 06, 2009, 01:39:51 pm »
Hi all,

EA provides us capability to know which element is transformed from which element and we can see it from Hierarchy window (View -
Hierarchy) by clicking "Dependencies" relationship on the top of the window.
I try to visualise what I see in Hierarchy window:

- ElementA
  - transformed from
    + ElementB

I have tried to find where this information is saved in EA repository, but I still can't find it.
How can I programatically know that ElementA is transformed from ElementB? which properties should I read?


Cheers.

PS: Maybe my wording above is not good enough. I give screencapture that it could help more what I meant.

What I want to know is : How to find element that
<<XSDcomplexype>>EmployeeDeductionPlan
is transformed from, programatically.
Thanks.
« Last Edit: August 06, 2009, 06:46:24 pm by Kezia »

Kezia

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Finding Dependencies in repository
« Reply #1 on: August 07, 2009, 04:39:13 pm »
Nobody can help me?? EA support team??

gilles2

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Finding Dependencies in repository
« Reply #2 on: August 08, 2009, 01:42:08 am »
it must be a connector.
look at your element property Element.connectors.
There must be a connector with a specific type ....

Gilles

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Finding Dependencies in repository
« Reply #3 on: August 10, 2009, 09:48:39 am »
Nobody can help me?? EA support team??

Kezia

Just a gentle reminder that this is a user forum and, in theory, Sparx employees might not ever read your post. If you want Sparx Support to look at a problem or issue, please submit a direct support request using the Support    Report a Bug link at the bottom of any Sparx Systems website page (including this one).

WBR
Best Regards, Roy

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Finding Dependencies in repository
« Reply #4 on: August 10, 2009, 04:29:07 pm »
Quote
it must be a connector.
look at your element property Element.connectors.
There must be a connector with a specific type ....

Gilles
Not necessarily Gilles... Have a look in the PDATA entries and also the t_xref table.

EA uses a variety (of often inconsistent) mechanisms for establishing linkages between elements in the model.  For example, there is NO explicit nesting connector created when you nest an element under another in the browser.  That's handled by the ParentID field.  Indeed, if you connect two elements with a nesting connector, the ParentID field of the nestling is NOT updated nor is the browser changed...

I haven't looked at how transformations work so if someone finds out how, it would be useful for it to be posted here.

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