Book a Demo

Author Topic: Linking Notes to Scenario  (Read 6213 times)

SteveB002

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Linking Notes to Scenario
« on: April 19, 2005, 06:45:10 am »
I'm trying to set up my sequence diagrams using the Iconix approach.  As such, my sequence diagram needs to have the scenario showing on the left hand side.  The way I've done this is to add Notes to the sequence diagram, drag the associated Use Case on to the diagram, and then connect the Note to the Use Case and finally use "Link this Note to an Element Feature" in the connector's context menu.  I don't want the Use Case on the diagram, so I remove it; I only added it so I could make the Note link to the scenario.  The problem is, the Note is no longer updated if I change the scenario text in the Use Case.  Also, this is a long winded way to associate the Note with the scenario.  

Does anyone have a better way to do this?

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Linking Notes to Scenario
« Reply #1 on: April 19, 2005, 06:51:25 am »
Steve,

Today, the Sparxians have acknowledged a synchronisation problem between the diagrams and the database (not mentioned in the board). :(  they hope to fix it very soon. :)

In the meantime, if you change the note in the use case and then reload the diagram with the Note only on it, the note should now update.  

I had similar problems earlier today and contacted Sparx direct.  They confirm the bug.

Hope this helps.

Paolo
« Last Edit: April 19, 2005, 06:52:47 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

SteveB002

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Linking Notes to Scenario
« Reply #2 on: April 19, 2005, 08:01:14 am »
Thanks for the quick response.  Do you know a quicker way of associating the Note to a Scenario rather than having to put the Use Case on the diagram just to make the link?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Linking Notes to Scenario
« Reply #3 on: April 19, 2005, 03:48:40 pm »
Paolo: different problem.

Steve: changing the scenario details when the use case isn't on the same diagram should still update the note. If it doesn't do this immediately, reload the diagram by right-clicking the diagram tab. I can't think of a quicker way of linking the note I'm afraid.
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Linking Notes to Scenario
« Reply #4 on: April 19, 2005, 07:15:27 pm »
Quote
Paolo: different problem.

Steve: changing the scenario details when the use case isn't on the same diagram should still update the note. If it doesn't do this immediately, reload the diagram by right-clicking the diagram tab. I can't think of a quicker way of linking the note I'm afraid.


KP: With respect, different issue (behaviour) same cause?  

As it happened, after I got the prompt response from Neil, I also experienced lack of update as did Steve - but I put it down to the synchronisation problem.  Since, when the Note doesn't update the only solution is to reload the implcation is pretty clear.

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

SteveB002

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Linking Notes to Scenario
« Reply #5 on: April 20, 2005, 01:36:08 am »
I've retried the links and now they seem to update okay.  I wonder if I accidentally removed the link at the same time I removed the Use Case  :-/

Put this down to user error but I will keep my eyes open.

Pity there isn't a short cut - right click on the note to pick an item to link to.  Anyway thanks for the replies.

slavko

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Linking Notes to Scenario
« Reply #6 on: April 20, 2005, 10:29:37 pm »
Sorry to bring to life a resolved topic but, as far as I know Iconix talks about taking the use case note and making that note appear as a diagram note in the sequence diagram, so that any changes made in either location will be updated in both.  We would have liked to do this but can not since we want the text of the use case to go into scenario.

As far as I know it is not possible to have the text of the scenario be referenced to a diagram note in a sequence diagram.  If I’m wrong please point me to a solution, we can use it.  

The reason we want to use the scenarios is for the way it integrates with the testing script generation.

-Slavko

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Linking Notes to Scenario
« Reply #7 on: April 20, 2005, 11:12:28 pm »
Quote
As far as I know it is not possible to have the text of the scenario be referenced to a diagram note in a sequence diagram.  If I’m wrong please point me to a solution, we can use it.


No that is possible. Drag a use case onto a sequence diagram, draw a note link from note to use case lifeline, right-click the note link, select "Link this note to an element feature", select the scenario you're interested in, press OK and finally delete the use case lifeline (use DEL not Ctrl+DEL!)

Once you've done this, changing the scenario details will update the note. It's a bit of a round-about way of doing things: we probably need to make it easier, but it's finding the time. Hope it helps anyway.
« Last Edit: April 20, 2005, 11:15:28 pm by KP »
The Sparx Team
[email protected]

thomaskilian

  • Guest
Re: Linking Notes to Scenario
« Reply #8 on: April 21, 2005, 01:24:00 am »
A hidden treasure again 8) I wish I knew about that earlier :-[
Edit: Just have played around with that feature. How could I ever have lived without it?
« Last Edit: April 21, 2005, 04:25:44 am by thomaskilian »

slavko

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Linking Notes to Scenario
« Reply #9 on: April 21, 2005, 02:33:15 pm »
Very, Very cool... I'm going to have to incorporate this in my training material.  
The only remaining problem is to allow me up update the note text from the sequance diagram.    :( Currently the update can happen from the use case scenario only…  In either case a very cool feature, even with the number of steps involved.

-Slavko
« Last Edit: April 22, 2005, 01:03:22 am by slavko »

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Linking Notes to Scenario
« Reply #10 on: April 21, 2005, 05:31:57 pm »
 8)  cool.

I'm not sure, but I think after you have deleted the UC from the seq diagram you have to save the diagram.  

The first time I tried it, without saving, I went back and editted the scenario note in the UC diagram, then when I reloaded the seq diagram the link was lost.  

bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.