ibm Rational Rhapsody 7.5 — Creating a subactivity from an action block

Activity diagram elements Modify the features of an action block Use the Features window for an action box to change its features, including its name and description. An action block has the following features: Љ Name specifies the name of the action block. The description of the action block can be entered into the text area on the Description tab. This description can include a hyperlink. For more information, see Hyperlinks . Љ L specifies the label for the element, if any. For information on creating labels, see Descriptive labels for elements . Љ Stereotype specifies the stereotype of the action block, if any.

They are enclosed in guillemets, for example «s1» and enable you to tag classes for documentation purposes. For information on creating stereotypes, see Stereotypes . – To select from a list of current stereotypes in the project, click the folder with binoculars button. – To sort the order of the stereotypes, click the up and down arrows button. Note: The COM stereotypes are constructive; that is, they affect code generation. Creating a subactivity from an action block You can convert an action block to a subactivity. This moves the contents of the block into a separate subchart, and simplifies the diagram containing the action block.

To create a subactivity from an action block, right-click the action block and select Create Sub Activity Diagram . Rational Rhapsody creates a new subchart containing the former contents of the action block. Consider the action block shown in the following figure. When you create a subactivity for the action block, the parent state changes to that shown in the following figure. Rational Rhapsody 629