Creating an Event Handler
Each event handler is associated with a single specific event, and manages the response to that event. When an event occurs, the event handler determines how the event is processed.
When you create an event handler, a variable for the event type associated with the handler is automatically added in the Event Variables node in the Bindings view (you must be viewing the Handlers tab to see the variable in the Bindings view).
To create an event handler
1. In the CAF Events Editor, click the Handlers tab.
2. In the Handlers area, click Add.
3. In the General area, type a name for the handler in the Name text box.
4. (Optional) Type a description in the Description text box.
5. In the CAF Event Type area, select a My webMethods Server or custom event type in the Event Type list box.
6. Select a Listener Type:
Queued Default. Executes the event handler on only one node in a cluster after the event initiates.
Asynchronous Executes the event handler on every node in a cluster after the event initiates.
Synchronous Immediately executes the event handler on every node in a cluster when the event initiates.
Note:
Increasing the number of synchronous event handlers can significantly increase the processing time of the action that initiated the event.
9. Save your changes.
Related Topics