Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Create Stereotypes Extending non-UML Objects

A Profile is typically defined by extending core UML object types to create your own modeling language or technology; however, you can also extend non-UML objects defined by another existing technology such as ArchiMate, BPMN, or SysML.

Extending a non-UML object allows inheritance of these properties from the existing stereotype:

  • Tagged Values
  • Shape Scripts
  • Stereotype colors
  • Metatype properties

Create a Stereotype extending a non-UML Object

Step

Description

See also

1

In the Browser window, locate the Package with the <<profile>> Stereotype and open its child diagram.

If you do not have an existing <<profile>> Package, use the 'MDG Technology Builder' option in the Model Wizard to create a new technology, then open the diagram from the newly created <<profile>> Package.

Using the Profile Helpers

2

Drag the 'Metaclass' icon from the 'Profile' page of the Diagram Toolbox onto the diagram.

The 'Extend Metaclass' dialog displays.

Profile Toolbox

3

Select the 'Stereotypes' tab.

4

From the drop-down list, select the Profile to extend (for example, 'SysML1.3') and select the checkbox next to the non-UML Stereotype to extend (for example, 'Block').

Click on the OK button.

The appropriate Stereotype element is added to the Profile diagram.

5

Add a new Stereotype by dragging the 'Add Stereotype Profile Helper' from the Diagram Toolbox.

This will be the custom Stereotype that extends the non-UML type added to the diagram in step 4.

When you have finished, the Stereotype element and Metaclass element are displayed on the Profile diagram.

Add Stereotypes and Metaclasses using Profile Helpers

6

Draw a Generalize connector from the custom Stereotype added in step 5 to the non-UML Stereotype element added in step 4.

7

Save the diagram as a Profile.

Export a Profile

8

Define a Toolbox Profile that has items for each of your Stereotypes.

Create Toolbox Profiles using the Profile Helpers

9

Incorporate the saved Profiles into an MDG Technology.

Create MDG Technology File

Example Stereotype Profile

This example shows a Stereotype Profile that defines the stereotype <<hardwareBlock>>. The <<hardwareBlock>> stereotype is an extension of SysML Block, from the SysML MDG Technology.

Stereotyped profile, a Block extends a SysML Block in Sparx Systems Enterprise Architect.

Notes

  • When using a Shape Script to customize the Stereotype's appearance you can use the drawparentshape() method to render the shape that is defined for the non-UML object being extended
  • If you are adding any of the Metaclass element Attributes to your stereotype, or if you want to use the Profile Helper to create a toolbox profile, your stereotype Class must extend a metaclass as well as specialize a stereotype

Learn more