Author Topic: VersionControlCheckout / VersionControlCheckout  (Read 4756 times)

Amaurilo

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
VersionControlCheckout / VersionControlCheckout
« on: June 04, 2016, 07:33:28 am »
[my primary language is portuguese]

Hi,

I need to perform some mantainance to a package.
My problem is that the package is 2 levels bellow the controlled package.
At my current level of expertise I can only checkout a selected package.
Any help?

Tks
Amaurilo
« Last Edit: June 04, 2016, 07:35:08 am by Amaurilo »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: VersionControlCheckout / VersionControlCheckout
« Reply #1 on: June 04, 2016, 02:40:15 pm »
You have to use the operations on the EA.Package such as EA.Package.VersionControlCheckout

See http://sparxsystems.com/enterprise_architect_user_guide/13.0/automation_and_scripting/package_2.html for more information

Geert

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: VersionControlCheckout / VersionControlCheckout
« Reply #2 on: June 06, 2016, 04:32:40 pm »
Hi Amaurilo,

if your package is below (nested) to a controlled package don't worry. Just check out the controlled package, do your work and check it in. Your nested package is inside it and all the work is stored in Version Control. You can check it by simply reading the *.xml and searching for a few class names or so.

You may think about what packages are to put under version control. In my opinion a fine granulare structure (almost every package under Version Control) is beneficial:
  • Fewer lock conflicts
  • Version Control reflects your package / working structure
  • Faster
  • My feeling

Regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Amaurilo

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: VersionControlCheckout / VersionControlCheckout
« Reply #3 on: June 08, 2016, 06:47:19 am »
thank you all for your comments.

I have just discovered  that using the feature "Repository.GetPackageByID()" I can get control of any package in the model. that's what I needed to checkin/checkout.

I Agree with Helmut about granularity but , unfortunately, I can not make adjustments right now.

Best regards

Amaurilo