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

Pages: 1 2 [3] 4 5 ... 18
31
General Board / Re: feap file as ODBC source
« on: November 23, 2022, 11:59:19 pm »
@qwerty Does not work
@paolo what other means than ODBC is possible to access a firebird DB in a file? Using the default admin SYSDBA/masterkey does not work, either.

32
General Board / feap file as ODBC source
« on: November 23, 2022, 03:36:58 am »
From Sparx for EA16 I can download the EABase1558.feap file.
It is an empty EA repository and Firebird database file that I can open with EA16.
Selecting it in Win10 as an  ODBC Source (File DSN),  for the connetion string, I am asked for a User/Password/Role.

Any idea what to enter there?

Entering nothing does not create the connections. Also SYSDBA/masterkey does not work.

33
General Board / changing profile freezes elements
« on: October 28, 2022, 03:43:59 am »
I got a working profile that defines a stereotype for a component meta class as to be a Role with the default appearance changed to orange instead of pink.
I placed several such Roles in my model, which has the first version of the profile imported.
Than I changed the working profile, added a stereotype for a datatype meta class as to be a Physical Unit, also changed the default appearance.
Imported that to my model. Answered Yes to the question whether to override the exiting profile of the same name.

But what happened:
The roles fall back to the default appearance.
What I tried:
I synchronized the Role stereotype in the resources window. No change. I tried to change the stereotype of one Role element - no change.
The properties window shows the Role stereotype for that component, but when I open the dialog to change the stereotype nothing is checked. I expected that the role has to show checked, because the properties window tells so. I can check any stereotype but nothing changes.

The solution I found is, to select <none> profile for the problematic element, uncheck the profile name for that element, save. Now I can re-assign the Role stereotype to that element. I have to do it for each of them.

I tried to make a tiny example - tiny profile and tiny model - that resembles the problem. Hmm - no luck, changing the profile worked in the example.

But the change in my working profile still violates at least one not changed stereotype regarding default experience and the ability to newly set the stereotype.

Has anyone an idea what this problem is about?

34
General Board / EALite to view a MySQL based repository?
« on: October 22, 2022, 02:35:51 am »
Prior to trying it out I'd like ask here.
May I put the credentials of the SQL repository into EALite and than have a look at the model?

If yes: will that work with an SQL repository created and maintained with EA16 as well?
I would suppose: Yes, if the SQL repository has not changed much. Does it?

35
General Board / Re: EALite for qea files?
« on: October 22, 2022, 02:28:06 am »
Means: I have to install Pure Cloud Server?

36
General Board / EALite for qea files?
« on: October 21, 2022, 11:38:17 pm »
Just downloaded EALite and was not able to view an EA model created by EA16 in a .qea-file.
Does someone know, whether I downloaded the wrong EALite?
Or what is the plan about EALite at Sparx Systems?

Related topic: is someone aware of a transfer from an EA16 generated qea file to an eapx file?

37
General Board / Problems with EA16
« on: October 14, 2022, 02:55:50 am »
New to EA16, I found two problems:
1. Connecting two classes on a class diagram with an association and than change the custom line style to Bezier. Logically the connection is still there, but it disappears.
2. Selecting and moving Note links is not possible.

I wonder whether I am the only one.

38
General Board / Integrate helper functions to EA
« on: April 02, 2022, 04:55:22 pm »
Currently, I have some Python scripts which access remote REST services deployed on a server hosting a MySQL EA repository. On the server the REST service accesses the EA repository as well as other project information in order to gather some analysis result. The result is stored locally on the client site in a text file.

The Python scripts offer some simple item list selection or file selection dialog to specify one or two parameters for the REST service.

Now, I got the request to start these scripts from within EA - or rewrite them as an EA extension. The analysis result shall be presented in a window which shall pop up from the start of a script.

As there are several options to go - and I am not experienced in any of them - I need some help with the decision how to achive this.


39
General Board / Re: How to change XSD generation to flat style?
« on: March 20, 2022, 02:16:52 am »
The solution was simple:

I forgot to move the classes (ComplexTypes) from under the outer class to the top level. This means that the XSD generation is sensitive not only to the associations between the classes but also to the hierarchy in the project browser.

Once you know, its simple.

40
General Board / Re: How to change XSD generation to flat style?
« on: March 17, 2022, 10:38:32 pm »
updated

41
General Board / How to change XSD generation to flat style?
« on: March 17, 2022, 09:07:09 pm »
Some time ago I created a XSDschema package to generate an XML schema. The XML schema is taken as an input to XMLBeans for Java code generation.
XMLBeans works best for me, if I define just one top element and associate other complex types to it.
The result shall be totally flat, no nested element definitions inside complex types. Elements in a Sequence should just refer to types on the outer level.
This worked some time ago.
Now I had to introduce an extention (named runnable). The Schema Composer/Export XSD generates all complex types in a flat manner for all older classes. But all newly introduced classes are generated in an unwanted nested style (with some errors as well, non-associated complex types added as elements in the Sequence).
I was not able to find the difference between the new and the old complex types.
I have zipped the eapx and the generaed result here. (updated to include the eapx and the expected XML schema generation result, that I did manually.)

I would really appriciate if someone would get me back on track, so that a completely flat XML schema will be generated.

42
General Board / Re: automatic XMI export
« on: November 06, 2021, 04:13:31 pm »
"very much no": Eve, I am a bit lost with the license issue: if Jenkins runs every night and exports an xmi, who is the "user" that needs a license (I may replace "Jenkins" by "the operator responsible for Jenkins maintenance").

43
General Board / Re: automatic XMI export
« on: October 14, 2021, 01:35:08 am »
Thank you, Eve, for pointing me to the license issue. It would mean - and I see no problem about it - (let me repeat in my words:) that for Jenkins as a user we buy a personal license.

For my technical question: It would be better to use Repository.GetProjectInterface() from an EA-external program which is Connect to the Interface, rather than trying to start EA in a way executing an internal script.

44
General Board / Re: automatic XMI export
« on: October 13, 2021, 04:33:31 am »
Thank you, Geert - that works:
Code: [Select]
!INC Local Scripts.EAConstants-JScript

function OnProjectBrowserScript()
{
// Get the type of element selected in the Project Browser
var thePackage as EA.Package;
thePackage = Repository.GetTreeSelectedPackage();
theProject = Repository.GetProjectInterface();
theProject.ExportPackageXMI(thePackage.PackageGUID,22,0,-1,0,0,"C:\\Temp\\my.xmi");
}

OnProjectBrowserScript();

Now the next question is: how can I start EA from a batch file - e.g. called from Jenkins - for a certain model and running that script unattended?

45
General Board / Re: understanding SQL access
« on: September 11, 2021, 02:26:34 pm »
Yes, thank you Geert. Some feedback:
I started with your suggestion - realized that I do not have ActiveX in JavaScript - but in JScript. I could not get ActiveX in JScript work for me. However, as the xmlResult is fairly regular, regex is doing well by switching back to JavaScript:

Code: [Select]
!INC Local Scripts.EAConstants-JScript

function getDiagramIDFromQuery(sqlQuery) {
r = [];
xmlResult = Repository.SQLQuery(sqlQuery);
m = xmlResult.split('<Diagram_ID>');
for (i=1; i<m.length; i++) {
id = m[i].match(/^(\d+).*/)[1];
r.push(id);
}
return r;
}

function main()
{
diagIds = getDiagramIDFromQuery(
"select Diagram_ID from " +
"t_diagram t " +
"where t.Diagram_Type = 'Logical' " +
"and t.Name like '*Overview*' "
);
for(id of diagIds) {
diag = Repository.GetDiagramByID(id);
Session.Output(diag.Name);
}
}

main();

This selects the diagram ids of Class diagrams exposing the word "Overview" in its name.

Pages: 1 2 [3] 4 5 ... 18