Question

9
Replies
2662
Views
Avinash Haridasu (Avinash.Haridasu)
Morgan Stanley

Morgan Stanley
IN
Avinash.Haridasu Member since 2014 293 posts
Morgan Stanley
Posted: July 18, 2018
Last activity: August 27, 2019
Posted: 18 Jul 2018 22:56 EDT
Last activity: 27 Aug 2019 9:41 EDT
Closed

When does a declare trigger exactly gets executed

Scenario 1:

1. When i save a WO1 using Obj-Save, trigger is executed. When i'm manipulating some objects in the trigger should i explicitly add any writenow/commit statements or will they be part of the same commit transaction of the WO1. If yes, suppose in an activity i have update the WO1 and issues commit in the immediate next statement. What happens to he deferred statements in the trigger?

2. Similar is the case with commited save trigger. Will the trigger be executed before the object is comitted to database. If yes, will the commit be deferred till the trigger execution is completed. I mean if declare trigger takes 2 minutes to complete, will the WO comitting be put on hold till then?

***Moderator Edit: Vidyaranjan | Updated Platform Capability***

Case Management
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.