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

Pages: 1 ... 5 6 [7] 8 9 ... 44
General Board / Re: Cannot import UML patterns on a MySQL DB
« on: January 31, 2018, 09:21:04 pm »
As a follow up, I found a way round via a script:
- the user selects the folder and provides the XML file name
- the script gets the content, and reads the pattern name, notes, version, and category
- the script runs an insert query in the t_umlpattern table

I also had to change a column type to longtext in MySQL on the t_umlpattern table (alter table...).

General Board / Cannot import UML patterns on a MySQL DB
« on: January 31, 2018, 07:18:39 pm »

I'm getting the following error when I try to import a UML pattern: "Failed to import Pattern '...'.  Pattern too large for database field."
I found a thread here matching this issue on MySQL EA projects:,26367.msg206158/topicseen.html#msg206158

Unfortunately even removing the image does not sort the issue as the XML file remains to large (140 kB).

Is there a way round to resolve this with the current build?


I have a very large EA project running on a centralised DB. I need to run EA 13's batch to create diagrams cache (images of each diagram are created in the DB).
Unfortunately EA eventually crashes after 5 mins.

Is there a way to run this batch update via an API call in an attempt to handle in a better manner the high volume of data to process?

General Board / Re: Unlock a Block element
« on: January 19, 2018, 08:36:10 am »
You can lock elements even when the security is not enabled.
Having the locked Block displayed on a diagram, a right click will show "Lock Element" - if the padlock is highlighted it means that the element is locked so you simply need to click on this option (Lock Element).

Uml Process / Re: [sysML1.4] How to type a connector with EA
« on: January 18, 2018, 03:59:29 am »
Having created the association block (K-Matrix on your BDD -> association between Gateway & Radar), I tried to set the connector type in the IBD between the corresponding parts.
A right click on the IBD connector between the parts > Advanced > Set Connector Type lets me choose the matching connector on the BDD. If you name that connector, it will no longer appear as anynomous - but this is not what you wanted i.e. it should display the name of the association block.
So my understanding is that Sparx only implemented a link between the BDD & IBD connectors based on the BDD connector name. I think the SysML association block is simply not implemented in EA.

Sounds like a SysML feature request.

A workaround would involve using Geert ea-Matic to set the connector's name when an association block is created (I tried it and it works).

I confirm that renaming the current installation e.g. C:\Program Files (x86)\Sparx Systems\EA to C:\Program Files (x86)\Sparx Systems\EA12 prior to install a new version (e.g. 13.5) works.
I find this very useful as my clients don't all use the same/latest version.

General Board / Re: Diagram simulation with prompts
« on: January 12, 2018, 05:21:39 pm »
Hi Nizam,

Yes I looked at it but I found the dialog window from a trigger & signal better as it does not require to define any custom window.
Where the BPMN + Win32 dialog works ok, I'm still interested in understanding how to make the Triggers/Signal work on a common activity diagram.


General Board / Diagram simulation with prompts
« on: January 12, 2018, 04:33:29 am »

I need to set up an example for a project that needs to generate result values based on the input value + rules on an activity (or state chart diagram).
I had a look at Sparx EA Example. I found that triggers & signals with attributes can be used to prompt users for inputs (e.g. in the Music Player > PlayList).
Oddly I cannot get this to work on a new State diagram.
I created a Trigger call Input1 with an associated signal Input1 that has a Name attribute.
In the statechart diagram, I created a transition to the first state with:
- effect = this.input1=this.Input1.Name
- Triggers = Input1 (Signal) -> an entry is visible in the list.

When running the interpreted simulation, EA doesn't stop nor prompt for anything. What seems to be missing?

Also, can I triggers on Activity Diagrams to prompt for values when running the simulation?


It confirms what I thought. As a workaround I created array variables with the formatting definitions matching the stereotypes.


I have a project running a custom UML profile via an installed MDG where UML stereotyped elements are displayed with custom colours.
Is there a way in a script via EA API to retrieve the current default bgcolor value on a given stereotype?


General Board / Re: Package template - update existing elements
« on: January 09, 2018, 06:49:06 pm »
I wanted to use a package template prior to run a reverse engineering.
I was expecting to have the new colour on the generated classes following the reverse, and I wanted to find a way to apply the package template colours on existing elements from previous reverse engineering runs.

Anyway the template is not picked up by new reverse engineering, so I had to look for an alternative solution.
I found the SetAppearance on EA Elements which fulfils what I was looking for.

General Board / Re: Package template - update existing elements
« on: January 05, 2018, 11:44:17 pm »
Having looked at EA behaviour, I found out that when you enable the Package Template, EA applies the style on the element's associated diagram objects (backgrnd, font, etc.)
However it only works with elements that were created after enabling the Package Template so I can't figure out how EA differentiates elements that can be rendered according to the template (new elements) from the old ones.

I looked at the t_object content and there's nothing different between a new and an old element. I suspect EA stores something hidden somewhere, though I didn't find anything in the t_xref.

It would be useful for those who write and maintain scripts.
For instance gathering the current script name could also be useful to have a generic/universal session.output call such as " Session.Output Now & currentScript.Name & " INFO message...."

I found a workaround by adding fake scripting ids via constants in a common file.

FYI, I have a number of scripts that prompt the user to select a destination or source folder with the files to process (e.g. Excel export or import). To save time, I'm storing in EA t_xref the selected folder for each script so the user can keep or modify it, hence the need to know the script id.

General Board / Package template - update existing elements
« on: January 05, 2018, 06:43:59 pm »
Package templates can be useful to alter the default colours for elements as illustrated here:
It works for elements created after the Package Template has been defined.
Is there a way with EA or any available scripts out there to update existing elements default rendering?



I'd like to call a common function where the expected argument is the script ID (as per t_script.scriptid).
It doesn't seem to be possible to dynamically retrieve such information for the running script. Am I missing something or do we need a new Repository.GetCurrentScriptID method in the API?


Pages: 1 ... 5 6 [7] 8 9 ... 44