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.

Topics - Kristofer

Pages: [1] 2

I have developed a MDG Technology and extended Class by adding a few tagged values. Some of these tagged values have a list of possible values, where one of the values is the default value.

When I deploy and use this technology the default value of the tag is visible in EA (Tagged Values window), but when I create a report, there is no value (using custom SQL in the report). If I explicity set the value to the default value, everything works as expected.

What should I do so it it not necessary to change the default value to...the default value to see it in the report?


I have created an MDG Technology including custom stereotypes, diagram and toolbox, and imported this technology in a project. When creating a new diagram, I can select my custom diagram type, but when I open the diagram, the custom toolbox is not opened. I have to select it manually (so it is there and working).

I checked the xml file for the MDG:
Code: [Select]
<Property name="toolbox" value="NNN"/>
<Documentation id="3F040576-9" name="NNN" version="1.0" notes="My custom diagram"/>

It seems to be correct, but it is not working. Any ideas why?


When you create a profile in a MDG technology, you can specify which tags should be created for a connector. Is it possible to have different tags dependent on the source and target element stereotypes (without defining two different connectors)?

For example:
If the source element has stereotype 'a' and target element has stereotype 'b', a tag with name 'My tag' should be added to the connector. But if the target element has stereotype 'c', the tag 'My other tag' should be added to the connector.

Or am I required to create an add-in for this?


I am creating an UML profile, extending the Component meta class to add a few tagged values, and set it to show the tagged values in the diagram (_Tag = 1). However, when I do this, the stereotype text is also shown (in addition to the icon). Can I change this behavior so that it acts the same as the original Component, only showing the icon and not the stereotype text?

I have a fragment which is a custom SQL query returning the note of a specific tagged value of the element. Above this note text is a heading. I would like that if the note is empty, or if the tag does not exists, the heading is removed because there will be no text beneath the heading. Is this possible?

I have tried with Bookmark.Start and Bookmark.End which works in other situations, but could not get it to work in this case.


We have an element type with several tagged values. Some of them are relevant to one group of people, and others are relevant to another group. Unfortunately we cannot select which tagged values should be visible in a certain diagram.

So to solve atleast some of the problem, I would like to create a shape script that always shows the tags that are relevant for all people, and if someone creating a diagram want to show all tagged values, that is up to them.

I thought that one option is to use "shape label" with SetOrigin = SW.

Code: [Select]
shape label {
   SetOrigin("SW", 5, 35);

This makes it possible to hide these tagged values if someone wants to show all tagged values (instead of having duplicate information). The problem is however that the default width of the label is too short so the user needs to immediately change the width. The maximum width of the label may also be too short, which makes the text wrap.

Is there another (better) way to do this?

The requirement is essentially:
  • Show the value of certain tagged values, somewhere inside the element, each on its own line.
  • Don't wrap the text
  • Preferable (but not a requirement), hide this if all tagged values are shown on the element

General Board / Labels moving around by themself
« on: October 24, 2017, 11:00:26 pm »
I have a very annoying problem when working with information flow diagrams; the connector labels are moving by themself!

When I create the diagram I position the connector labels (the one showing the conveyed information items and the stereotype label). Everything looks fine, I save, store as image, and close the diagram. At some other point I open the diagram again, and the labels are somewhere else, meaning I have to spend time positioning them again (and again the next time I open the diagram).

I have 30+ information flow diagrams, and when we add/remove a conveyed item, all diagrams showing this connector need to be re-published so they are consistent. This means...I have to open all diagrams and re-position the labels and save to image manually.

The labels also change size. If we have 10 conveyed items on a connector we cannot always have them all on one line, so we increase the height. When the diagrams is opened at a later point, the size of the label can be something else (but not all on one line).

This does not happen all the time when opening the diagram. Sometimes the labels stay where they should, and sometimes they move. I have not been able to find out the cause. "It just happens".

I emailed Sparx about this, but haven't got any answer so I wonder if someone else have experienced this and have a solution. This is very time consuming.

Using EA 13.0.1309.

General Board / Diagram filter and missing tag
« on: August 23, 2017, 05:49:55 pm »

When you create a diagram filter, you can filter on a specific tag and its value. Is it possible to also filter on elements that are missing a certain tag?

For example:
I want in my diagram to show:
- All elements with the tag XYZ with a value of abc
- All elements missing the tag XYZ

So essentially, I want to show all elements in the diagram, except for those with a certain tag with a certain value.



In EA 12 you could have rounded corners for relationships to itself. You just changed the line style to "Orthogonal rounded". This does not seem to work in EA 13 and you are forced to use a "Custom line", which does not have rounded corners. Since all other connectors in our diagrams are rounded, it looks a bit odd.

Is this "by-design" in EA 13, or a bug?

Uml Process / Realize information flow, how does it work?
« on: March 30, 2017, 07:23:00 pm »

I am in the process of documentating our existing IT systems. I want to do this on two levels, a higher level with only the information flow, and then a little bit more detailed level on how two systems interact with each other (for example what other systems use a REST service provided by a system). The first image shows an example of the higher level (information flow diagram), and the second image shows an example of the lower level (component diagram).

The question is however how to best do this in EA, without messing up with unnecessary connectors all over the place.

Since a few questions araise, i am not sure if i do this correctly, so i would appreciate if someone could tell how to best accomplish what I have described above.

Questions (assuming i have created the information flow diagram):

I drag a dependency relationship from required interface Customer to provided interface GetCustomer. I select "Information Flows Realized" and get two options "Order, Customer" and "Order, Customer" (the two information flows already between the components). The information item here is obviously only Customer (Order is to another interface).

I can select one of the options in the list, and click on the ellipsis button to select Customer, but this changes the information flow connector to only convey Customer.

I can also click on the "Click to create new information flow" to add Customer, but the list will now have three items. This also actually adds two connectors between the interfaces, one dependency and one information flow connector.

What should I do? The benefit of selecting one of the options in the list is that the information flow connector will be "hidden" in that diagram (the two connectors lies on top of each other) and I don't have to manually hide it. But I also don't want to create one information flow connector for each information item.

The interface CreateOrder is a delegated interface provided by an internal component of "Some System", so the interface is attached to a Port. If I do the same procedure as in A above, the list will be empty. Does this mean that I have done something wrong in my modelling?

Or am I doing this completely wrong?

General Board / Security in Reusable Asset Service
« on: January 05, 2017, 12:11:08 am »

I am trying to set up a reusable asset service, but I have some problems understanding the security configuration. It appears that anyone can create and delete a storage, and I cannot figure out how to prevent this.

This is what I have done:

- Installed the Cloud Service (default options)
- Added a database to be used for the RAS (firebird database)
-- For this database, checked the "Accept Queries" checkbox, but nothing else (should I check "Require a secure and..."?)
- Added another database on the cloud server (also firebird) to be used for accessing assets from RAS
-- For this database, checked the "Accept Queries" checkbox, but nothing else
- Opened a cloud connection to the database created in previous step
- Connected to the registry on port 804 (default settings)
- Clicked the "Set Administrator Password" and added a password
- Created a storage and set a password for complete access as well a password for read-only access
- Registered some packages in the storage (successful and unsuccessful depending on which password I used from the step above)
- Closed EA
- Opened the same database/model, connected to RAS and provided the read-only password for the storage created above
- Deleted the previously created storage

What do I need to do to prevent anyone from deleting/adding storages in the registry?
What is the password from "Set Administrator Password"-button used to?

Sorry for basic questions; I am new to the cloud service.


When you link a note to an element feature, the contraint type (for example Invariant or OCL) is shown in the note (EA 13). This was not the case in EA 12.1. Can you change this behavior, so that it does not show in the note?

General Board / Clone feature
« on: November 04, 2016, 09:15:52 pm »

I am checkning out the new (in EA 13) "clone structure" feature (time aware modelling), but I am not sure of some of its "features", so perhaps someone can confirm it?

Our repository is structured as following

Code: [Select]
As-is Models
   [package] Domain A
   [package] Domain B


The "Development" root node is used for new models, and changes to as-is models are made directly into the "As-is Models" structure. When the changes have been approved, the as-is models are published, and a new iteration starts.

One of the problems we have is that people creates relationships between the Development and "As-is Models", which obviously creates a mix of as-is and to-be. The nightmare is when a relationship is deleted in the to-be model.

Another problem is that some of our users have difficulties to keep track of what changes they make in the as-is models (they tend to write the revision history right before we publish instead of continiuosly writing it).

I was thinking that perhaps the clone feature could solve these problems. It was easy to see what has been changed and that was very appealing. But after testing it out I am starting to reconsider if it is the solution to our problems.

Can someone confirm that this is how it is supposed to works:

  • If you open a cloned diagram (to-be) and create a new relationship between non-cloned elements, the relationship is applied to the as-is model. (since you have opened the cloned diagram you think you are working in the to-be model but you are actually changing the as-is model)
  • If you open a cloned diagram and create a new relationship where one of the involved elements are cloned, the relationship is applied to one cloned element and one non-cloned (i.e. a mix of the as-is and to-be model).
  • You cannot merge the to-be model to the as-is model. I am talking about merging here since the cloned elements gets a new guid which will break all direct links on the published website if we find a copy/paste solution.
  • If you clone an element and that element is locked (I completely locked the as-is models structure when testing), the cloned element will also be locked (it will not inherit the settings in the target structure), requiring the user to first unlock the element.
  • When you clone an element, the line style for the connectors attached to the element changes. (bug?)

I did not expect 1 and 2 to happen since the source structure was locked (full lock on the as-is elements). Wouldn't that prevent an association to be added, no matter if I am working in a cloned diagram or not?

General Board / Change order of inherited attributes
« on: November 01, 2016, 12:30:59 am »

If you enable "Show inherited attributes", the order of the inherited attributes will be "bottom-up".

Consider the following: Class A inherits from Class B and Class B inherits from Class C.

In the list of attributes in Class A, the attributes from Class B comes before the attributes of Class C.

Can this order be changed?

Would it be possible in a shape script?



If a connector is linked to an element feature, such as an attribute, how do I find out which one it is? 

Pages: [1] 2