Book a Demo

Author Topic: Project.ImportDirectory - locking/security enabled  (Read 6063 times)

jeanfrancois

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Project.ImportDirectory - locking/security enabled
« on: June 08, 2010, 02:33:56 am »
HI

When I automate reverse engineering through "ImportDirectory" and my model is setup with security where the option toggled that packages must be locked for it to be edited, the ImportDirectory does not work for me.

It shows the progress window with the message
"Skipping Parent Locked Package mypackagename"

Does EA lock this with some EA default user behind the scenes so that I cannot use ImportDirectory as one of my own users set up for the model? I don't know how to get around this?

Any have a problem with this? (EA 8.0, 856)

Jean

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Project.ImportDirectory - locking/security ena
« Reply #1 on: June 08, 2010, 03:41:32 pm »
Jean,

Have you tried to lock the package(s) in your program/script?

Geert

jeanfrancois

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Project.ImportDirectory - locking/security ena
« Reply #2 on: June 08, 2010, 05:41:36 pm »
Hi Geert :)

I cannot lock them since I call ImportDirectory and set the option "Create Package Per Directory" so it creates the packages automatically as it goes along reverse engineering.

But I've managed to get it working for some cases, just in one it still doesn't work for me. In those cases it worked I find that EA locked the packages automatically for me (when I get into EA the resulting imported packages and classes are all blue '!'s).

I'll try to see why it cannot do it for the other case. It stops at the very first package it creates and tells me "Skipping Parent Locked Package bla" where bla is that package created.

I have tried locking the parent package too (the one in which I am reverse engineering), but with no luck.

Jean
« Last Edit: June 08, 2010, 06:00:29 pm by hdjjqj »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Project.ImportDirectory - locking/security ena
« Reply #3 on: June 08, 2010, 05:45:27 pm »
Have you noticed a difference between the "importDirectory" done via the user interface and the same function using the API?
In that case I would definitely report it as a bug.

Geert

jeanfrancois

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Project.ImportDirectory - locking/security ena
« Reply #4 on: June 08, 2010, 06:17:40 pm »
Hi Geert :)

Well it works now when I lock the parent package. Argh, stupidy on my side again. The reason it didn't work before because if the imported folders already exist I didn't lock them as well.

Sorry  :-[
« Last Edit: June 08, 2010, 06:18:09 pm by hdjjqj »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Project.ImportDirectory - locking/security ena
« Reply #5 on: June 08, 2010, 06:47:30 pm »
No worries, happy you got it working. :)

Geert

jeanfrancois

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Project.ImportDirectory - locking/security ena
« Reply #6 on: June 08, 2010, 11:17:00 pm »
:) Thanks.

Is there a way to turn locking/security on and off? (IsSecurityEnabled) and then turn it on again?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Project.ImportDirectory - locking/security ena
« Reply #7 on: June 11, 2010, 04:44:50 pm »
I don't think so (unless you edit the database directly)

Geert