Triggers system: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Added additional information re adding triggers.)
Tag: 2017 source edit
mNo edit summary
Tag: 2017 source edit
Line 153: Line 153:
</syntaxHighlight>
</syntaxHighlight>


__Please note the following before adding additional calls to triggers:__
'''Please note the following before adding additional calls to triggers:'''
 
The rule is to have only 1 trigger call per business CRUD event, even when several actions are done in the same transaction.
The rule is to have only 1 trigger call per business CRUD event, even when several actions are done in the same transaction.
As an example: When a new ticket is created with an already assigned user, only the TICKET_CREATE trigger is called, not additionally the TICKET_ASSIGNED trigger. It is job of the trigger to intercept also this case to scan if an assignement is done directly during creation and to execute its custom code.
As an example: When a new ticket is created with an already assigned user, only the TICKET_CREATE trigger is called, not additionally the TICKET_ASSIGNED trigger. It is job of the trigger to intercept also this case to scan if an assignement is done directly during creation and to execute its custom code.
109

edits

Navigation menu