In Constellation you don’t add actions sets to buttons, links, etc; the approach is to use out-of-the-box patterns. We thus don’t have any OOTB feature to allow adding refresh button.
Please share the outcome you are trying to achieve here - Why the case needs to be refreshed and for what reason.
Adding a case wide local action, is also one approach worth exploring.
We have similar requirement, kindly let me know if you find any solution.
Our requirement: We are using optimistic locking, case opened by two users/requesters, one user submit the assignment and other user trying to submit the same assignment then it’s throwing an error but there is no option to refresh to see the updated data. (in traditional ui there is OOTB message and refresh option available but this option not available in Constellation)
@Aditi MehtaOne of the scenarios where we expect to have a Refresh option is when we are running a background process. In this case, we need to display the outcome of the process in the case view after it finishes. Currently, the user has to close and reopen the case view to see the new changes. Another scenario involves child cases running in parallel, where we need to display the outcomes of these child cases in the main case.
@BOUANENEM For running background process ,we need put a property which will be populated (may be boolean- IsProcesscomplete - True/false) when the bg process completes. Use this property to refresh the view . Go to the flow action and under view configuration - > Form refresh setting → check for true/false value of the boolean . Once the bg process completes the view will be autiomatuclly refrshed and you get the new data .
@BOUANENEMYou can send refresh request in your background process to specific case using the activity below. It will refresh case metadata and task list. However, parameter criteria must be a java hash map.
pxC11NPublishMessage
Case refresh parameters: criteria= caseId:.pzInsKey, matcher=CASE
Task list refresh parameters: criteria= ID:.pzInsKey, matcher=TASKLIST
I have tried this Aditi solution on my project earlier, and it works. This solution below works for you if you’re leveraging data pages and the user needs to Refresh manually to see the updated results.
For refreshing the case - during optimistic locking; currently there is no OOTB way to refresh the case. The user has to close the case and open again to be able to see the updated data.
Feedback has been raised to improve this behavior in infinity 25.
@Aditi Mehta iam using pxC11NPublishDatapageUpdate , the notification is working for case type but i wanted to have in service account which is in data class, there notification message is not popping up
@Aditi Mehta Is there a way that the application team can implement the case refresh on the pega constellation review screen similar to history tab implementation. Business want to refresh the case/assignments view to see if the case has moved out of wait shape or the assignment pending background processing and view the next set of assignments triggered.
Note: User is not willing to close the case and open the case to view the updated tasks/assignments
@DILIPB72 try to create local action to show refresh action,inside this local action call activity and place pxC11NPublishDatapageUpdate . See if this works or not