The incident events business rule
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- Events
The incident events business rule comes with the system and defines a number of events that can be triggered by different actions in the Incident table.

This business rule defines several events, three of which are triggered after a record in the Incident table is inserted or updated. The first script is:
The condition in this script requires that a change be made to the
Comments field in an existing (not inserted) incident record. If
this condition is true, then the platform adds the incident.commented
event
to the event queue.
The second condition requires that a record be inserted before the event is added to the queue.
The third condition is true whenever the incident record is updated (including updates to the Comments field, as specified by the first script).
The then part of each script, the gs.eventQueue function, adds the event to the event queue. This statement uses the following syntax, set off with braces: