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 2 [3] 4 5 ... 806
31
The elements under the "{} package" are non-modelling elements
Why would you say that? I see things like notes and boundaries in there. Why do you call those "non-modelling" elements?

It's just that EA has chosen in the past to hide those elements in the project browser. The fact that they are now visible in the project browser is a good thing in my book.

Geert

32
Automation Interface, Add-Ins and Tools / Re: v16.1 - Can't login as admin
« on: November 25, 2022, 09:39:32 pm »
The fact that it is still not possible to map the repository admin account to an AD account or group is beyond me. The same applies to PCS by the way.
I think that's a good thing.

In case the connection to AD fails for some reason, you still have a way to get into the model with the admin account.

We have an admin group, that has all the rights, and is linked to an AD group. The admin account is simply an emergency backdoor.

Geert

33
Bugs and Issues / Re: V1605 copy /paste note size bug
« on: November 25, 2022, 08:15:49 pm »
They released version 1622? I'm only on 1621

Geert
They in fact did, but forgot to tell us about it on the forum.

According to the release notes they've fixed a number of issues that were reported very recently.

Geert

34
This is what I see:

1. Created a diagram from main program on .qea repository and do not close the connection
2. Open EA .QEA repository from either same or different user
3. Diagram is visible


I also tested what happens when I have the .qea repository already open:

1. Open EA .QEA repository from either same or different user
2. Created a diagram from main program on .qea repository and do not close the connection
3. Diagram is not visible
4. Reload package makes diagram visible.

For me the behavior is exactly the same regardless of exiting EA in the code.

If you would like personal support you can email me at geert@bellekens.com so I can send you a quote.

Geert

35
Bugs and Issues / Re: V1605 copy /paste note size bug
« on: November 25, 2022, 07:46:39 pm »
They released version 1622? I'm only on 1621

Geert

36
General Board / Re: Apply Locks to Connectors - why is it not symmetrical?
« on: November 24, 2022, 10:22:27 pm »
The word Association is used so often there that it's basic definition drowned.
I know, but I also remember looking up the details a few years ago, so I knew it existed.
So it was a matter of Ctrl-Shift-F for "Association" and scrolling through the results until I found "Association [Class]"

Geert

37
General Board / Re: Apply Locks to Connectors - why is it not symmetrical?
« on: November 24, 2022, 09:40:01 pm »
Hu, I know took a look into UML 2.5. Turns out that I got confused by EA's definition which puts anything into t_connector. There is no UML element named Association. Only (abstract) Relationship which relates any number of Elements. And DirectedRelationship which has Source and Target.

q.
There is in fact. Look at ยง11.8.1 on page 219

An association is both specialization of Classifier and Relationship, and it is linked to [2..*] memberends.
But definitely no Source or Target anywhere near the Association.

Geert

38
General Board / Re: Apply Locks to Connectors - why is it not symmetrical?
« on: November 24, 2022, 06:30:03 pm »
I agree with Paolo, it depends on the "dependency" direction.
Who depends on who.

In most cases the source depends on the target. So adding a relation from the source to the target effectively changes the target, without changing the source.

Associations in UML don't have a source or target. They have one in EA, but that is a technical solution, not a functional property.
You could think of rules when to allow associations (e.g. look at the owned property thing), but the safest bet is to restrict the creation of an association if either source or target are locked.

In ArchiMate there is (to my frustration) even a example of the reverse logic. The relation Serving (a.k.a. UsedBy in v2) has an inverse dependency.
If I create a serving relation from A to B, that means that B depends on A.

To conclude: in most cases following the source to target logic makes sense, but there are exceptions.

Geert

39
General Board / Re: Apply Locks to Connectors - why is it not symmetrical?
« on: November 24, 2022, 03:15:39 am »
Can anyone see a problem with making the locking more restrictive? Or am I 20 years late into a debate that has already happened?

Yes, I have situation where I have a locked package with business processes.

My functional analist are making use cases that realize those business processes, and as such they create a dependency from the use case to the business process.

If your proposal was followed, this would not be possible without unlocking the business process package.

Most relations are unidirectional, so only the source should be writeable to be able to create a new relation.
Exception are the bi-directional associations. For those I could understand that both ends should be writeable.

Geert

40
They did change something with regards to those get operations. In some cases they now throw an exception instead of returning null.

But in this case, I think it's more like an internal change in the way the API gets objects. If an object doesn't have a packageID, it should not exist.
The GUI will not show you this object, and the Project Integrity Check will rescue these orphans and give them a new home (package).

So I'm afraid your "elements without a package) workaround is simply a wrong approach that needs refactoring.
(also, what happens if someone creates a second object with he name "ColoresAddinGobiernoDinamico"?)

Geert

PS. There is a faster way to get elements based on a query. You can use Repository.GetElementSet(query, 2). That saves you the trouble of parsing the XML, getting the ID, and a roundtrip to the database to get the object.


41
Ah, the mistake you are making is thinking that, since you login with the same user, you are not in a multi-user situation.
You are. You have two instances of EA.exe running, one for the user, and one for the automation.

As indicated, if you want to change something that should be immediately visible for the user, you can connect your script to the running instance of EA.exe, instead of creating a new instance.

Also, I did some tests, without closing the connection, and the diagram were created. All the users needs to do is reload package.
This is because you are using a different instance of EA, and the EA client caches most stuff. It doesn't know immediately about changes in the database; regardless of which user you use to log in.

So the most probable solution to your problem is to connect your script to the running instance of EA, or write your automation as an add-in.

Geert

42
Hi Geert,

Did you check this piece of code, wherein repository is not being closed with diagram creation in QEA file repository.
Closing the repository has no impact on diagrams being created or not.

.qea repositories are not meant for multi-user scenarios, you have to use .qeax for that.
But if you want you can connect to a running instance of EA as well.

If you describe exactly what you want to do, the exact steps you are taking, and what exactly is going wrong we could help you.
Now it's just guessing on all fronts.

Geert

43
Bugs and Issues / Re: Duplicated tags when I use import package from csv
« on: November 22, 2022, 04:34:58 am »
I would start by reporting a bug to Sparx, and seeing what they have to say about it.
If needed go back to version 15.2

Geert

44
General Board / Re: Access stereotypes of MDG technology
« on: November 22, 2022, 12:01:53 am »
no, not possible.

Geert

45
The diagram details are save to the database the moment you do Diagram.Update()

All the operations you mentioned are only useful for the GUI that is open, but since you don't open a GUI, they won't be of any use for you. Feels like you are throwing stuff at the wall to see what sticks.

I'm still nog getting your actual problem. Can you explain what you are doing, and where exactly it behaves differently from what you are expecting.

Geert


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