Book a Demo

Author Topic: how to forget version control system?  (Read 4977 times)

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
how to forget version control system?
« on: November 12, 2019, 04:47:54 am »
We used to link packages to PTC version control.
Now we want to switch to an optimistic version control approach (hoping for gained productivity and less VC problems with inter package links).

How can I get rid of all the locks at the packages - visible by these black box hosting a white key?
Do I have to visit each package, check it out and uncheck the "Control Package" checkbox?

Rolf

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: how to forget version control system?
« Reply #2 on: November 12, 2019, 05:02:04 am »
An administrator should be able to release all locks in one single operation, just make sure that nobody is editing anything when the locks are released. Additionally, I would advise for the administrator to be the only one using Sparx and connected to the repository when the locks are released.

Administrator means the admin or anybody belonging to the administrators group.

Locks can be released from the Locks icon on the Configure tab of the ribbon.

Edit: https://sparxsystems.com/enterprise_architect_user_guide/14.0/user_interface/using_the_security_panel.html
« Last Edit: November 12, 2019, 05:05:06 am by Modesto Vega »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: how to forget version control system?
« Reply #3 on: November 12, 2019, 03:28:08 pm »
I think this question is about version control locks, not user security locks.

Geert

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
Re: how to forget version control system?
« Reply #4 on: November 14, 2019, 11:58:30 pm »
Thank you Geert for providing the script.

I would like to run it but got stuck.
First I realized that wrapper.include is missing.
I found this site claiming to explains how to download, import and use the library in Enterprise Architect.

However, from that I could not figure out the bootstrap procedure (although I did it several years ago). In the chapter Initial Import a sentence start with After downloading the file select menu option Project|Data Management|Import Reference Data ... where I cannot find, which file is talking about. It can't be the git zip file, as Import Reference Data need one xml file.

Need some help here, Geert.
Rolf

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: how to forget version control system?
« Reply #5 on: November 15, 2019, 12:29:21 am »
Import Reference data is now at
Configure | Model | Transfer | Import Reference Data

If you download the xml file you should be able to import that.
From there on you can then import the rest of the scripts as described.

Geert


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: how to forget version control system?
« Reply #6 on: November 15, 2019, 12:49:11 am »
Looking at the script again, I think it only uses the script EA Enums to get the value csCheckedIn (=1)

The EA Enums script is nothing more than

Code: [Select]
'[path=\Framework\Utils]
'[group=Utils]


!INC Local Scripts.EAConstants-VBScript

'
' Script Name: EA Enums
' Author: Geert Bellekens
' Purpose: Contains the enums missed by EAConstants-VBScript
' Date: 2017-10-20
'
' Version Control Status
' From http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/automation/package_2.html
const csUncontrolled = 0
const csCheckedIn = 1
const csCheckedOutToThisUser = 2
const csReadOnlyVersion = 3
const csCheckedOutToAnotherUser = 4
const csOfflineCheckedIn = 5
const csCheckedOutOfflineByUser = 6
const csCheckedOutOfflineByOther = 7
const csDeleted = 8

Geert

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
Re: how to forget version control system?
« Reply #7 on: November 15, 2019, 06:21:12 am »
Yes, super! Thank you Geert. Works like a charm. All VC connections are removed.

However, a last help to get the bootstrap done for loading the EA VBScript Library: Which xml file to download from where to import using Import Reference Data?

Maybe I am blind, but I can not identify it from the text in this site .
Rolf

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: how to forget version control system?
« Reply #8 on: November 15, 2019, 08:13:44 am »
The original is found here: https://bellekens.com/2015/12/27/how-to-use-the-enterprise-architect-vbscript-library/

From that page you can add the xml file to your cart and checkout.

Geert

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
Re: how to forget version control system?
« Reply #9 on: November 19, 2019, 05:24:51 am »
Thank you - that worked
Rolf