HookContext Object Overview
When Illume calls the function associated with a hook, it passes one object as a parameter, the HookContext object, which includes properties and methods to do all of the following:
- Get and set participant responses.
- Get properties of questions and other objects within the survey.
- Get information about the page the participant just posted back to the server, including a list of items on that page, and the direction of the participant's navigation.
- Execute queries and commands against the database that the Illume server is using.
- Get properties related to the current http request (the System.Web.HttpContext object for the current request).
- Display error messages.
- Log errors and exceptions to the Illume server log.
With this object, your code has access to all it needs to know about the current survey. From here, it's a simple matter of programming to generate custom emails, make calls to external databases, generate custom feedback documents, etc.
Next: Runtime SDK Setup