Book a Demo

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 - aloeffen

Pages: [1] 2 3
1
Case description:
Some EA project export with SQL errors due to flawed image ID recognition routine.

How to test:
In EA 17 create a class diagram and a class with some tagged value. Set the value to id=00001&type=term 
Export to XMI 1.1 or 1.2

Result:
The SQL query that collects images to export (cf. image manager) causes API error: SQL API Open FAILED with error: no such column: term
If images are introduced in notes fields, none of these images are exported.

Possible reason:
The routine that finds references to images triggers on id= anywhere in de value and all text that follows it.
- This method of identifying images is flawed. 
- The & is the reason the SQL query fails.

Impact:
Very big impact for projects that rely on XMI exports that use, for example, URL values for tagged values as in http://www.sample.com?id=00001&type=term.
The export is halted, waiting for user okay. 

Tested on:
EA 17.0.1704 64 bit


2
Thanks Geert and Qwerty, I think I'm thrown back to reverse engineering. I did about the same as Qwerty describes, but suddenly the toolboxes do not load anymore. Back to the drawing board.

3
Hey Qwerty,

What spec did you base the development of your validator on?

Arjan

4
We use custom class toolboxes to support our customers in building class models that adhere to a specific metamodel.

We are searching for a way to validate the generated Toolbox XML (esp. "profiles" imported as an MDG technology). We'd expect an XML schema to be available.

- Where can we find such a schema?
- Where can we find additional "tools" for validating the toolbox/profiles generated?
- Where can we find a technical spec for the Toolbox?

We use EA 15 & 16.

Thanks in advance!
Arjan

5
Thanks for your observations. This is unsettling.
We read the XMI 1.1 directly to process the class model.

I would assume that roundtrips are stable, i.e. read/write of the XMI would always ensure the same order. As I think this is the case (never found out otherwise) there MUST be a describable way that constructs are ordered. Sparx must be able to specify. I could not find that out, however.

Also, I would assume a project can be passed on to a newer version of EA without reordering the project. If this is not the case, this may be a reason for users to stick to an older version. Not a great business approach.
 
I admit that some constructs are not in the project browser (which is to some extent a flaw in the EA design, historical reasons I presume): e.g. associations and notes are not parts of the project browser. For associations we had to introduce tagged values to supply a "relative position".

Arjan

6
Automation Interface, Add-Ins and Tools / Order of constructs in XMI 1.1
« on: August 20, 2018, 04:04:41 am »
Dear EA people,

does anyone know how EA determines the order of constructs in the project browser, e.g. classes within a package? If you move classes about within the package (using up-down arrows) a tagged value "tpos" is set. But if you don't, all constructs have a tpos of 0 (the default).
I read in "Topic: Re-ordering/ Preserving Connection Order" that this is probably an order by ID (!). True?
In that case I can copy that order in derived products (schema's, catalogues etc.) based on ID when tpos is 0, and tpos otherwise...

Thanks in advance.

Arjan

7
Bugs and Issues / Re: Bug in XMI 1.2 export
« on: June 13, 2016, 05:18:49 pm »
Thanks. Bug reported.

8
Bugs and Issues / Bug in XMI 1.2 export
« on: June 13, 2016, 03:20:24 am »
I encountered a bug in XMI 1.1 export of EA 12.1.1229

Sometime a wrong (nonexisting) character is referenced.
F [Xerces] Character reference "&#56520" is an invalid XML character.

This bug cannot be easily reproduced. When I did a second export the bug did not reappear. Actualy the relevant section contains whole other statement, which I cannot explain.
 
But here you'll find the EA and the XMI that was created: http://www.armatiek.nl/Imvertor/eabg.zip

9
Bugs and Issues / Re: Focus foreground when using DLL
« on: January 08, 2016, 07:53:54 pm »
You state:
Quote
If it doesn't work you should probably look at how you're initializing your connection to the repository, make sure everything is done in the right order.
Now I am using:

repo = new Repository();
repo.ShowWindow(0);
repo.SetEnableUIUpdates(false);
project = repo.GetProjectInterface();
repo.OpenFile(sourcePath);
project.ExportPackageXMIEx(project.GUIDtoXML(rootPackageGUID), EnumXMIType.xmiEADefault, 1, -1, 1,0, resultPath, 0);

Do you see anything out of the ordinary?

Thanks,
arjan

10
Okay; thanks.

I must admit that in 12 imho the UI has degraded (as least for Class Model management); it doesn't assist well any repetitive work.

arjan

11
Bugs and Issues / Re: Focus foreground when using DLL
« on: January 08, 2016, 08:10:07 am »
I specified:

project.ShowWindow(0);
repo.ShowWindow(0);
repo.SetEnableUIUpdates(false);

This doesn't help. It doesn't affect behavior. I do not know how to interpret:

ShowWindow (long Show)

as the long Show is not explained anywhere (or at least I cannot find its definition at or near http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/automation/project_2.html).

Can you help?

arjan

12
Bugs and Issues / Focus foreground when using DLL
« on: January 08, 2016, 02:26:09 am »
Sparx EA keeps pressing itself to the foreground (without any actual screen interaction) when I start a EA process using the DLL/java API.  For example, exporting to XMI or generating a report "in the background" inhibits any further interaction with the Windows OS as EA presses itself to the foreground.

How can I stop this behavior?

This has been the case in EA 10 as well as in EA12.

arjan
 

13
In EA 12, when I select down arrow behind the attribute type in editor dialog, and choose "Select type..." I get the project browse view (tree), but the actual (assigned) type is not preselected. Why not? Is this an option? Which one? If this function removed (it was there in EA 10), please add it. It makes working with attributes HARD.

arjan

14
Suggestions and Requests / SSJavaCOM to 64bit
« on: June 27, 2012, 09:24:55 pm »
Anyone planning to release an 64bit SSJavaCOM.dll or is there a way to make this dll work for 64bit systems?

SSJavaCOM (as EA) is a 32 bit system. I'd like to access functionality from java environment using eaapi.jar on my 64 bit system.

Thanks!

15
How can I set Auto routing default behavior for all diagrams? In a diffferent installation of EA I have this working (cannot remember how that happened), but I cannot find the way to set this under my new Windows7 install. I use EA 8.0.

Help file doen't give an answer it seems.

Thanks in advance!

Pages: [1] 2 3