PreviousNextIndex
Nodes and Palette Options > Detailed Palette Option Descriptions > Return Event
 
Return Event

Type

Event handler

Available from

Purpose

Returns an event to the calling application. Can be used to propagate an event caught in a module to the calling application, or may be used to throw a different event back to the calling application.

Behavior

Following is an example for when to use the Return Event item, in collaboration with the Exit item.

  1. Catch (event="myEvent"), Return Event. In this scenario, when the "myEvent" event is caught, the module will exit, returning control back to the calling application, and it will return the "myEvent" that was caught.
  1. Catch (event="error.runtime"), Return Event, Throw (event="myReallyBadEvent", message="Something happened..."). In this scenario, the application catches an "error.runtime" event and the module will exit returning control back to the calling application.
  1. Catch ("error.badfetch"), Exit. In this case, the application catches an "error.badfetch" event and then exits the application. Exiting the application will essentially disconnect the caller and terminate the session.

Properties


PreviousNextIndex

©2009, Avaya Inc. All rights reserved.