![]() In this, you can see that two more actors are involved, one is the metra driver, and the other is the cab driver. The activity of hailing a cab would involve hail cab, wait for cab driver to stop, inform driver of your destination, and finally alight. Were we to break down the activities further, we can break up the activity of taking the metra to “wait for the train to arrive at the station,” alight train, wait for train to arrive at destination, and so forth. Consider the Activity diagram in Figure 7.1. Swim LanesĪctivity diagrams provide another ability, to clarify which actor performs which activity. The final activity is to actually attend the lecture, after which the Activity diagram terminates. If there is sufficient time to catch the train, then take the train else, flag down a cab to the University. A decision then has to be made, depending on the time available for the lecture to start, and the timings of the public trains (metra). This is represented by a horizontal split (thick dark line) and the two concurrent activities next to each other, and the horizontal line again to show the end of the parallel activity.įinal Activity: The end of the Activity diagram is shown by a bull’s eye symbol, also called as a final activity.Ĭonsider the example of attending a course lecture, at 8 am.Īs you can see in Figure 7.1, the first activity is to get dressed to leave for the lecture. For example, listening to the lecturer and looking at the blackboard is a parallel activity. Such activities are called concurrent activities. Signals are of two types: Input signal (Message receiving activity) shown by a concave polygon and Output signal (Message sending activity) shown by a convex polygon.Ĭoncurrent Activities: Some activities occur simultaneously or in parallel. Signal: When an activity sends or receives a message, that activity is called a signal. This is similar to the notation used for Initial State.Īctivity: Represented by a rectangle with rounded (almost oval) edges.ĭecisions: Similar to flowcharts, a logic where a decision is to be made is depicted by a diamond, with the options written on either sides of the arrows emerging from the diamond, within box brackets. Initial Activity: This shows the starting point or first activity of the flow. Elements of an Activity DiagramĪn Activity diagram consists of the following behavioral elements: Element and its description It is time to take a look at the building blocks of an Activity diagram. These transitions depict the activities causing these transitions, shown by arrows.Īn Activity diagram talks more about these transitions and activities causing the changes in the object states. So, what is the importance of an Activity diagram, as opposed to a State diagram? A State diagram shows the different states an object is in during the lifecycle of its existence in the system, and the transitions in the states of the objects. ![]() An Activity diagram is a dynamic diagram that shows the activity and the event that causes the object to be in the particular state. The flowchart is used to depict the business logic flow and the events that cause decisions and actions in the code to take place.Īctivity diagrams represent the business and operational workflows of a system. Thinking of a flowchart of code is the easiest way to visualize an Activity diagram. You are about to learn what an Activity diagram is, what its elements are, and you will be able to create Activity diagrams for your system. Now you’ll learn about the next dynamic diagram-the UML Activity diagram. In the previous article, State Diagrams in UML, you learned about State diagrams, the notations to be used in State diagrams, their significance, and how to build a State diagram for a specific scenario in the Courseware Management system. We may make money when you click on links to our partners. content and product recommendations are editorially independent.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |