#1. I know well about pyDefault in Work class but what is the exact difference from NewDefaults? My guess is pyDefault is used for Work class and NewDefaults is used for non-Work class. Both gets executed when instance is created from class. Am I correct?
#2. There is a also an activity called "ApplicationProfileSetup" that is also some kind of initializer. How is this described compared to above pyDefault and NewDefaults initializer?
***Edited by Moderator Marissa to update platform capability tags****
Are you talking about activities here? If yes, the description is providing information:
ApplicationProfileSetup: Performs application specific initialization after Process Commander init is done. Invoked by Code-Security.InitialProfileSetup activity
NewDefault: Called from Work-.New and Work-.NewCovered, this extension point activity allows the user to customize or extend the steps that are performed while creating new work page for the new harness.
pyDefault: Is apparently just used around UI Gallery but we also have a lot of DataTransform called pyDefault to be use as model.
ApplicationProfileSetup: My understanding is this is not per system but per requestor: When each user logs in, this activity gets executed. Is it correct? Or are you saying this gets executed only once when the system boots up?
NewDefault: My understanding was this is well used as "constructor" for non-Work class. For example, if you create NewDefault in Data-Admin-Operator-ID class, it gets executed by itself when an instance is created in the class. Is my understanding not correct?
Okay, NewDefault works for all classes. But usually if you only want to set value for a property like "constructor" in regular programming, Data Transform "pyDefault" is sufficient in that sense (does not need to be an activity). On the other hand, "placing" pyDefault Data Transform only works in Work class but not in non-Work class. In that sense, I would use pyDefault Data Transform for Work class instantiation, and NewDefault activity for non-Work class instantiation. Does this sound reasonable?