Posted: 10 Nov 2016 14:19 EST Last activity: 18 Jan 2017 6:28 EST
Real Time Dashboard
Hi Fellow Developers,
Need design idea on below scenario
We have list of users in hierarchy and at every level users should see the realtime data of users who report to him. Dash board consists of number of users their total work count , status of work etc . We need to update the dashboard immediately when ever records inserted to work or assign table.
Our apporach : want to create a datapage and set it refersh strategy for every one minute but we are expecting performance issue , is there any better approach for it.
I was looking at Declare_pzRecentsCache. It is defined as a requestor level data page. I could not understand as to how the change in another requestor session (another user resolving a work item) would impact the current users session. Please help here.
I think, logical condition in Refresh strategy is not going to help you as, it will evaluate the refresh strategy only in case of fetch is required from the Data-Page. So, from the refresh strategy perspective we only left with "time interval" reload. If you have doubt based on the real-time data load or scalability. I think the following approach may help.
You can create a Declare-Trigger on Work-item on SAVE of crucial properties, run an activity to determine whether you need to refresh the data-page and remove the data-page. Once the data-page remove(s), it should ideally, fetch the new data. You may have to have some control do decide whether you need refresh the screen for triggering refresh of the data-page.
Please note, I have not seen this approach. It is just an idea.
There is new concept Real time notifications coming in Pega 7.2.3 which refreshes dashboard automatically when a new workbject assigned and also it will provide who are the team members online in team memebers widget