Posted: 31 May 2018 18:48 EDT Last activity: 1 Jun 2018 2:25 EDT
How to load node level Data Page in Pega startup
We have a node level data page that is used by everyone, and only one time load is sufficient as the contents never change. Data Page gets created per first user reference, but for better performance we want to make it available before user's trigger. I guess there are many ways to do this, but I just created a startup agent to call an activity with Load-DataPage method as below. It works fine but does this approach sound reasonable or is there any other better standard way?
As creating an agent will have an overhead of day to day maintenance. For this kind of prerequisites for an application, there is an activity ApplicationProfileSetUp at the Code-Security class which is the extension point for application specific initialization.
Thanks for the info. I understand creating an agent takes somewhat overhead. However, this ApplicationProfileSetup gets fired based on user log in right? I feel firing this Load-DataPage at server startup is more natural rather than specific user logs in. Would you still recommend ApplicationProfileSetup approach?