ibm Rational Rhapsody 7.5 — Defining send action elements

Statecharts Send action elements The Send Action button can be used in statecharts, activity diagrams, and flow charts to represent the sending events to external entities. The Send Action element can be used to specify the following actions: Љ Event to send Љ Event target Љ Values for event arguments This is a language-independent element, which is translated into the relevant implementation language during code generation. Note Code can be generated for Send Action elements in C, C++, and Java. Defining send action elements To define the element, provide the following information in the Features window: Љ Using the Target list, select the object that is to receive the event.

Љ Using the Event list, select the event that should be sent. Љ Provide values for the event arguments by selecting the argument in the argument list and clicking the Value column. Note In cases where there are a number of objects based on the same class, you need to provide additional information after selecting the target from the list. For cases of simple multiplicity, you must provide the array index to specify the object that receives the event. In the case of qualified associations, you need to provide the qualifier value for the object that is to receive the event.

The Preview text box displays the text that is displayed on the element if you select full notation as the display option to use. The target list includes all objects known to the class for the statechart. You can choose the name of the target object, or the name of a port on the target object. You can click the button next to the Target list to open the Features window of the relationship with the target object. Similarly, you can click the button next to the Event list to open the Features window for the selected event. 756 User Guide