Adding an Event Handler to a Metaclass or a Stereotype

You can create an event handler in a profile.

  1. Right-click a metaclass or a stereotype and select New > Event Handler to open a selection box, listing the available event handlers.
  2. Select one or more event handlers and click OK to add them to the metaclass.
  3. Click on the event handler in the tree view, and enter a name and comment.
  4. Click the Event Handler Script tab and enter your script:


  5. Click Apply to save your changes.