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.

Making the action pin tool available for use

Procedure

  1. Highlight an element in the browser that needs an activity diagram for analysis purposes only.
  2. Right-click the element and select Add New > Diagrams > Activity Diagram.
  3. Right-click the Activity Diagram now listed in the browser and select Features to open the Features window.
  4. Select the Analysis Only check box on the General tab.
  5. 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.
  6. The system then places the Action Pin and Activity Parameter buttons on Diagram Tools.

Using the action pin

Procedure

  1. Click the Action Pin button Action Pin button at the bottom of the available Diagram Tools.
  2. 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

  1. Click the Activity Parameter button Activity Parameter button at the bottom of the Diagram Tools.
  2. 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.


Feedback