The CA 2E trigger implementation replaces multiple user-written, file-specific trigger programs with a single, generic file-independent Trigger Router that you can specify as the trigger program for any trigger over any database file. The Trigger Router uses a rule-based system held in a Trigger References File to call one or more further Trigger Functions that have previously been created in the CA 2E model. These functions are called either directly or asynchronously through a separate Trigger Server. You can specify each Trigger Function to perform any user-defined processing.
The parameters passed from the Trigger Router to a Trigger Function are simplified file-specific individual parameters. They represent the various elements of the trigger buffer parameter that was passed from DM to the Trigger Router. This simplification allows a test-harness to be generated in CA 2E very easily.
This implementation is also flexible enough to allow additional trigger functionality to be added, changed and tested very easily, simply by creating new Trigger Functions and updating the Trigger References File to link the Trigger Function to the trigger.
Note: If the Trigger Router routes a Trigger Function to the Trigger Server, the server cannot return an error code to the Trigger Router (and thence to the application program). Consequently, any processing within such Trigger Functions must be non-critical, since any failure within this processing will not be able to roll back the database change.
The following diagram shows the structure of a CA 2E trigger showing how the various components interact.

The processing sequence for a CA 2E trigger is as follows:
There are three separate sections to the CA 2E trigger support:
|
Copyright © 2014 CA.
All rights reserved.
|
|