You will now connect the objects inputTitle and outputTitle with the action Get Title. The object outputTitle is also output of the activity diagram (the output parameter is passed to the caller of the activity diagram, which is the assigned port type operation). The object outputTitle will be the output of the action Get Title.The object inputTitle will also be the input of the single action Get Title. The object inputTitle is input of the activity (the input parameter is passed from the caller of the activity diagram - the assigned port type operation).Object nodes may be input and output of single actions, or input and output of activity diagrams. They model the flow of values to or from object nodes. In activity diagrams, object flows are represented by slightly thinner lines than control flows. Objects or data are passed along the object flow. Object flows capture how objects participate in activities and how they are affected by the activities. Before you add action script to the action in order to implement some behavior, you need to complete the object flow. Name the action Get Title and close the dialog. You can place any action with the described method into control flows.ĭouble-click the action node to open its specification dialog. The action node is now integrated into the control flow. In the following dialog, click the button After Control Flow. Release the mouse button to insert the action node. As soon as you move the +-sign of the cursor over the control flow, the blue helper grid line appears. ![]() The most efficient way to insert an action node in an existing control flow is to drag it onto this control flow, which will be split by MagicDraw automatically without the need to reconnect the initial node, the action node, and the activity final node manually.ĭrag the action node onto the control flow, which connects the initial node and the activity final node. You will now add an action to the activity diagram by selecting the Action icon from the diagram toolbar. You will start by renaming the pre-defined activity and activity diagram. However, in this course, only one activity diagram per activity is defined. An activity can have several activity diagrams, each of them representing a special view on the activity (for instance, error handling could be placed in a second activity diagram). It is containing all UML elements that are used in the activity diagrams of this activity. Activities and Activity DiagramsĪn activity ( ) is created upon creation of an activity diagram ( ). Objects may be input and output of single actions, or input and output of activities. An object flow models the flow of values to or from object nodes. Call Operation Actions can be used to call class operations encapsulating specific behaviors.īesides designing the control flow with actions, there are objects that are part of defining an object flow in an activity.Therefore, it is possible to decompose the behavioral logic into smaller units of activities. Call Behavior Actions give a link to other activity diagrams. ![]() For instance, > actions apply actions to SQL databases. They may contain so-called action scripts, or can be stereotyped signaling a special kind of an action.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |