Author Topic: Fetching Baselines for package  (Read 501 times)

mabed

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Fetching Baselines for package
« on: January 12, 2017, 08:16:59 pm »
Hallo,

i want to fetch the Baselines for each package.
i do this in Java:

String baseline = repository.GetProjectInterface().GetBaselines(child.GetPackageGUID(), "");

The baseline  String is so: <EA.BaseLines package="{3832D96F-AFF6-4831-8C3B-89DEAFF4DE54}"/>
But i want to fetch the version and the notes of this basline!!

how can i do that?

Uffe

  • EA Practitioner
  • ***
  • Posts: 1049
  • Karma: +80/-5
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Fetching Baselines for package
« Reply #1 on: January 12, 2017, 09:20:10 pm »
Hello,


As you've noticed there's no Baseline class, so you'll have to go to the database to retrieve that information.

Each baseline has a row in t_document with DocType 'Baseline' and ElementType 'Package'. The GUID you receive from GetBaselines() should be matched against DocID.
DocName holds the name the package had when the baseline was taken, while ElementID has the GUID of the element/package. Version and Notes contain what you'd expect, and the date and time are in DocDate.

HTH,


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

Guillaume

  • EA User
  • **
  • Posts: 542
  • Karma: +18/-0
    • View Profile
    • www.umlchannel.com
Re: Fetching Baselines for package
« Reply #2 on: January 27, 2017, 06:51:48 pm »
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com | Automated tests for scripts & addins: www.eatests.com