Creating a Runnable

Each software component must contain one or more runnables.

  1. In the Outline pane of the SWC editor, select a diagram.
  2. Do one of the following:

    • In the Insert menu, select Runnable.
    • Click the Insert Runnable button.
    • Select Add Runnable from the diagram's context menu.

    A new runnable is created in the Outline pane.

  3. Type in a name for the runnable and press <Enter>.

    Note

    A runnable name must not be identical to an event name. If it is, a warning (WMdl388) is issued during code generation.

  4. Edit the implementation of the runnable.

A runnable can have a number of local variables. The local variables can be created and modified using the signature editor.

See also

Editing a Process/Method/Runnable Implementation

Adding Local Variables to a Runnable or Method

Editing Arguments and Local Variables

Reserved Keywords