Activity Diagram in UML, Page 2
Identifying the activities and transitions for managing course information
The course administrator is responsible for managing course information in the Courseware Management System. As part of managing the course information, the course administrator carries out the following activities:
- Check if course exists
- If course is new, proceed to the "Create Course" step
- If course exists, check what operation is desired—whether to modify the course or remove the course
- If the modify course operation is selected by the course administrator, the "Modify Course" activity is performed
- If the remove course operation is selected by the course administrator, the "Remove Course" activity is performed
In the first step in this Activity diagram, the system determines whether the course that is to be managed is a new course or an existing course. For managing a new course, a separate activity, "Create Course," is performed. On the other hand, if a course exists, the course administrator can perform two different activities—modify an existing course or remove an existing course. Hence, the system checks the type of operation desired based on which two separate activities can be performed—"Modify Course" or "Remove Course".
UML Activity diagram
Figure 7.2—Activity diagram for the "Manage course information" use case
Figure 7.2 shows the Activity diagram for the "Manage course information" use case. The Activity diagram depicts the steps involved in this workflow. At the end of each of the activities in the "Manage course information" workflow, the Course object is the one that is affected and, hence, we have included this in the Activity diagram.
The Activity diagram is a simple way to represent the workflows and their steps of an entire system or a subsystem. In the next article of this series, we will learn about Sequence diagrams.
About the Authors
Mandar S. Chitnis, Lakshmi Ananthamurthy and Pravin S. Tiwari are the co-founders of Novusware inc. They have co-authored the book Teach Yourself BEA WebLogic Server 7.0 in 21 Days (SAMS publishing Oct 2002) based on the recently launched WebLogic Server 7.0 by BEA Systems inc.
For any questions or queries regarding the article contents, please contact firstname.lastname@example.org.
Page 2 of 2