![]() Actions are denoted by round-cornered rectangles.Ĭonstraints can be attached to an action. An activity is shown as a round-cornered rectangle enclosing all the actions, control flows and other elements that make up the activity.Īn action represents a single step within an activity. The following sections describe the elements that constitute an activity diagram.Īn activity is the specification of a parameterized sequence of behaviour. Activity diagrams are useful for business modelling where they are used for detailing the processes involved in business activities.Īn Example of an activity diagram is shown below. They may be used to detail situations where parallel processing may occur in the execution of some activities. Activity diagrams show the workflow from a start point to the finish point detailing the many decision paths that exist in the progression of events contained in the activity. In UML, an activity diagram is used to display the sequence of activities. I tend to use an object node on top of the region, just beside the initial node.UML 2 Tutorial - Activity Diagram Activity Diagrams Here it is not the case.Ĭoncerning the iterating character, there is nothing very visual, unfortunately. The region is interruptible, and some events (usually noted with receive nodes) may completely interrupt it no matter the progress of the region content. The interrupting edge is rather for interruptions coming from outside the current processing. In this case you have to integrate the "further message processing node", in the "yes" branch, just before this flow final node. Thus, you can use it to represent the "break" statement, instead of the interrupting edge you use. As a side note, I advise you to also use an initial node for the beginning of your loop.Īnd there is also the flow final node, that represents an exit, instead of a completion. In UML, the activity final node represents a completion, so it is correct in a loop region as you use it, it is the normal completion of the content of your loop (which in turns leads to the next iteration). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |