Author Topic: Use case relationships and activity diagrams  (Read 657 times)

julia12345

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Use case relationships and activity diagrams
« on: November 03, 2011, 11:33:53 am »
Hi,

I am evaluating Enterprise Architect and I have a couple of question regarding use case relationships. I would appreciate the feedback of someone with experience in EA, or point out references addressing these issues. I have not found any references so far.

1) Use case relationships and activity diagrams
When in a Use Case model there are <<include>> relationships, is it possible to generate an activity diagram that contains the activities of the including use case and the included use cases?

For example:
"Withdraw Cash" use case <<include>> "Authenticate Customer" use case.
What would be the best approach to create a diagram that represents the actions of both, "Withdraw Cash" and "Authenticate Customer" use cases?
The goal is to view in the same diagram all possible paths of the use case from the beginning to end.

2) Scenarios
When in a Use Case diagram there are <<include>> and <<extend>> relationships, what is the correct way to indicate those relationships in the use case scenarios?

For example: "Withdraw Cash" use case <<include>> "Authenticate Customer" use case.
In a scenario of "Withdraw Cash", there is an activity in which the system needs to authenticate the customer. I could define Action as "The system includes Authenticate Customer use case", however that does not explicitly show the relationship between the use cases in the activity diagram.  I could also indicate that in the Uses column, but this seems to be used mostly for requirement traceability.

What would be the appropriate way to enter content of each column in the scenario activity definition to reflect this relationship?
- Action:  
- Uses:
- Results:

Thank you,

Julia.
« Last Edit: November 03, 2011, 11:34:52 am by julia12345 »

qwerty

  • EA Guru
  • *****
  • Posts: 9673
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Use case relationships and activity diagrams
« Reply #1 on: November 03, 2011, 07:30:39 pm »
When I write use cases then in the scenario I simply write "Include use case <name>". If in rare cases an activity diagram is needed it would be appropriate to include an activity with the name of the use case. Additionally this activity could be linked via a dependency to the use case.

q.

julia12345

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Use case relationships and activity diagrams
« Reply #2 on: November 04, 2011, 03:50:56 am »
Thank you for your response qwerty. Regarding your comment:
"Additionally this activity could be linked via a dependency to the use case."

How do I create a dependency of the activity to the use case?

qwerty

  • EA Guru
  • *****
  • Posts: 9673
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Use case relationships and activity diagrams
« Reply #3 on: November 04, 2011, 06:24:19 am »
Like for any dependency. Place both elements on the diagram and draw a dependency (in this case from the activity to the UC).

q.

julia12345

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Use case relationships and activity diagrams
« Reply #4 on: November 05, 2011, 12:53:55 pm »
Thank you qwerty! I will try that,

J.