Adding an Operation to an Entity

Operations are added to entity classes via the right-click context menu. To add an operation to an entity:

  1. Select Add Operation from the right-click context menu and choose the stereotype for the operation you want to create.
  2. Accept the default name of the operation which will match the stereotype you selected.

Most of the operation stereotypes do not require you to model the arguments or return types. If the stereotype you choose does require a return type to be modeled it must be a struct. To do this:

  1. Select the return type in the wizard using the 'Select Type' button.
  2. If the return type you select is an entity, you must also select the Shadow Type from the drop down to identify the actual struct that will be used. If the return type you select is a struct, do not select a Shadow Type.