Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jeanfrancois

Pages: [1] 2
1
General Board / Re: [Help!] You may need to define a language macr
« on: August 06, 2010, 03:59:39 pm »
Is there any way to add such macros through the EA sdk?

2
I haven't used Transform specifically, but maybe it's similar to Importing of Code (Code Engineering -> Import Source Directory) where you can use the registry options in:
HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\AddIns\OPTIONS

For example, in import directory you can set IMPORT_TREE_CREATE_RECURSIVE to 1 to make the process include child folders.

Maybe something similar is available for transforming?

3
Automation Interface, Add-Ins and Tools / Capture output
« on: August 06, 2010, 10:01:27 pm »
Hi, this might be a silly question, is there a way to pipe output that's written to the output tab to a text file, including for example, the output from Import Source Directory, like "You may need to define a language macro."?

4
Automation Interface, Add-Ins and Tools / Re: boolean ImportDirectory
« on: August 05, 2010, 08:33:11 am »
Hi Simon, thanks for reply :)

In my case, the import was already very far along, it already imported a whole lot before it returned false somewhere midway. Meaning my directory, language, and package was ok. Why possibly would it return a false so far along?

On a mysql database repository this happens, not on a sql, which has always worked.

5
Automation Interface, Add-Ins and Tools / boolean ImportDirectory
« on: August 04, 2010, 06:46:39 pm »
Hi

When specifically does project.ImportDirectory return false?

I've gotten a false and calling project.GetLastError() remains empty.

6
I have received this exception in my console app when I cannot connect to the database repository (openfile) (connection to the sql server hosting my database) or after I am connected and lose the connection and try to access elements.

The latter case happened when I left debugger on for while, and came back and continued where it seemingly disconnected.

7
Thanks Geert :) I cant't find that function in my documentation in EA, but I see it is there in code.

Your help has always been most appreciated!

Jean

8
Automation Interface, Add-Ins and Tools / Locks and removal thereof
« on: June 24, 2010, 12:07:23 am »
Hi :)

What affect will it have if I delete t_seclocks through my own sql queries (which I currently do), is it a bad thing? I assume so since they don't allow these modification queries through the normal SQLQuery(), only select statements?

How is deleting these locks manually through sql different than removing them from in EA through Project -> Security -> Manage Locks.

The trouble is, the model needs to be unused during a process, and currently I check if locks exists in the database belonging to another user, and if so throw an exception. But how safe it is to kick that user out?

Regards.
Jean

9
:) Thanks.

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

10
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  :-[

11
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

12
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

13
Thanks :), I'll log a request.

14
Is it impossible to currently include child packages in the functions ApplyUserLock() or ReleaseUserLock()? (it always only locks the immediate package selected for me)

15
Hi

Is this possible through the EA API? Or can it only be done manually in EA itself?

I guess I can read the database and write the tables to EA myself, but would this be too complex if I need the views, stored procedures, etc, and produce it in exactly the same way EA does?

Pages: [1] 2