Open topic with navigation

# Event Handlers

Some of the actions that you can send to HPE IDOL Speech Server are asynchronous. Asynchronous actions do not run immediately, but are added to a queue. This means that the person or application that sends the action does not receive an immediate response. However, you can configure HPE IDOL Speech Server to call an event handler when an asynchronous action starts, finishes, or encounters an error.

You might use an event handler to:

- Return data about an event back to the application that sent the action.
- Write event data to a text file, to log any errors that occur.

HPE IDOL Speech Server can call an event handler for the following events.

OnStart | The `OnStart` event is called when HPE IDOL Speech Server starts processing an asynchronous action from the queue.
OnFinish | The `OnFinish` event is called when HPE IDOL Speech Server successfully finishes processing an asynchronous action.
OnError | The `OnError` event is called when an asynchronous action fails and cannot continue.

© 2013-2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send Documentation Feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm