Book a Demo

Author Topic: copying UseCases including Scenarios  (Read 4402 times)

Hans-Christian

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
copying UseCases including Scenarios
« on: September 11, 2006, 06:31:59 am »
We have some UseCases which includes a "simple" scenario and many "exception" scenarios. And some other UseCases which should be created are similar to that. So it will be great if someone knows a possibility to duplicate a UseCase e.g. like the menupoint "copy diagram to clipboard" for diagrams. Because it is very laborious to type in all by hand.

Thanx in advance
H.-C.

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: copying UseCases including Scenarios
« Reply #1 on: September 11, 2006, 06:55:19 am »
What I do, is a bit unstandard, but it works.
I export the source element in XML and import it back. N.b. needs "Strip GUID" to work .
Jan 'Bary' Glas

Hans-Christian

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: copying UseCases including Scenarios
« Reply #2 on: September 11, 2006, 07:20:28 am »
I tried it and it runs. Yes it´s a bit unstandard but it is a solution that help me.

Thanx
H.-C.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: copying UseCases including Scenarios
« Reply #3 on: September 11, 2006, 02:56:11 pm »
Individual element can be copied to the clipboard and pasted as new.

Jan ´Bary´ Glas

  • EA User
  • **
  • Posts: 408
  • Karma: +0/-0
  • Bary
    • View Profile
Re: copying UseCases including Scenarios
« Reply #4 on: September 11, 2006, 11:42:56 pm »
Edit/Paste Element(s)/As New...
OR
Ctrl+Shift+V

Is there a way how to do it with all inserted elements and diagrams?

In my case use case with sequence diagram containing objects instantiated from class domain model. I need new objects of the same classifiers.
Jan 'Bary' Glas

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: copying UseCases including Scenarios
« Reply #5 on: September 12, 2006, 04:06:05 am »
Bary,

I wonder if you could accomplish this by using the deep copy function.

[Of course I have not done this myself so I might be in deep water here. I have also not used a deep copy in a while, so I don't quite remember the process, but I think it copies a diagram and also makes copies of all the elements on the diagram.]

You'd probably have to do something like this:
[/list]
  • Copy the use case.
  • Make the use case a composite element (I'm assuming that your original is a composite, and that this characteristic would not carry over during copy).
  • Do a deep copy of each of the subsidiary diagrams.

There might be problems associated with how EA links the subsidiary diagrams since (AFAIK) these are not 'normal' composite diagram links.

Perhaps this is worth following up, as there are similar situations with other 'parent' element types. This could be a useful function, and would probably not be too difficult for Sparx to add across the board.

David
No, you can't have it!