The flowchart below illustrates how a typical user submission is processed, including interactions with event hooks:
- CATSWeb first checks for Event Hooks defined to handle the applicable Add, Edit or Delete event for the form category. If any are defined, it processes each of them, according to the order defined in the event hook.
- Event hook routines may modify or augment submitted data, perform custom validations, take actions, or register themselves or other routines to be called after CATSWeb completes processing of the event (in a Post-process Call).
- CATSWeb validates the submission. If validation tests pass, and no validation errors were returned from the event hook routines, processing continues.
- If the optional Record Archiving feature is installed, and the submission modifies or deletes an existing record, the record is archived. The record is then updated, deleted, or added as appropriate.
- If Post-process Calls were registered by the event hooks, those routines are called. Typical uses for Post-process routines are to generate custom confirmation messages, send E-mail notification messages, or synchronize data in external systems based on the actions performed in CATSWeb.
|