Add an Event Handler builder to your model to handle events declared in the model.
Once your model contains the appropriate event declarations, you can handle those events by adding an Event Handler builder. In the builder, specify the event to handle and the action to run. Any arguments passed when the event gets fired get passed to the action specified by the event handler. Make sure that the action you specify takes the appropriate arguments.
Parent topic: Declaring events