Discussion
Pegasystems Inc.
PL
Last activity: 15 Jul 2024 7:55 EDT
Theme-Cosmos: Open work object with Full portal from pulse notification link
Email notifications which are sent from Pulse contain links to the work objects. These links, by default, are configured to open WO without portal, what may cause some issues. Theme Cosmos app is based on Ajax containers, so for proper functioning it needs to be loaded with full portal. Such loading can be triggered by clicking on properly generated URL, but it requires configuration to be done by app developer.
1. URL mapping configuration
URl mapping needs to be configured for required Case type. It allows creation of simple URLs which redirect to the WO of defined type and ID. If it is done properly WO is opened in full portal. Steps for configuring mapping are described here: Theme-Cosmos: Configure URL Mapping
2. Adding URL to correspondence
URL which are configured in the previous step can be now added to the Correspondence rule which is used as a template for Pulse notification. By default it is:
Correspondence: pyInstantPulseNotification • Email / ruleset: Pega-ProcessEngine / class: @baseclass
It is defined on @baseclass, but taking into account, that every Case type needs separate mapping, it needs to be overwritten for every Work- class that requires opening from URL.
Link to the WO is included in correspondence rule by referencing:
Correspondence Fragment: WorkLink • Email / ruleset: Pega-ProCom
Rule contains code for generating URL to the WO. It needs to be overridden and instead of default URL, create simple link according to the template defined in URL mappings. As mappings are defined per Case type, each case type requires separate instance of this rule. So for example, if mapping for MyCase type is defined, WorkLink rule can be saved as WorkLinkMyCase and code inside can be changed to:
PublicLinkURL = PublicLinkURL+'MyCase/'+tools.getStepPage().getString("pyID");
This Correspondence Fragment can be now included in customized Correspondence:
<<include WorkLinkMyCase>>
***Edited by Moderator Rupashree S. to add Capability tags***