Creating an input pin
You can create an Input Pin through an Activity Diagram or a Modeler pane.
|
• If you select a Parameter that has an 'in and out' mechanism, Modeler creates an Input Pin.
• Modeler ensures that the name of an Input Pin matches the name of its linked item:
◦ If you change the name of the Input Pin, Modeler changes to the name of the linked item to match.
◦ If you change the name of an Input Pin's linked item, Modeler changes the name of the Input Pin to match.
|
To create an input pin through an activity diagram:
1. On the Activity Diagram tab, click the
Input Parameter / Pin button, and then on the Activity Diagram click the edge of one of the following items:
◦ Accept Event Action
◦ Activity Diagram frame (the owning Activity)
◦ Call Behavior Action
◦ Call Operation Action
◦ Opaque Action
◦ Structured Activity Node
For more information about what Input Pins can be created on and what the Linked Item is in each case, see
Input pin (dictionary item).
2. From the popup menu that appears:
◦ To add an existing Input Pin, click the command for that Input Pin.
◦ To create a new Input Pin for an existing Attribute or Parameter: point to New Pin, and then click the command for the Attribute or Parameter for which you want to create a new Input Pin.
◦ To create a new Input Pin and a new Attribute or Parameter: point to New Pin, and then click New Attribute or New Parameter.
If you click New Attribute or New Parameter, Modeler creates an Input Pin and also creates the Parameter or Attribute that is set up as the Input Pin's Linked Item:
◦ For an Accept Event Action (linked Event type is Opaque), Modeler creates a Parameter on the Event that is the Accept Event Action's Linked Item.
◦ For an Accept Event Action (linked Event type is Signal), Modeler creates an Attribute on the Signal that is the trigger for the Event that is the Accept Event Action's Linked Item.
◦ For an Activity Diagram frame, Modeler creates a Parameter on the Activity that is linked to the frame.
◦ For a Call Behavior Action, Modeler creates a Parameter on the Activity that is the Call Behavior Action's Linked Item.
◦ For a Call Operation Action, Modeler creates a Parameter on the Operation that is the Call Operation Action's Linked Item.
| When you create an Input Pin on an Opaque Action or Structured Activity Node, a popup menu does not appear because the Input Pin does not have a Linked Item. |
3. Type the name of the Input Pin, and then press the Enter key.
Alternatively:
• Drag the Attribute or Parameter that is to be the Linked Item of the Input Pin from a Modeler pane to the edge of the item or frame on the diagram.
To create an input pin through a Modeler pane:
1. In a Modeler pane, right-click one of the following items, and select > > .
◦ Accept Event Action
◦ Activity
◦ Call Behavior Action
◦ Call Operation Action
◦ Opaque Action
◦ Structured Activity Node
For more information about what Input Pins can be created on and what the Linked Item is in each case, see
Input pin (dictionary item).
2. From the popup menu that appears:
◦ To add an existing Input Pin, click the command for that Input Pin.
◦ To create a new Input Pin for an existing Attribute or Parameter: point to New Pin, and then click the command for the Attribute or Parameter for which you want to create a new Input Pin.
◦ To create a new Input Pin and a new Attribute or Parameter: point to New Pin, and then click New Attribute or New Parameter.
If you click New Attribute orNew Parameter, Modeler creates an Input Pin and also creates the Parameter or Attribute that is set up as the Input Pin's Linked Item:
◦ For an Accept Event Action (linked Event type is Opaque), Modeler creates a Parameter on the Event that is the Accept Event Action's Linked Item.
◦ For an Accept Event Action (linked Event type is Signal), Modeler creates an Attribute on the Signal that is the trigger for the Event that is the Accept Event Action's Linked Item.
◦ For an Activity Diagram frame, Modeler creates a Parameter on the Activity that is linked to the frame.
◦ For a Call Behavior Action, Modeler creates a Parameter on the Activity that is the Call Behavior Action's Linked Item.
◦ For a Call Operation Action, Modeler creates a Parameter on the Operation that is the Call Operation Action's Linked Item.
| When you create an Input Pin on an Opaque Action or Structured Activity Node, a popup menu does not appear because the Input Pin does not have a Linked Item. |
3. Type the name of the Input Pin, and then press the Enter key.