Book a Demo

Author Topic: How to get information about an element in 2 base-  (Read 5123 times)

Michael co

  • EA User
  • **
  • Posts: 60
  • Karma: +0/-0
    • View Profile
How to get information about an element in 2 base-
« on: January 24, 2014, 12:52:22 am »
How to get information about an element in 2 baselines,
for example I have an element e1 and this element is found in baseline1 and baseline2 and baseline3

what is the query/xml/sql can be used to get the whole information of this element e1 ,


Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: How to get information about an element in 2 b
« Reply #1 on: January 24, 2014, 01:06:58 am »
Good question.  I assume you're looking for the complete change history of that element?

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: How to get information about an element in 2 b
« Reply #2 on: January 24, 2014, 01:22:58 am »
It is a good question. Unfortunately, however, the answer is "no." Or rather, "very difficult."

You can use Project.DoBaselineCompare() and parse the result, but the result format isn't published so you'll essentially have to reverse-engineer it. Also, if the element has been moved from one baselined package to another it gets really tricky because you'll then have to start looking through the set of baselines for each such package in order to find the complete history.

It can be done, I'm sure, but it'll be pretty hard.

/Uffe
My theories are always correct, just apply them to the right reality.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to get information about an element in 2 b
« Reply #3 on: January 24, 2014, 01:42:07 am »
Probably it's not that hard to find the element in the XML since it's tagged with its GUID. But the difficult part is to show the context. Actually you'd need to present the difference of 2 model contexts. And that is REALLY tough. The best way is to open two instances of EA and load the old baseline in one of them. Then compare manually/visually.

q.
« Last Edit: January 24, 2014, 01:42:24 am by qwerty »

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: How to get information about an element in 2 b
« Reply #4 on: January 24, 2014, 08:54:15 am »
Probably not much use to you in your current situation, but you can collect this kind of information using the Auditing facility.

To paraphrase a couple of table entries in the Help:

Using Auditing, you can track changes to an element or connector over time ... Auditing enables an Audit History tab in the System Output window, which summarizes all changes made to the selected element or connector.  [and] You can generate a document report that includes the audit history information for the selected element.

Turn Auditing on now so that you have this information in the future (but read about it first to check that it suits your work practices).
Best Regards, Roy

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: How to get information about an element in 2 b
« Reply #5 on: January 24, 2014, 09:08:21 pm »
Could you not just take a baseline of current state. Restore baseline1 and compare to baseline2, then compare to baseline3....then restore current state if required ?