Author Topic: Where has my diagram type gone?  (Read 3697 times)

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Where has my diagram type gone?
« on: June 12, 2020, 02:21:17 am »
Hi
I developed an MDG in V14 of EA and when deployed (copied to the MDGTechnolgies folder) I could create a diagram of a type specified in the MDG.
Now if I use V15 of EA I cannot add such a diagram.
The MDG shows up under Specialise->Manage Tech and under the Options

So where has my diagram type gone?

THanks

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Where has my diagram type gone?
« Reply #1 on: June 12, 2020, 04:46:37 am »
Check the selected perspective.
That is often the culprit.

Geert

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Re: Where has my diagram type gone?
« Reply #2 on: June 12, 2020, 05:17:24 pm »
Hi
Yes thats what I thought.
However, if I change perspective to User Technologies I done see it.
If I open the Manage Technologies dialog my MDG is listed.
Further if I manually import the MDG I get two copies of my MDG listed and there are 2 versions of my diagram type available.
Obviously I only want 1, any more ideas?

Thanks

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Where has my diagram type gone?
« Reply #3 on: June 12, 2020, 05:43:38 pm »
Having two copies of the MDG messes up a lot.

You'll have to choose which method of deploying an MDG you want to use.
I always use Import in Model, which works fine if you use a centralized model, but not so much if you use many different .eap files.

Geert

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Re: Where has my diagram type gone?
« Reply #4 on: June 12, 2020, 05:46:26 pm »
Well as placing the MDG in the MDG Technologies file does not seem to work in V15 I guess I will have to use the import method
Its a bit weird though

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Where has my diagram type gone?
« Reply #5 on: June 12, 2020, 05:50:15 pm »
You'll have to choose which method of deploying an MDG you want to use.
I always use Import in Model, which works fine if you use a centralized model, but not so much if you use many different .eap files.

... And I always use a file share. Both work, but I find the file share solution preferable if
  • you're doing lots of small updates to your technologies rather than one or two a year, and/or
  • you have a larger number of projects, and/or
  • your project administrators don't understand how MDG Technologies work.
This turns out to be always. :)

/Uffe
My theories are always correct, just apply them to the right reality.

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Re: Where has my diagram type gone?
« Reply #6 on: June 12, 2020, 05:52:20 pm »
Thanks for the hint, but it doesn't explain why it worked in V14 and not V15

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Where has my diagram type gone?
« Reply #7 on: June 12, 2020, 06:52:33 pm »
Hi again,


I'm pretty sure it's the perspective, or more insidiously the perspective category, that trips you up.

Perspectives don't work properly, and they confuse people. It's another misguided attempt to simplify the GUI, but Sparx didn't actually work out exactly how this new way of controlling aspects of functionality would interact with all other ways of controlling aspects of functionality before they released it, and they've been floundering around ever since. There were several changes in 15, major changes in 15.1, and I'd expect more of them going forward.

Here's what I think happened.

The User Technologies perspective falls under the Specialized category (introduced in 15.0), which refers specifically to technologies imported into the project -- not to user-defined ones in general.
The perspective acts as a filter in certain EA functions, primarily in dialogs such as New Diagram. However, the underlying technology is still loaded into the client and all its contents are still available for various uses. (One of the recent changes was to allow document and code templates from a technology to be used even though the technology is not in perspective, another was to allow the creation of composite diagrams from a not-in-perspective technology.)

The Manage MDG Technologies dialog shows which technologies are available, whether from a file or the project, and/or loaded (= selected). It isn't affected by perspectives.

So if you have deployed your technology to a file, and loaded it, the User Technologies perspective will hide its diagram types in New Diagram.

If you then import the same technology into the project, the perspective will allow you to see the diagram type since the technology is now a "user" (ie imported) technology. But the client in fact has two identical diagram type definitions available to it from two identical technologies, one loaded from the file and one from the project.

So internally in EA, the dialog presumably retrieves the list of diagram types from the technology manager, then for each diagram type asks the perspective manager whether the type is in perspective. Since there are two copies of the technology loaded, the technology manager will supply two copies of the diagram type to the dialog, the dialog will ask the perspective manager about the "same" diagram type twice, and the perspective manager will say Yes both times. There's nothing else it can do, really.

What needs to be changed is that EA should baulk when asked to load a technology (when opening a project or changing the technology configuration) that is already loaded, regardless of where the technology is located. In your case, that would have prevented you from loading the technology into the project without first unloading the file version.

HTH,


/Uffe
My theories are always correct, just apply them to the right reality.

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Re: Where has my diagram type gone?
« Reply #8 on: June 12, 2020, 07:04:13 pm »
Thanks for a good explanation

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Where has my diagram type gone?
« Reply #9 on: June 13, 2020, 09:27:06 am »
Thanks for a good explanation
Wot 'e said!

Thanks, Uffe!

Also, wot Uffe sed!  (about the functionality fix)

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!