Advanced: Creating Customized OSIs : Customizing API Definitions : General API Definitions

General API Definitions

The OSDT allows you to define how code should be generated for the various model elements. These APIs represent the code that will be generated when you use specific elements in your charts.

For example, if you add an activity to an activity diagram, and select “Task” as the type, the code that is generated for activities related to this task will be determined by the APIs you have defined.

In the case of a Task, you can define the code for activities such as:

Using the OSDT, you can define the code to generate in connection with the following categories:

In the tables containing the API details, the generated code is based on the definition that appears in the column Sample Definition, unless specified otherwise.