Create Individual Class Procedure

To create a stored procedure as an individual Class, follow the steps below, in two stages:

Define Procedure Stereotype

  1. Select the Settings | UML menu option. The UML Types dialog displays, at the Stereotypes tab.
  2. In the Stereotype field, type procedure.
  3. In the Base Class field, type class.
  4. Click on the Save button, and on the Close button.

Create Procedure Element

  1. Open the required diagram.
  2. Select the More tools | UML | Class menu option in the Enterprise Architect UML Toolbox.
  3. Click on the Class element in the list of elements and then click on the diagram. If the Class Properties dialog does not automatically display, double-click on the element.
  4. In the Name field, type a name for the procedure.
  5. In the Stereotype field, type procedure.
  6. Click on the OK button to close the dialog. The new procedure element displays.
     
    Procedure element
     
  7. Double-click on the procedure element. The Procedure <name> dialog displays.
     
    ProcedureDialog
     
  8. In the Database field click on the drop-down arrow and select the target DBMS to model. (The field displays the default database if it has already been set.)
  9. In the Procedure definition field, type the entire procedure text.
  10. Click on the Save button, and then the Close button.