rishabh gore (rishabhg6362)
JP Morgan

JP Morgan
rishabhg6362 Member since 2016 1 post
JP Morgan
Posted: October 25, 2016
Last activity: November 3, 2016
Posted: 25 Oct 2016 8:34 EDT
Last activity: 3 Nov 2016 9:15 EDT

Declare OnChange and Declare Triger

Hello All,

I was going through the "Declarative Processing" part of the course. There was a description about Declare OnChange and Declare Trigger. It states "Declare OnChange can track several properties that have been saved as part of the case" and for Declare Trigger an example is given that states "there is a scenario that the audit trail must contain information about the different values stored as part of discount. Whenever the values in the discount change, it causes the trigger to fire the standard activity which writes an entry to the audit trail".

I think that the description for both these rules are swaped/interchanged. For the example given for Declare Trigger, the changed values of the properties will not be captured unless the instance is saved. To track the change in values in audit trail- Using Declare On change should be the preffered approach. Kindly help if I missed something. Thank You.

Pega Academy
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.