Book a Demo

Author Topic: Use case scenario from activity diagram  (Read 4861 times)

Edward G

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Use case scenario from activity diagram
« on: April 14, 2014, 07:12:04 pm »
If i am not mistaken the EA doesn't allow to crete use case scenario from activity diagram. In my opinion it contradicts MDA principles.

Is it possible there is workaround method?
Edward

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Use case scenario from activity diagram
« Reply #1 on: April 14, 2014, 07:44:04 pm »
That's not fully correct. EA has a way to combine scenarios with ADs. However, I do not recommend to use them as they are limited to one level of alternative paths (no alt. from alt. possible).

q.

Edward G

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Use case scenario from activity diagram
« Reply #2 on: April 14, 2014, 09:00:56 pm »
Could you tell us about this way?
Edward

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Use case scenario from activity diagram
« Reply #3 on: April 14, 2014, 09:35:27 pm »
see my post in the other thread.

q.
« Last Edit: April 14, 2014, 09:35:45 pm by qwerty »

Gary

  • EA User
  • **
  • Posts: 84
  • Karma: +1/-0
    • View Profile
Re: Use case scenario from activity diagram
« Reply #4 on: April 14, 2014, 10:17:02 pm »
Yes it is possible and a search would have turned up the answer but to save you time here is the post I made last year.

Underneath to Use Case that you want to import the activity diagram to :
1) Create an activity element.
2) Create a tagged value called diagramType with a value of ActivityGraph on the activity element from step 1.
3) Place your previously created activity diagram as a child of the activity element created in step 1.
4) Open the scenario tab of the Use Case
5) Right click the first step and select Create Structure From Generated Activity Diagram
6) Navigate to the activity element created in step 1.

Decisions can cause problems so make sure that the alternate flows from the descision have guards and if they end the use case go to a Flow Final.
If your alternate links back to the ActivityFinal, when you import the diagram a step is created in the alternate called ActivityFinal. If you then update the Use Case and regenerate the diagram an activity is created called ActivityFinal which then flows to a Flow Final which is not what you wanted.

Hope this helps

Gary

Edward G

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Use case scenario from activity diagram
« Reply #5 on: April 15, 2014, 01:14:39 am »
Thanx, Gary.

It is interested way.
Edward