Completing the technical setup for remote case types
A system architect or other technical resource completes the technical setup that is required to support remote case type processing.
- In the remote application, configure the remote case type so that Pega Customer Service can launch it from the Interaction Portal.
- In the remote application, configure the required settings for communication between the remote and local application, including the Web Mashup channels.
- In the local application, add a remote system instance to enable communication with the remote application.
- In the local application, identify the Web Mashup channels for the remote application.
Configuring remote case types
Configure the remote case type so that Pega Customer Service can make that case type available from the Interaction Portal. Mark it as a remote case type, and then map the properties that the system sends to and receives from the local application.
- Log in to the remote application as an administrator, and then open Dev Studio.
- In the navigation pane of Dev Studio, click , and then open the pyDefault case type rule in the case type class, for example, PegaCard-Sd-Claim.
- Click the Advanced tab, and then select the Publish as a remote case checkbox.
- Select the Permit new work checkbox.
- In the List properties to initialize for instantiation section, click the Add item icon to select the properties required to instantiate this case type.
- In the List properties to expose for UI interactions section,
click the Add item icon to select the properties that the system
populates when a CSR saves data for this remote case type.
The remote application exposes several properties in the remote case type for UI interactions. For information, see Remote case type properties for UI interactions.
The following figure shows an example of the property mappings for a remote case type.
- Click Save.
Remote case type properties for UI interactions
By default, the remote application exposes several properties in the remote case type for UI interactions. The Customer Service Remote Template provides the wrapper case type with default properties to hold those properties.
Mapping the exposed remote case type properties to properties from the template
Remote case type properties exposed for UI interactions | Wrapper case type properties that hold values from the remote case |
pzInsKey | czRemoteHandle |
pyStatusWork | czRemoteCaseStatus |
pyID | czRemoteCaseId |
pxUrgencyWork | czRemoteCaseUrgency |
pxObjClass | czRemoteObjClass |
pyLabel | None |
To ensure that the remote properties are available to the wrapper case type, perform the following actions:
- Ensure that the remote application harness includes the Work-pyCaseMain section and is not overridden. The pyCaseMain calls the pxDataFields section internally, which then loads the default properties.
- In the remote application, create the work object (remote case) as a concrete case and not a temporary case. If the remote case is temporary, the application will not populate the czRemote* properties correctly.
In the pxDataFields section, the system loads custom properties that are exposed for UI interactions on the remote case type as hidden fields.
Configuring the remote application
Configure the remote application to communicate with the local application.
- Configure the trusted domains for mashup security
- Enable samesite cookies
- Configure authentication
- Create the Web mashup channels
- Log in to the remote application as an administrator.
- Configure the trusted domains for mashup security.This step adds incoming requests from the local application to the Allow list for the remote application.
- In the header of Dev Studio, click , and then click the Security tab.
- In the Mashup security section, click Add a row.
- In the Trusted origin field, enter a URL that identifies the
host, port, and protocol for the local application's website.
This video demonstrates how to configure the trusted domains for mashup security:
- Repeat the previous step for each of the local application's websites.
- Click Save.
- For remote applications that use cross-domain mashup, enable the samesite cookie
attribute to prevent cross-site request forgery.
- In the header of Dev Studio, click .
- Select the Enable samesite cookie attribute checkbox.
- Click Save.
- Add the operator or operators for the local application so that they can access the
remote application.
You can configure one operator for all users of the local application, or you can configure one operator for each user of the local application.
- If you create one operator for all users, then for each remote case type, map the local application credentials to the remote application credentials in the remote case settings. For more information and an example, see Configuring remote case settings.
- If you create one operator per user, then use the same operator ID and password for the remote and local applications.
The local operator will need to log in to the remote application to process a remote case type. The access group for the remote operator should have minimum access to the user portal. For information about how to add a new operator, see Creating an operator ID.
- For version 8.5 and later remote applications, create the mashup channels for both new
work and open work.The mashup channels help to prevent URL tampering.
- In the navigation pane of App Studio, click Channels.
- In the Create new channel interface section, click Web mashup.
- Create two mashup channels, one for open work and one for new work, and enable the
Allow passing dynamic parameters setting for each
channel.
For more information, see Creating a mashup.
- For each channel, click General mashup code, and then copy
the channel ID from the resulting code.
In the mashup code, the channel ID is displayed in the line that starts with
data-pega-channelID
. Enter these values in the local application's pySetFCMMashupChannelMeta data transform to connect to the Web Mashup channels. For information, see Connecting to mashup channels. - Click Save.
Adding a remote system instance
To enable communication between the local application and the remote application, add a new remote system instance to the local application.
- Log in to the local application as an administrator, and open Dev Studio.
- In the navigation pane of Dev Studio, click .
- Click Create.
- On the New tab, in the Remote system short description field, enter a meaningful description of the system.
- In the System Name field, enter the name of the system.
- Click Create and open.
- Select the Connect using mashup radio button.
- In the Connect using mashup section, in the System
URL field, enter the URL of the remote application.
- In the Application name field, enter the name of the remote application.
- Click Save.
Connecting to mashup channels
If you are connecting to a version 8.5 or later remote application, use Dev Studio to connect your local application to the Web mashup channels that you configured in your remote application.
- Log in to the local application as an administrator.
- In the header of Dev Studio, search for and open the pySetFCMMashupChannelMeta data transform.
- Set the pyChannelIDCreateNewWork property to the channel ID for new work.
- Set the pyChannelIDOpenWorkByHandle property to the channel ID for open work.
- Click Save.
Extensions and limitations
The Customer Service Remote Template provides the local wrapper case type with extension points. In addition, remote case processing has known limitations to consider.
Extensions for wrapper case types
The following table shows the extensions available for the wrapper case type. Extensions included in the Customer Service Remote Template are noted.
Rule name | Rule type | Usage |
pyCaption Process remote request | Field value | Change the flow action name used for process remote request flow action. |
PegaCA-Work-Service WhatsNext | Decision Tree | Based on the business scenarios, set the conditions to render the What’s Next details in the confirm page. Included in the Customer Service Remote Template. |
PegaCA-Work-Service WorkSummary | Section | Work summary of the case displayed in the confirm page. Included in the Customer Service Remote Template. |
Work- cyReviewCaseDetails | Section | Used in the review page to display the general information for a case. |
PegaCA-Work-Service CAWorkSpecific | Section | Used to include details about the work object (case) on the confirm and review pages. Override in each work object class with details required for display for that object. Included in the Customer Service Remote Template. |
style-remote-layout | CSS helper class | CSS helper class on the mashup div that you can customize on the implementation application to style the mashup frame. |
PegaCA-Work-Service-Remote ProcessRemoteRequestExtn | Section | Extension section for remote scenario, to show additional information when the system processes the remote case. |
PreRemoteProcessing | Activity | Extension rule for the implementation layer to update, if anything needs to be updated before remote case processing. |
PostRemoteProcessing | Activity | Extension rule for the implementation layer to update, if anything needs to be updated after remote case processing. |
Limitations
Remote case processing has the following limitations:
The status of the local case remains unchanged even if the corresponding remote case was processed in the remote application. The project team must build the system for the syncing up of the local case with the remote case.
The Web Mashup supports basic authentication (username and password) only.
In the remote application, create the work object (remote case) as a concrete case and not a temporary case. If the remote case is a temporary one, the application will not populate czRemote* properties in the wrapper case type correctly.
The properties being delegated across the work object are scalar and available as the immediate child of the work object (that is, the case).
Previous topic Configuring local case types Next topic Pega Collections