Check TriggerThe check trigger executes first, before any of the normal system code which carries out the event has a chance to execute. The program specified here can be used to:
Refer to Types of Trigger Programs for more information. Override TriggerThe override trigger fires after the check trigger, but before any of the normal system code that carries out the event has a chance to execute. It can also be used to:
Refer to Types of Trigger Programsfor more information. Action TriggerThe action trigger fires after the event transaction is committed, whether the normal event took place or the override program replaced the event. The action program typically extends the functionality associated with an event (or the override program that replaced the event). A program attached to the action trigger can perform any post-event processing that must be done after the event has updated the database. For example, an action program may generate a report in an external application that lists the changes that have just occurred. Since you would not want this action to fire unless those changes actually took place, the action trigger is always fired after the event transaction is committed. Consider, however, that the same event is part of a larger transaction. If the action trigger fired immediately after the event, generating a report outside of the ENOVIA Live Collaboration, what would happen if the transaction failed? The ENOVIA Live Collaboration can only roll back internal state changes, so the report would be generated erroneously. In this case, the action program execution should be defined as Deferred so that it is deferred until all transactions are committed. Refer to Types of Trigger Programs for more information. |