Designer 10.7 | webMethods CAF and OpenUI Development | Working with CAF Events and Notifications | Creating an Event Handler
 
Creating an Event Handler
 
About CAF Event Handler Actions
Configuring a Simple Event Handler Action
Configuring a Fire Ajax Event Action
Configuring an Invoke Service Action
Configuring a Send Notification Action
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.
7. (Optional) In the Condition Type list box, specify a simple or advanced condition type. For more information, see Configuring Simple Conditions and Configuring Advanced Condition and Action Expressions.
8. In the Handler Actions area, specify a simple or advanced action type. At least one action is required. For more information, see Configuring a Simple Event Handler Action and Configuring Advanced Condition and Action Expressions.
9. Save your changes.
Related Topics