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

Pages: 1 2 [3] 4 5
31
With the ever increasing sizes of models and information stored in these models (associations), the likelihood of having more than 32767 elements returned by a query (using GetElementSet) is almost certain.  Upon reaching this point, the automation tools used would need heavy re-work to address this limitation.  Mechanisms would need to be put in place to detect this condition and alert the users that the automation tools will not function.

To avoid this (and maintain backward compatibility), can new classes and APIs be defined that do not limit the count values to shorts (eg. GetElementSetExtended that returns and an EA.CollectionExt class which contains Count as an unsigned int). Changes to the automation tools would be done through search and replace in the majority of cases. Detection of this overflow condition could be done by comparing the count values returned in the two different collection classes. 

32
Bugs and Issues / DAO.QueryDef[3219] Invalid operation
« on: March 15, 2017, 03:20:23 am »
I have seen the DAO.QueryDef[3219] error being generated in EA 12.1 when the number elements returned by GetElementSet is "too big".  This same issue has been reported by others on the forum.  The specific size where this occurs is not clear. 9443 elements fails;  8119 elements passed.

This error does not get generated with a DBMS repository.  It appear to occur with a stand-alone JET 3.5 database.  I have been informed by a counter-part the EA 13 appears to not generate this error.  I have also observed that setting the "Use JET 4.0..." option results in the error no longer appearing even though the database itself is still a JET 3.5 database.

33
The issue is caused by the size limitation on a collection and with Collection.Count being a Short.  94002 is what is returned by the SQL scratchpad; truncation of 94002 (0x16F32) to a short yields 28466 (0x6F32).  In my case, my query is greater than 32767 so the count is no longer valid (either reported as negative value or a bogus positive value).

34
Sorry for the delay in responding.  In the picture shown by q below, when I click on "a" in the tagged values window, the sub-pane shows the notes that were populated in my MDG.  I like this.

If there were notes captured in the MDG for that attribute "a", the sub-pane just shows the name of the tagged value.  I am OK with this since there were no notes in the MDG.

For the parent class, the sub-pane always re-iterates the profile::stereotype (name). In the MDG, I have notes captured for these stereotypes that I would like to be shown in the sub-pane.  The behaviour applied to the tagged values within a stereotype should be extended to the stereotype itself.

35
I have created an MDG with numerous stereotypes.  These stereotypes have various attributes.  Notes have been populated for the attributes and the stereotypes.  When I create elements of these stereotypes, the notes from the attributes in the MDG show up in the TaggedValues window when I have selected a specific tagged value.

The notes for the stereotype itself do not show up.  The split pane is in the TaggedValues window is empty. If I click on the element type in the TaggedValue window, the split pane shows the same information; Class (XYZ) is shown in the pane for an XYZ class.  When clicking on tagged values, the notes that were defined in the MDG show up in the split pane.

I would like a way to display the notes associated with the stereotype in the MDG to be displayed.  These note provide references regarding where the stereotype is defined, how it is used, etc...

36
Thanks Q.  Will submit a feature request.

37
General Board / Displaying notes associated with a stereotype from MDG
« on: March 03, 2017, 11:46:36 pm »
I have created an MDG with numerous stereotypes.  These stereotypes have various attributes.  Notes have been populated for the attributes and the stereotypes.  When I create elements of these stereotypes, the notes from the attributes in the MDG show up in the TaggedValues window when I have selected a specific tagged value.

The question is "Is there a way to display the notes from the stereotype itself?  Is there a window where the notes from the stereotype would be displayed or an option?"  If I click on the element at the top of the Tagged Values window, the notes area just displays the same information, it does not display the notes from the corresponding stereotype.

I am using 12.1

Thanks.

38
Bugs and Issues / Re: Default(?) Relationship Matrix Issue
« on: January 05, 2017, 04:54:23 am »
This works. I found that opening another project and setting Type to something never used (eg Screen) would allow me to get past the issue but I was concerned about other team members, new projects, etc..  My work instructions can be updated to indicate the Relationship Matrix should be opened via the ProjectBrowser instead of the Tools menu to avoid the scenario where Type is set to <All>.  Thanks!

39
Bugs and Issues / Default(?) Relationship Matrix Issue
« on: January 04, 2017, 03:47:06 am »
When opening the Relationship Matrix, EA hangs (or at least I give up waiting) because the profile (default?) is attempting to show all elements within the Model node.  My current model has over 100k elements.  How can I either clear the current matrix so that it does not attempt to display anything when I open the Relationship Matrix?

40
Automation Interface, Add-Ins and Tools / Re: Parallel script execution
« on: November 23, 2016, 05:40:07 am »
The problem is related to xmi files that are being imported.  Connections between elements in these xmi files are captured as qualified paths.  So after importing these xmi files, connections need to be established between various elements so that if an element is later moved, the relationship is still captured (the textual relationship could be updated based on the connection between two elements.

The script is expected to look for these tagged values and see if the referenced element exists.  If so, a connection between the elements is created.  Otherwise, a warning is logged to indicate the referenced element does not exist.

I will look into C# but had heard that performing various processes outside EA generally took longer than doing these from internal scripts. In this case, the ability to run multiple concurrent jobs might be beneficial.

41
Automation Interface, Add-Ins and Tools / Re: Parallel script execution
« on: November 17, 2016, 06:12:52 am »
Some additional info.  I have split one of these scripts into multiple smaller and run them from multiple instances successfully with a significant performance improvment (all 8 cores on my computer working hard instead of just 1). 

A background on the problem.  I have a significant number of classes that contain references (full qualified path) to other classes as tagged values. The script should use these tagged values to create connections between the source element and the referenced element.  One of the problems has to do with duplicate classes and non-unique element names. For example, if 2 components have a common interface (one provides and one requires), both components may define the same interface. The tagged value for one component would point to its interface definition within its package structure. An SQL query on all interfaces having a specific name would return multiple results.  A check of the fully qualified path would be needed to ensure the correct element is being connected.

I would like to make my script(s) work smarter and reduce the results from the SQL queries.  One thought is to use the Alias field to hold the full qualified path of all my elements. Doing so would allow me to do an SQL with the full qualified path instead of just the element name, stereotype, etc.. Is there any issue with using Alias for this purpose? Does EA use this for anything specifically?

42
Automation Interface, Add-Ins and Tools / Parallel script execution
« on: November 07, 2016, 11:28:51 pm »
With a DBMS repository, it appears possible to run multiple scripts simultaneously. I believe I could run multiple instances of EA and run a different script in each instance or alternatively multiple users could each run a different script from their machine. Currently, I have some scripts that significant amount of time to execute (eg. 16 hrs). Some of these scripts could be split up and executed in parallel (eg. each script operating on specific stereotypes).

Has anybody had any experience with running multiple scripts in parallel and seen a reduction in overall execution time?

43
Each smaller query was done on a specific object type (eg. class, interface, etc) and a specific stereotype.  For each element found, I streamed the results to the console, exported to Excel and sorted on Element ID as well as UUID and found no duplicates.

44
Hi Paolo,

I did not think about this.  Unfortunately, it appears the results returned by the SQL are not complete.  I created a model in an eap file and transfered it to a DBMS repository.  Running Repository.GetElementSet("select * from t_object where Object_Type <> 'Package'", 2) from the EAP file (JET type) generates 3 DAO.QueryDef[3219] errors and the collection only has 28,466 elements. Running the same operation on the DBMS repository (SQLSVR type), generates no errors but also only 28,466 elements. Breaking the query into 120 smaller queries and summing the results indicates that there were 93,736 elements (non packages) in the model. This is close to 94,002 results that I got from the SQL scratchpad.

Why only 28,466 elements were returned by the SQL and why no errors when the query was run on the DBMS repository? This is a bit concerning.

45
General Board / Re: Controlling order of classes and attributes
« on: October 20, 2016, 02:32:01 am »
Hi Guillaume,

Thanks, we went with a similar approach to resolving.

Pages: 1 2 [3] 4 5