This one is a doozie!
In topic:
[size=13] EAUI: Can't rename Resources [/size] I comment on one of the worst kinds of design smells -
more than one independent paths to ostensibly the same fact...Here is another example. I had requirements and I noticed that the Requirement Types is stored in the stereotype field of the t_object - and is rendered on the browser. So I decided to see if I could create customized renderings for the various requirement types.
Success! Add a stereotype to the
Settings|UML...|UML Types|Stereotypes dialog and you get the rendering you need!
Great! Except...
(and with EA there is almost always an except...)The next diagram, none of the stereotypes worked...
Why? Lots of checking values and stuff, reloading of diagrams, shutdown/restart of EA etc - all to no avail.
Then by chance I started using [Alt-G] (locate in browser) and I noticed that the stereotype shown in the browser changed from my stated one (obtained by opening the properties dialog) to "Functional" on the browser. I opened the properties again - it's what I asked for (not "Functional"). How could this be? There are already
numerous Browser update issues but this didn't "smell" like one.
Then I remembered that additional stereotypes are stored in t_xref. A quick query and there is the culprit! The stereotype in t_object was set to one value, the one in t_xref to another (the original "Functional"). Changing the stereotype using the Properties dialog for the Requirement didn't seem to fix it!
Creating a new requirement from scratch seemed to create a consistent (that work again) result in both places, but updating did not.
Unfortunately, it is the t_xref field that controls the stereotype rendering NOT the stereotype field in t_object! (Verified by simple experiment)
The two locations MUST be synchronized correctly!(in passing, we aren't ALLOWED to build software like (as bad as) this).Geoffrey, you have no idea how much time is wasted trying to sort out why EA has the inconsistent behaviour it does. Why not hire some more staff and actually
fix the product?
Gob-smacked,
Paolo