Book a Demo

Author Topic: Relation between Use Cases and Activity  (Read 19209 times)

Marvis

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • Creativity is allowing yourself to make mistakes.
    • View Profile
Relation between Use Cases and Activity
« on: March 01, 2005, 02:53:58 am »
I created a lot of Use Cases  that exists of more Use Cases thru the Composite Element feature.
I made also many activity diagrams, that realizes the Use Cases. But I don't know how to relate both diagrams.

My first thought is to make an hyperlink on the Use Case diagram to the Activity Diagram and draw a dependency, but the Use Case diagram get filthy with hyperlinks. Is there a better way?

Please help!
« Last Edit: March 03, 2005, 10:57:56 pm by Marvis »

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Relation between Use Cases and Activity
« Reply #1 on: March 01, 2005, 05:09:52 am »
Hi,

you can create the Activity diagrams as child diagrams underneath a Use Case.

I am not sure what you mean here:

Quote
I made lots of Use Cases, that exists of more Use Cases tru the Composite Element feature.


Thanks,
Bruno

thomaskilian

  • Guest
Re: Relation between Use Cases and Activity
« Reply #2 on: March 01, 2005, 05:23:49 am »
The *real* way should be to create Use Case Realizations or Collaboration (at least one per Use Case) that relate to the appropriate Use Case via a Realize relationship. Underneath the collaboration you can place the Activity diagrams as child diagrams.

According to the Use Cases that consist of many Use Cases via Composite Elements you are probably on the wrong path. You should likely spend some time in reading about Use Case analysis (or better synthesis!) in order to set up a correct Use Case model.

Marvis

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • Creativity is allowing yourself to make mistakes.
    • View Profile
Re: Relation between Use Cases and Activity
« Reply #3 on: March 01, 2005, 06:31:31 am »
Bruno:
"I made lots of Use Cases, that exists of more Use Cases tru the Composite Element feature."

It means that I have a browsable component to another Use Case Diagram. But it is only another level of detail for that Use Case and not a realization.

thomaskilian:
I already tried to use collaborations. But if I add an Activity diagram to that collaboration, the way to get there is or a hyperlink, or via the project view. I would like to browse (double-click) the collaboration and see it's realization. But I think that is not inside EA?


thomaskilian

  • Guest
Re: Relation between Use Cases and Activity
« Reply #4 on: March 01, 2005, 06:52:51 am »
Try right-clicking on the collaboration. You'll find a context menu with "New Child Diagram". That will place arbitrary diagram types below the collaboration.  There is no way I know of to directly open the diagram from the collaboration icon. Instead select it, press Alt+G and open it from the browser then.

Marvis

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • Creativity is allowing yourself to make mistakes.
    • View Profile
Re: Relation between Use Cases and Activity
« Reply #5 on: March 01, 2005, 07:52:52 am »
hmmmm....too bad. Then I think ill keep continuing using hyperlinks to the Activity Diagram.

Thanks for the advise.

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Relation between Use Cases and Activity
« Reply #6 on: March 01, 2005, 07:54:58 am »
Again, why not to make the Collaboration a Composite Element? Then double-clicking the Collaboration will automatically bring up the child activity diagram.

Bruno


Quote
Try right-clicking on the collaboration. You'll find a context menu with "New Child Diagram". That will place arbitrary diagram types below the collaboration.  There is no way I know of to directly open the diagram from the collaboration icon. Instead select it, press Alt+G and open it from the browser then.


Marvis

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • Creativity is allowing yourself to make mistakes.
    • View Profile
Re: Relation between Use Cases and Activity
« Reply #7 on: March 02, 2005, 12:58:38 am »
Ah, this works ok, but the problem still exists. But it is a more structural problem then I thought of in the first place.
I have at least 2 diagram per Use Case.
1. A more detailed Use Case diagram
2. An Activity diagram
I can't make them both browseable in one component. So either way, you need 2 items on your diagram.
I like the way of the collaboration, so I think about it to redesign the model structure.

Many thanks for your time!

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Relation between Use Cases and Activity
« Reply #8 on: March 02, 2005, 05:34:03 am »
Hi,

I am generally a bit suspicious about a Use Case with a more detailed Use Case diagram underneath. It sounds like you are trying to turn Use Cases into hierarchical elements, which they aren't. You may want to rethink the approach.

Having said that, it is certainly possible having multiple child diagrams underneath a Use Case, but double-clicking UC marked as a composite element will automatically take you only to the first one of the diagrams. You may not be able to avoid the hyperlinks after all :-) What you could do is to add one more child diagram and place nyperlinks to all the other child diagrams on it. Clicking on the Use Case will automatically bring up the diagram with the hyperlinks then.

Hope this helps!
Bruno

Rolix

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Relation between Use Cases and Activity
« Reply #9 on: March 02, 2005, 09:01:42 am »
Since I use Use Case Scenarious, my Use Cases are much smaller - I didn't know about scenarios before reading "Applying UML and Patterns" recently.

I organize all accompaniing models of a Use Case in a package with the same name as the Use Case - EA has a great implementation of packages, I use them to structure my models everywhere.

So for each Use Case, I have at least on realization either to one diagram reference (if no more is needed) or to a package   which then contains further diagrams.

Marvis

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • Creativity is allowing yourself to make mistakes.
    • View Profile
Re: Relation between Use Cases and Activity
« Reply #10 on: March 03, 2005, 06:04:07 am »
Bruno:
This is something I thought about too. I will discuss this in my team.

I don't know why you are suspicious about detailed Use Cases. Hopefully I can explain a little bit more about it, because I don't know if I am doing the right job.

I have a model with Use Case that include/extend more Use Cases that include/extend more Use Cases. Different actors can use the Use Cases. To keep overview, ths first diagram shows the primary Use Cases. To see a Use Case, you browse to is Use Case diagram. Now you see one specific Use Case with it's included/extended Use Cases.

This is the right way to do it?

Marvis

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • Creativity is allowing yourself to make mistakes.
    • View Profile
Re: Relation between Use Cases and Activity
« Reply #11 on: March 03, 2005, 06:09:29 am »
Rolix:
I model my scenarios with an Activity diagram. I still use the rules for scenarios. But the reason to use Activity diagrams is that one picture says more than 1000 words.
So it is possible to convert the Activity one-on-one to the scenarios of the Use Case.

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Relation between Use Cases and Activity
« Reply #12 on: March 03, 2005, 10:26:47 am »
Hi Marvis,

do I understand it right that you a Use Case, for example "Open Account" and underneath the Use Case you have a child diagram that contains the same UC Open Account, together with all the inclusions, extensions etc? I see, that actually does make sense.
The way I originally understood it was that you had a UC that you would then be breaking down into more detailed ones, which generally does not work. Sorry about the confusion!

Bruno

Quote
Bruno:
This is something I thought about too. I will discuss this in my team.

I don't know why you are suspicious about detailed Use Cases. Hopefully I can explain a little bit more about it, because I don't know if I am doing the right job.

I have a model with Use Case that include/extend more Use Cases that include/extend more Use Cases. Different actors can use the Use Cases. To keep overview, ths first diagram shows the primary Use Cases. To see a Use Case, you browse to is Use Case diagram. Now you see one specific Use Case with it's included/extended Use Cases.

This is the right way to do it?


Marvis

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • Creativity is allowing yourself to make mistakes.
    • View Profile
Re: Relation between Use Cases and Activity
« Reply #13 on: March 03, 2005, 11:00:21 pm »
That's right. I think I did not explained well enough. But I am glad that I am doing the right job.

Many thanks for your help.
Maurice
« Last Edit: March 03, 2005, 11:00:36 pm by Marvis »

TrtnJohn

  • EA User
  • **
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: Relation between Use Cases and Activity
« Reply #14 on: March 04, 2005, 04:08:01 pm »
Since scenarios aren't really element in the diagram there isn't any way to make them composite elements.  Personally, I don't find the Use Case property window sufficient myself and often build a seperate Word document for detailing the Use case.  If you do that you can include diagrams generated with EA into the document to produce a very nice design specification.  Another option is to create Use case elements for each scenario and use the realize association between the primary Use case and the scenario.  You could then make each element a composite element and navigate to the diagram that goes with each.   (Not sure if this is really UML compliant though).