Maryam Butt
Maryam Butt

Reputation: 63

how to make an activity diagram in uml to support multiple activities without if/else

I need to clarify my concept. I am making activity diagrams for different activities. for an activity titled as: 'View Profile'.... i need to make its dgm... In 'view profile' a user can:

1- view his/her monthly bills
2- View demographics details
3- Edit his/her details

and foreach 1,2,3 there would be different steps to be followed

My question is: how should i make an activity dgm for such a situation... here is what I am tryong to communicate.. help me how to correct it or what sort of symbol should be used in between to serve the correct purpose as its upto user whether he wants to explore all 1,2,3 or only 1 or only 2 etc

starting diagram

Upvotes: 0

Views: 2867

Answers (2)

Phill_P
Phill_P

Reputation: 399

If only 1 option can occur at a time: a decision point (diamond shape) would be the most appropriate (annotated "user chooses option" or similar). The decision point would have 3 paths leading to the 3 possible options.

For clarity the paths should have arrows indicating direction.

To show that the user can perform another option after completing an initially chosen one, you could have another decision point that each of the 3 steps link to. That decision point could be named "User chooses to continue further steps?" or similar, with the "Yes" path leading back to the first decision point, and the "No" path leading to a final node.

Upvotes: 0

Red Beard
Red Beard

Reputation: 3506

In fact I would create an activity diagram describing view profiling which would contains three CallActivities calling respectively three activities named "View details", "Edit details", and "View bills".

Now for linking these three CallActivities inside the ViewProfile Activity I would use decision/merge nodes (depending if the threes sub activities can not be performed in parallel).

Decision node corresponding to a if/else statement but if I well understood your issue you need that plus the fact that after having performed one of these subactivities you should be able to performe one of them and this is modeled by a flow coming back to these subactivities

Hoping it is clear and it helps

Please take a look at my attachment. enter image description here

Upvotes: 3

Related Questions