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 - Svend Erik Nygaard

Pages: 1 ... 6 7 [8] 9
@Simon: This is quite an issue for the use of EA in my Company (CPH Airport) - and we don't see any work-around for it. I really don't know what to do on this - we are in trouble!

@qerty: Thanks for the input. OnContext event - I don't know it, it seems to be something that Add-Ins can use - but I don't write Add-Ins.
Can I use it in EA scripting (JScript)? - I do write EA scripts.

I have created Stereotypes in MDG.
When I remove/change the stereotype on an element in my model, it looses the tagged values associated with the stereotype.
In the MDG I have derived stereotypes, e.g.:
ResourceObj specializes BusinessObj which specializes Obj which extends Class.
Obj carries the tags which are common for all aobjetcs etc.
My problem is, if a user changes/removes the stereotype on an element, all the tagged values are delted - and often the user wants to keep/transfer the tagged values.
Or maybe the user just removed the stereotype from the element by an accident.
Is there a way around this issue?
(In the old days, when I just used UML profiles (in EA v. 7), EA kept any old tagged values. That might leave some mess, but better for me to clean up via scripts, than loosing the tagged values)

Thanks @qwerty.
So EA Object Model does not support testing if an element has a given stereotype with a given namespace like "CPH_MetaModel::Application"?

Thanx, qwerty, that works just fine.
But new challenge: How do I see the full name of the existing stereotype?
(I mean in script - but actually I don't see how to se it in the GUI either)

In EA script, How do I specify which stereotype when there are more stereotypes with the same name?
They have different namespaces. But how do I specify the one I need in an assignment like: Obj.StereoType = "StTypName"

Thanks Qwerty.

I was fooled by my own 'debug'function that wrote the element collections out before and after - I just forgot to refresh those collections :-/

Thanks for good response :-)

In an EA script, I want to move an element from one parent element to new parent element.
How do I do that?

BUT: the tags are not grouped according to the tag groups
I'm fairly sure that was fixed for EA 11
OK, sounds good, then I'll wait for EA 11. Can you indicate when this might be?
BTW: So the way, I used the specialization is OK?

The model in the top post works except the grouping of tags is it  it ignored at the specialized stereotypes. The tags are there, just not grouped.
(In EA 1007)

Thanks MrWappy,

I thought about that - but then I thought, There must be a smarter way  :-/

I will fall back on that, if I don't find other solutions.

(BTW, I updated my post with a picture of the profile's diagram  (apparently one cannot upload images directly to posts here?) )

I hope to get back to solve this issue tomorrow (There's also the Tagged Value connector in the profile toolbox?)

In a UML profile, I have:
• A <<metaclass>> ”Class”
• A <<stereotype>> ”Obj” extending ”Class”
• Three <<stereotype>>s (”ProcessObj”,”ResourceObj”,”ReferenceObj”) specializing ”Obj”

Like this:

When I use the three <<stereotype>>s ”ProcessObj”,”ResourceObj”,”ReferenceObj”, they all have inherited the tags from  ”Obj” – so far so good.
BUT: the tags are not grouped according to the tag groups – in fact they don’t seem to have the tag groups (although the tags themselves are all there).

If I double check by including the ”Obj” in a toolbox in the MDG file, the ”Obj” does have the tags grouped properly.
I have many stereotypes sharing a common set of base tags. Is this not the proper way to do it?
I’m not familiar with how to use the Metatype, but have tried different variations without that solving this issue.
Does any body know how to do this (sharing a common set of tags)?
Also: Am I using the ”Generalization” connector in a wrong way in my UML profile?

.. and, of course:
4) being able to use a standard report generator (e.g. MS Report Builder; Jasper report builder) to generate such neatly presented, structured pages with the views relevant to different users - with links to EA elements
- inside EA, opened/displayed on request from EA elements etc.
PS: The report would be defined/designed in the report tool, and runtime generated by the report generating engine from/on the web server – and displayed inside EA from which it was requested

1) Reuse of code and logic also to be implemented on a web/app server accessing EA. It would be nice to reuse not only search logic and presentation, but also other logic and presentation implemented on a web solution. That would also give the users a common interface between EA and the WEB presentation of the repository. I realize that the logic (e.g. fuzzy search logic etc - could be reused by calling for instance a web service) - but I'd be happy to reuse also the HTML GUI.
2) I like the layout/presentation styles of HTML pages.
3) Reuse of skills. Alternative is Visual studio? - I don't know that development environment (I guess you developed your EA Navigator in Visual Studio?).
PS: I want to open the HTML page in an EA window, possibly the standard pane where EA opens HTML pages.  - triggered by e.g. the user choosing from a context menu on a given element.

Is it possible to open a (trusted) html page in EA and let it access EA objects?
I want to create special userfriendly searchresult pages in HTML in EA. And then have scripts in the result page letting the EA user navigate to wanted elements ('links' to EA elements).
Similar with other pages, e.g. a page displaying an element with related elements - in a manner meaningfull to misc. analyts.
The HTML page will be triggered and dispalyed within EA.
The HTML page will be generated from a web server (via SQL access to EA)

Thanks Paulus.
I think those links will be a good help.

It's still java on windows ofcourse, so I cant use them on Linux when they need the dll. But as you say, I too think they will be of good use when setting up my use of the EA win-automation Java API.

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