Software Code Generator Overview : Stubs: Procedures or Tasks : Make Task

Make Task

Activities implemented as Tasks are expected to run in parallel with other activities, particularly in parallel with the advance of the Statecharts. Tasks may interact with other activities and be synchronized with them. You can also apply action to them i.e., stop, suspend, or resume.

To Make a Task, complete the following steps:

1.
Select View > Show Scope as Tree.
2.
Select the Activity-chart that contains the activity box that you want to make a task.
3.
Select View > Show Boxes.
4.
Select the primitive activity you want.
5.
Click on the Task icon in the toolbar or select Edit > Make Task.

The Code Generator labels the activity with a T and a graphic as shown in the BEEP activity example in the following figure.
Note: For information on integrating handwritten C, refer to Supplementing Generated C.
Note: For information on integrating handwritten Ada, refer to Supplementing Generated Ada.