Chapter 14. Triggers

Revision History
Revision V7.1-002 19 September 2023
Revision V6.3-007 04 February 2019
Revision V6.3-005 29 June 2018
Revision V6.3-004 23 March 2018
  • In “Don'ts”, add a point recommending against injecting or manipulating $ZWRTAC lines while processing zwrite output.

  • In “Trigger Definition Storage”, correct the description of ^#t and specify that GT.M automatically sets the key size of a trigger to 1019 bytes.

Revision V6.3-003 12 December 2017
  • In “ZGoto”, separate ZGOTO 1 and ZGOTO 0 and add more explanation to the latter

Revision V6.3-001 20 March 2017
Revision V6.2-001 27 February 2015 Added a new section called “Accessing Trigger Xecute Source Code”.

Table of Contents

Triggers
Trigger Definition File
Trigger ISVs Summary
Chained and Nested Triggers
A Simple Example
Trigger Definition Storage
Trigger Invocation and Execution Semantics
Kill / ZKill
Set
Trigger Execution Environment
Error Handling during Trigger Execution
ZGoto
Accessing Trigger Xecute Source Code
GT.CM
Other Utilities
Triggers in Journaling and Database Replication
Journaling
Multisite Database Replication
MUPIP Trigger and $ZTRIgger()