Select the shape whose events you want to edit. Right-click the shape and select Properties.
In the Properties dialog box, click Events.
Click New, choose the type of event you want to add, and then click OK.
The appropriate event properties dialog box opens.
Type a Name for the event.
Choose the stereotype you want from the drop-down list. If a stereotype you want to use isn't listed, you can add a new stereotype or edit an existing one by clicking Stereotypes on the UML tab of the ribbon.
Type any documentation you want to add to the element as a tagged value. When you select the shape or icon representing the element, the documentation you type here also appears in the Documentation window.
Depending on the type of call you've selected, there may be other properties to complete, as described in this table:
Choose the operation the event calls for.
Choose the language in which you want to write the change expression.
Change event, Time event
Write the change expression, using the language you specified. A change expression consists of a Boolean condition. The event occurs when the value of the expression changes from FALSE to TRUE.
Choose the signal to which the event is related. All signals defined for the relevant package are listed here.
Write an expression, using the language you specified, that indicates a period of time after which or a specific date or time on which the event will occur.
Repeat steps 3 through 7 until you've added all the events you want, and then click OK to close the UML Properties dialog box for the package.
The events you add to a package are available to other appropriate elements, such as action states, contained in the package.
Tip: You can also create new events by clicking Events on the UML menu. Select the package in which you want the event to be created, and click New.