Book a Demo

Author Topic: Spurious duplicates while cloning  (Read 4464 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Spurious duplicates while cloning
« on: February 10, 2017, 08:34:10 pm »
We're starting to use the time aware modelling feature in a serious way.

We observe that if we clone the diagrams and structure for a package and the same item is on multiple diagrams; when we clone the item in one of the cloned diagrams it does NOT replace the original in any cloned diagrams within the cloned structure.

Example:
Original Package
    Original Diagram 1
       Original Element 1
     Original Element 2
    Original Diagram 2
       Original Element 1
     Original Element 2
    
We now clone the structure and diagrams:
Clone Package
    Clone Diagram 1
       Original Element 1
     Original Element 2
    Clone Diagram 2
       Original Element 1
     Original Element 2
    
We further clone Original Element 2 in Clone Diagram 2 to arrive at:
Clone Package
    Clone Diagram 1
       Original Element 1
     Original Element 2
    Clone Diagram 2
       Original Element 1
     Clone Element 2
    
Notice that Original Element 2 has NOT been replaced in Clone Diagram 1.  If we now suggest that we clone Original Item 2 in Clone Diagram 1, we get a SECOND Clone Element 2 in the structure!

Please confirm this is a bug (at least an interaction defect - in that we should be asked if the first clone should also be applied to the other cloned diagrams.)

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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Spurious duplicates while cloning
« Reply #1 on: February 10, 2017, 11:51:03 pm »
To be honest Paolo, I generally wouldn't advise to use the "time aware modelling" feature at all.

It feels to me that Sparx has somehow captured a need from the market, but completely misunderstood it and came up with solution nobody asked for.
I don't want my model to become an army of clones  ::), but I do need a "proper" way to manage changes in the model.

Currently we tackle the change management part with the help of tagged values, and some scripts and searches, but that only solves a part of our requirements (track what is changed when, by whom and for which change request)
It would be nice to be able to see this integrated in the tool, with the ability to see before and after.

Geert


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Spurious duplicates while cloning
« Reply #2 on: February 11, 2017, 12:22:50 am »
May the Indians join the cavalry? Exactly what I did and would do again.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Spurious duplicates while cloning
« Reply #3 on: February 13, 2017, 05:55:27 pm »
Perhaps, some clarification.

While the functionality is called "Time-Aware Modelling", it is just (such a simple word!) linked clone management.

We were about to create our own cloning technology when Sparx provided this.  Now, one might argue that the problem has been misunderstood (from a Time-Aware point of view), the underlying technology implemented by Sparx seemed sufficiently close to what we had intended to create that it was worth investigating.

Once you "get your head around" what Sparx have actually implemented (as usual, Sparxians and humans think a bit differently), it is quite usable (at least in our usage).  BTW, we had previously "hijacked" the version field for a specialised use, but Sparx's use of the field for cloning purposes actually allowed us to continue to use it for our original purposes and yet mesh in with the cloning use.  We use ONLY textual versions, related to the location of the item in the repository.

So, we ran some tests and it seemed to be OK to use in production.  So, we're piloting it in production and apart from the two issues I've noted (so far) it's working quite well.

In our usage, the clones are (principally) project specific clones of enterprise objects, which are changed as required.  We will later merge any useful changes back to the source.

Since the notion of multiple instances of the same notional object wasn't built in to EA, this is probably as good as it's going to get.

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

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Spurious duplicates while cloning
« Reply #4 on: February 22, 2017, 04:51:05 am »

While I haven't explicitly reproduced the problem, I would say that the symptoms described are a bug and should be reported.


I too see value in the "Clone Aware Modelling"  capability, but my view is that this is a fairly major piece of functionalityh that was introduced for the first time in version 13 and is suffering from being immature and possibly poorly tested.