Book a Demo

Author Topic: Time-aware model: original packages shown in diagrams after cloning  (Read 5566 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Hi all,


I'm fiddling around with time-aware models to see if they're of any use.

First thing I tried was to set up a simple package structure as version 1.0.
- Parent package
  - Package diagram (showing child package)
  - Child package
    - Component diagram (showing component)
    - Component


Then I went ahead and cloned the whole structure to a new version 1.1. Here's what I got:
- Parent package [cloned]
  - Package diagram (showing original child package)
  - Child package [cloned]
    - Component diagram (showing original component)


This can't be right, can it? Since the child package is cloned, surely the diagram it's in should show the clone and not the original?
The way this is implemented, if I navigate between diagrams by double-clicking the child package, I go from the 1.1 version of the package diagram into the 1.0 version of the component diagram, even though the child package exists as a clone in 1.1 and has a cloned component diagram.

Am I missing something?


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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Time-aware model: original packages shown in diagrams after cloning
« Reply #1 on: April 19, 2018, 09:47:32 pm »
Uffe,

I had a look at the time aware modelling feature and decided that it is not useful for me or my clients.
It really quickly becomes a mix of elements from different versions, all linked to each other.
Definitely not how I would design a feature like that.

Geert

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Time-aware model: original packages shown in diagrams after cloning
« Reply #2 on: April 19, 2018, 10:20:47 pm »
Yeah, it's looking that way from my perspective too. Kind of a cool demo feature, but it doesn't seem to have been integrated in any meaningful way, it doesn't support multiple branches and it doesn't seem to be possible to revert changes.

I'm trying to imagine what use case it's been designed for, but I'm coming up empty. It looks like something put together by someone who's never actually worked with version control or configuration management.

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

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Time-aware model: original packages shown in diagrams after cloning
« Reply #3 on: April 19, 2018, 10:26:49 pm »
Oh, and I found that if you've got the situation I had above, then select the non-cloned package in the cloned diagram and hit Clone Element as New Version, the old package is replaced by the new one in the diagram, and subsequently the Clone Element menu item is greyed out.

FWIW.

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

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Time-aware model: original packages shown in diagrams after cloning
« Reply #4 on: April 20, 2018, 10:21:03 am »
Uffe,

I had a look at the time aware modelling feature and decided that it is not useful for me or my clients.
It really quickly becomes a mix of elements from different versions, all linked to each other.
Definitely not how I would design a feature like that.

Geert
Geert, Any cloning system will end up as a "mix of elements from different versions".  The trick is how to manage it properly.  We're looking at implementing our own cloning system (hopefully compatible with Sparx's) to do it a bit better.

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

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Time-aware model: original packages shown in diagrams after cloning
« Reply #5 on: April 20, 2018, 10:22:57 am »
Oh, and I found that if you've got the situation I had above, then select the non-cloned package in the cloned diagram and hit Clone Element as New Version, the old package is replaced by the new one in the diagram, and subsequently, the Clone Element menu item is greyed out.

FWIW.

/Uffe
As per my previous comments in the other TAM posts, I suspect it's working correctly.  Since the requirement for the initial clone of the diagram is to NOT clone any vertex, it is incumbent upon the user to determine which vertices to clone (including folders).

There is some "method in their madness".

Paolo
« Last Edit: April 20, 2018, 10:34:12 am by Paolo F Cantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Time-aware model: original packages shown in diagrams after cloning
« Reply #6 on: April 20, 2018, 06:57:34 pm »
Oh, and I found that if you've got the situation I had above, then select the non-cloned package in the cloned diagram and hit Clone Element as New Version, the old package is replaced by the new one in the diagram, and subsequently, the Clone Element menu item is greyed out.
As per my previous comments in the other TAM posts, I suspect it's working correctly.  Since the requirement for the initial clone of the diagram is to NOT clone any vertex, it is incumbent upon the user to determine which vertices to clone (including folders).
I'm not convinced. The way it works, the package has been cloned, but the original is shown in the cloned diagram.
Why would you want that?

Only reason I can see is that the cloned package doesn't contain any elements so you need the original in order to show package contents. But that only makes sense in the first generation anyway, so this is still more bug than feature in my book.

Still, if you're aware of it you can fix it immediately after parthenogenesis.1

/U


1 That's "creating a clone", children.
My theories are always correct, just apply them to the right reality.