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 - Geert Bellekens

Pages: 1 ... 6 7 [8] 9 10 ... 513
There's no need to guess. The property names are all documented in the manual; you just have to read it.



The problem with that approach is that your "reusable" callable processes are not linked to a bunch of other elements so you don't really know anymore what is part of a process model and what not.
In an extreme case you could have re-used two callable processes on two different diagrams. Now suppose you link those two in the second business process diagram.

Because you are re-using the elements, the link between the two callable processes will now also be visible on your first business process diagram, without your knowledge, and probably also without your intention.

I think all elements displayed on a BPMN business process diagram should be owned by that business process to avoid any mishaps.


I have done something like this in vbscript:
- Script that calls the function decodeBase64zippedXML():
- Script that defines the function decodeBase64zippedXML()
- BinaryFile and FileSystemFolder scripts are found here:

What I do is read the contents and write that in a binary file with extension .zip. Then I unzip that zipt file and then read the unzipped file as a text file.
The contents of that textfile is then base64 decoded and voila, there is the plain text content.


I don't think there's a better way.

For one of my customers I've written a small script to synchronize the names (and transform a link with an "instance")


Automation Interface, Add-Ins and Tools / Re: C# EA Wrapper available
« on: September 21, 2017, 11:19:58 pm »
You should be consistent in naming operations: FindorCreateConnector

You don't understand. Its Findor who creates the connector. Findor is a Japanese manga character  ;D


Automation Interface, Add-Ins and Tools / Re: C# EA Wrapper available
« on: September 21, 2017, 09:57:28 pm »
Maybe a good idea to publish it as open source software at github or similar?

I did so with my framework:


I tried that last time in order to set the Action Kind on an Action, but without succes.

The insert actually went through, but right after that EA execute a statement
which resulted in error popping up. There was no way to intercept that exception.
Since my usecase at that moment was only to update existing action kinds I only implemented the update (that went without problems) and I did not investigate further.


General Board / Re: Update EA Repository Query
« on: September 21, 2017, 07:46:38 pm »
Yes. Tried that. But what I was trying to point out was directly manipulating the database bypasses a certain amount of logic. So you need to know what you are doing. Often one update results in lots of small updates in other places in the database. So this also must be replicated.
Indeed. There's a reason why this operation is hidden and unsupported by Sparx.
If you decide to use it you better know what you are doing.


General Board / Re: Update EA Repository Query
« on: September 21, 2017, 01:23:24 pm »
I have been using the API extensively and especially the SQLQuery. The API just like the SQL Scratch Pad rejects anything that is not SELECT.
The work-around (and this is really dangerous in some conditions) is to go direct to the database using your favorite DB API.

Please post the SQL you are attempting. Maybe there is some API or easier way.

Jon, have you never tried Repository.Execute()? That is a whole lot easier then to make your own db connection and execute a query that way.


I think it works even without specific code. If you pass the ElementID then EA will select that element in the project browser upon doubleclicking.


General Board / Re: Diagram elements showing a red A
« on: September 21, 2017, 02:01:57 am »
Is it really easier to post a question on the forum than to search either the forum or the help? ???


Just happens to be that I'm struggling with that as well.

In fact EA stores the navigability information in 5 different database fields in t_connector:

Direction, DestIsNavigable, DestStyle, SourceIsNavigable and SourceStyle

Sometimes (e.g. when importing Magicdraw xmi files) these fields get out of sync. I have an example that has direction "Destination -> Source" but has DestIsNavigable = 1 and SourceIsNavigable = 0 (and not navigability info in the Style fields)

Apparently the Direction always has priority over the other fields, because EA shows this association as navigable at the source and unspecified at the target.

And then there is also something weird when saving calling update on associationEnds. The one with no aggregationKind should be saved first or you loose the aggregation info.


Bugs and Issues / Re: Model Search: How to inhibit null <Search Term>
« on: September 20, 2017, 05:40:48 pm »
If you are using an SQL search you can make sure that there is no result when the user doesn't fill in the search term.
Otherwise I don't think there is much you can do.


Geert, I have written already: I have script window floating which causes described issue.
The diagram is docked to main window.
Sorry I must have missed that.

Anyway, what I usually do to debug my scripts is to comment out the call to the main function and create a "test" function.
In this test function, instead of getting the current diagram, I test my functionality with a specific diagram which I get based on it's GUID.
That allows me to test 99% of my script code. The only thing that I'm not able to test this way is the GetCurrentDiagram call itself, but I'm sure that works just fine.


General Board / Re: Primitive Types in Tags
« on: September 18, 2017, 10:43:06 pm »

It's only after this post that I understand that you are talking about tagged values definitions on stereotypes in UML profiles.

Having that information could have prevented a lot of misunderstanding.

Anyway, the easiest way to go about this is to use the profile helper. Right click on a stereotype element on a diagram and choose "Profile Helper"
There is window that allows you to define the tagged values for that stereotype.

A "String" type tagged value is the default type (no need to do anything special) but the dialog allows you to enter all the different types of tagged values.


Pages: 1 ... 6 7 [8] 9 10 ... 513