Adding action pins and activity parameters to diagrams
Action pins can be added to actions
and activity parameters can be added to action blocks in an activity
diagram. These elements represent the inputs and outputs for the relevant
action/action block.
Action pins can also be added to
subactivities.
About this task
Action pins and activity parameters are
diagram elements and appear in the browser. However, there is no code
generated for these elements.
Highlight an element in the browser that
needs an activity diagram for analysis purposes only.
Right-click the element and select Add New > Diagrams > Activity
Diagram.
Right-click the Activity Diagram now
listed in the browser and select Features to
open the Features window.
Select the Analysis Only check
box on the General tab.
Click OK.IBM® Rational® Rhapsody® displays
a message asking if you intend to create an analysis only activity
diagram. If you click Yes, this diagram cannot
be used for other purposes than analysis.
The system then places the Action
Pin and Activity Parameter buttons
on Diagram Tools.
Using the action pin
Procedure
Click the Action Pin button at
the bottom of the available Diagram Tools.
Click the action to which you want to apply
the pin.
Results
The pin displays on the border of the action
closest to the point that was clicked. The name displays alongside
the pin. The default name is pin_n.
Adding an activity parameter
Procedure
Click the Activity Parameter button at the bottom of the Diagram Tools.
Click the action block to which you want
to apply the activity parameter.
Results
The activity parameter displays on the border
of the action block closest to the point that was clicked. The name
displays inside the activity parameter node. The default name is parameter_n.