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
1
Hi!

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);
   Println("#TAG:Alias#");
   Print("#TAG:ID#");
}

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

2
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.

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

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.

/Kristofer

4
Hi!

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?

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

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):

A)
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.

B)
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?

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

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.

7
Hi,

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?

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

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

Development
   ...

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?

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

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?

/Kristofer

10
Hi!

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

11
General Board / Visualize XML document in diagram
« on: September 01, 2016, 06:17:27 pm »
Hi!

We are trying to visualize an XML document (not the schema) using a class diagram. The target audience for this diagram is not experienced in UML, and certainly not inheritance, hence we need to keep the diagram as simple as possible. The schema however is complex and contains a lot of inheritance, and we are starting to realize that we are creating the same attribute over and over again, as well as duplicating elements (to avoid connectors crossing each other). This will obviously be a maintance nigthmare.

I was looking at the "virtualize connector" to atleast get rid of multiple elements, but it seems that the "virtualized class" does not show the attributes, only the name.

I was also thinking about using inheritance, but hide it and use the "Show inherited attributes" feature. The problem with this is that in the attribute list, it shows the name of the inherited class (which I will have a hard time to convince why it needs to be there), and we also need to have the attributes in a certain order (specified in the XML schema).

Does anyone have a suggestion of how we would accomplish what we want, yet still keep it easy to maintain?

/Kristofer

12
Automation Interface, Add-Ins and Tools / V13 ImageMap
« on: June 22, 2016, 07:27:20 pm »
Hi!

Has anyone tried Repository.GetDiagramImageAndMap (or just the menu options)? Does it include all objects on the diagram, including connectors? If so, do you get a certain width to click on, or is it just 1 pixel wide?

I had a hard time myself creating an image map for the connectors, since the position was dependent on some strange logic, and it would be great to use something reliable from Sparx.

Any ideas when EA 13 will be released?

13
General Board / Visually show constraint on attribute
« on: June 03, 2016, 07:17:33 pm »
Hi!

Is there a way to visually show the constraint name on an attribute? Or at least show some kind of notification that there is a constraint on the attribute. 

The only thing I have found (by searching this forum) is to add the tag xUML and put the constraint name as value, but this requires a change to be done at two places; both the constraint list and for this tag. Also, I cannot find any information about this tag xUML. Is it some kind of "hidden feature" that might disappear in a later version of EA?

14
Hi!

I am trying to catch a change of an attribute, and sync the change with another attribute (connected via "Link to Element Feature"). I cannot however understand how OnNotifyContextItemModified works. So I have done some testing:

If I change an attribute from the Features dialog box, OnNotifyContextItemModified is fired when I click on the Close button (not when focus is changed to another attribute, which is when i was expecting the save to happen) and the type is otElement. Does this mean that I need to iterate all attributes on the element to make sure that they are syncronized?

I have also noticed that when I change the Note text from the Notes window (View -> Notes), OnNotifyContextItemModified is not fired at all. How can I make sure that the Note text is synced in that case?

Should I use OnContextItemChanged instead? But it seems to be unnecessary since I don't want to do anything if nothing is changed. So I thought that OnNotifyContextItemModified would be more suitable.

Thanks in advance!

15
Bugs and Issues / Performance issues after Oracle upgrade?
« on: April 05, 2016, 07:49:48 pm »
Hi!

We recently upgraded Oracle from 11.2.0.3 to 12.1.0.2 and noticed some performance degradation. We are however not sure if it is because of the Oracle upgrade, or something else, since we cannot see anything remarkable regarding performance in the query execution.

Currently we are running 11.2.0.3 and 12.1.0.2 in parallell to test, and the most noticable is in the logon process. But it is also (sometimes painfully) slow to just open the properties of an element, or navigating in Project Browser.

Has anyone else noticed any changes regarding performance between Oracle versions?

Pages: [1] 2