Enabling Cosmos React applications for registration
Merge seamless work management and an innovative UI framework by enabling Cosmos React applications for registration with Pega Process Fabric Hub. By default, Cosmos React applications are not compatible with Pega Process Fabric Hub, but after you provide a correct data transform configuration, your applications can publish data to Pega Process Fabric Hub for unified case and assignment management in your organization.
For more information, see User interface and Cosmos React (early adopter).
After you install the Pega Process Fabric Hub connector component, your application includes an empty Assign-.pyPF_SetRequest data transform and an empty Work-.pyPF_SetCaseRequest data transform. When you provide correct configuration for the data transforms, you can register your Cosmos React application with Pega Process Fabric Hub.
- In the navigation pane of Dev Studio, click Records.
- Expand the Data Model category, and then click Data Transform.
- In the list of data transform instances, open the
Assign-.pyPF_SetRequest data transform, as in the
following figure:
Opening the Assign-.pyPF_SetRequest data transform - Click Save as, and then save the rule in your application ruleset.
- On the Definition tab, define the data transform by
entering the following values:
Row Action Target Relation Source 1 When RequestPage.status != "Resolved" Not applicable Not applicable 1.1 Remove RequestPage.actions Not applicable Not applicable 1.2 Update Page RequestPage.actions(<APPEND>) Not applicable Not applicable 1.2.1 Set .ID equal to "redirect" 1.2.2 When !Application.pyIsConstellationApp Not applicable Not applicable 1.2.2.1 Comment "?"[email protected](Pega-RULES:Utilities).pzEncryptURLActionString(tools,"Global","pyActivity=pyMobileSnapStart&Action=openAssignment")+"&InsHandle="+Primary.pzInsKey+"&InsClass="+Primary.pxObjClass+"&pyShowFullPortal=true" Not applicable Not applicable 1.2.2.2 Set .href equal to "?"[email protected](Pega-RULES:Utilities).pzEncryptURLActionString(tools,"Global","pyActivity=pyMobileSnapStart&Action=openAssignment")+"&InsHandle="+Primary.pzInsKey+"&InsClass="+Primary.pxObjClass+"&pyShowFullPortal=true" 1.2.3 Otherwise not applicable Not applicable Not applicable 1.2.3.1 Comment @pxIndexInPageListIgnoreCase(.pxRefObjectClass,"pyWorkTypeImplementationClassName",Application.pyWorkMetaData) Not applicable Not applicable 1.2.3.2 Set Param.WorkMetaIndex equal to @pxIndexInPageListIgnoreCase(.pxRefObjectClass,"pyWorkTypeImplementationClassName",Application.pyWorkMetaData) 1.2.3.3 When Param.WorkMetaIndex>-1 Not applicable Not applicable 1.2.3.3.1 Comment "/"[email protected](Application.pyWorkMetaData(Param.WorkMetaIndex).pyWorkTypeName)+" <s/ or es/ or ies/>"[email protected](.pxRefObjectKey,'') Not applicable Not applicable 1.2.3.3.2 Set .href equal to "/"[email protected](Application.pyWorkMetaData(Param.WorkMetaIndex).pyWorkTypeName)+"s/"[email protected](.pxRefObjectKey,' ') 1.2.4 Set .title equal to "Redirect and Open" 1.2.5 Set .type equal to "Get" For example: The following figure shows a correctly completed data transform: Assign-.pyPF_SetRequest data transform - On the Pages & Classes tab, define data pages that
the data transform accesses by entering the following values:
- In the Page name field, enter RequestPage, and then, in the Class field, enter $NONE.
- Click Add item.
- In the Page name field, enter RequestPage.actions(), and then, in the Class field, enter $NONE.
- Click Save.
- In the navigation pane of Dev Studio, click Records.
- Expand the Data Model category, and then click Data Transform.
- In the list of data transform instances, open the
pyPF_SetCaseRequest data transform, as in the
following figure:
Opening the Work-.pyPF_SetCaseRequest data transform - Click Save as, and then save the rule in your application ruleset and corresponding case type class.
- On the Definition tab, define the data transform by
entering the following values:
Row Action Target Relation Source 1 Remove RequestPage.actions Not applicable Not applicable 2 Update Page RequestPage.actions(<APPEND>) Not applicable Not applicable 2.1 Set .ID equal to "redirect 2.2 When !Application.pyIsConstellationApp Not applicable Not applicable 2.2.1 Comment "?"[email protected](Pega-RULES:Utilities).pzEncryptURLActionString(tools,"Global","pyActivity=pyMobileSnapStart&Action=openWorkByHandle&InsHandle="+Primary.pzInsKey+"&pyShowFullPortal=true&ThreadName="+Primary.pyID) Not applicable Not applicable 2.2.2 Set .href equal to "?"[email protected](Pega-RULES:Utilities).pzEncryptURLActionString(tools,"Global","pyActivity=pyMobileSnapStart&Action=openWorkByHandle&InsHandle="+Primary.pzInsKey+"&pyShowFullPortal=true&ThreadName="+Primary.pyID) 2.3 Otherwise Not applicable Not applicable Not applicable 2.3.1 Comment @pxIndexInPageListIgnoreCase(.pxObjClass,"pyWorkTypeImplementationClassName",Application.pyWorkMetaData) Not applicable Not applicable 2.3.2 Set Param.WorkMetaIndex equal to @pxIndexInPageListIgnoreCase(.pxObjClass,"pyWorkTypeImplementationClassName",Application.pyWorkMetaData) 2.3.3 When Param.WorkMetaIndex>-1 Not applicable Not applicable 2.3.3.1 Comment "/"[email protected](Application.pyWorkMetaData(Param.WorkMetaIndex).pyWorkTypeName)+"s/"[email protected](.pzInsKey," ") Not applicable Not applicable 2.3.3.2 Set .href equal to "/"[email protected](Application.pyWorkMetaData(Param.WorkMetaIndex).pyWorkTypeName)+"s/"[email protected](.pzInsKey,' ') 2.4 Set .title equal to "Redirect and Open" 2.5 Set .type equal to "Get" For example: The following figure shows a correctly completed data transform: Work-.pyPF_SetCaseRequest data transform - On the Pages & Classes tab, define the data pages
that the data transform accesses:
- In the Page name field, enter RequestPage, and then, in the Class field, enter $NONE.
- Click Add item.
- In the Page name field, enter RequestPage.actions(), and then, in the Class field, enter $NONE.
- Click Save.
Previous topic Installing the Pega Process Fabric Hub connector component Next topic Establishing communication between Pega Process Fabric Hub and Pega Platform by editing dynamic system settings