Author Topic: Java-API: CreateBaseline application (parameter)  (Read 2509 times)

Pegasus

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Java-API: CreateBaseline application (parameter)
« on: May 08, 2017, 11:18:48 pm »
Hello

Question to use of API for CreateBaseline. API Doc http://www.sparxsystems.com/enterprise_architect_user_guide/13.0/automation/project_2.html describes the requirement to first parameter "PackageGUID: String - the GUID (in XML format) of the Package to Baseline". I found some example for jscript but not for Java API.
I do call
org.sparx.Package packageSel = m_repository.GetTreeSelectedPackage();
...
m_repository.GetProjectInterface().CreateBaseline(packageSel.GetPackageGUID(),startDate, baseLineNoteStr + startDate);

and it runs seemingly well, but I'm not sure if I use the api well.
Can someone confirm or please describe correct use of api.

Thank you  in advance
Pegasus

qwerty

  • EA Guru
  • *****
  • Posts: 12841
  • Karma: +367/-296
  • I'm no guru at all
    • View Profile
Re: Java-API: CreateBaseline application (parameter)
« Reply #1 on: May 08, 2017, 11:43:51 pm »
As written in the other reply: see GetProjectInterface GUID XML conversion routines.

q.