I am very new to UML and UML activity diagrams. my question is suppose in a student course registration system after student successfully login to the system there are 3 options add course, delete course or review courses then how we can implement this in UML activity diagram.

can I use fork here ? but I know fork is used when there is simultaneous actions. this is not simultaneous action. student can either add course delete course or review course. can anyone help me? any help is appreciated.

有帮助吗?

解决方案

In an activity diagram, if there is a decision which could lead to three different flows, you should use a decision node with guards. This means that only one path is chosen. The three paths would probably be merged again at some time.

The fork, as you rightly noticed, is for concurrent action. It would mean that all three activities are performed at the same time. A join would then synchronise the three parallel flows before continuing. This is not what you want here.

许可以下: CC-BY-SA归因
scroll top