Using the Graphic Editors : Working with Charts and Diagrams : Statecharts : Associating a Statechart with an Activity

Associating a Statechart with an Activity

Statecharts describe the behavior of an activity that is defined in an activity chart, and the two can be associated within the scope of the project itself.

To associate a statechart with a corresponding activity:

1.
2.
Using the Create Control Activity icon, draw a control activity and label it with the name of the corresponding statechart preceded by an at (@) sign. You might, for example, label it like the following:

@CALC_REAR_DEFOG_STATE_BHVR

3.
Select File > Save, then File > Exit to write the association and quit the chart.