top of page

Successfully Configuring a Connect-REST Integration in Pega Platform

Integrating external systems with Pega Platform using Connect-REST can be a seamless process if you follow these steps in Dev Studio. Here’s a comprehensive guide to help you configure a Connect-REST integration efficiently.

 

Step 1: Create a Connect REST Rule

 

  1. Navigate to Integration Creation: 

    1. In Dev Studio, go to `Create` > `Integration-Connectors` > `Connect REST`.

  2. Define the Integration Context: 

    1. Label: Enter a descriptive text for the Connect REST rule. 

    2. Id: Optionally, edit the default identifier if you need a unique value.

    3. Context: Select the appropriate context for your rule. 

    4. Apply to: Select the class that defines the scope of the Connect REST rule. 

    5. Add to ruleset: Choose the ruleset name and version where the Connect REST rule will be stored.  

    6. Click `Create and open`.


Step 2: Configure the Service Tab

 

  1. URL Configuration: 

    1. Provide URL: Enter the endpoint URL of the external system directly. 

    2. Use application setting: Select an existing application setting or create a new setting to define the base URL.

  2. Resource Path Parameters and Query String Parameters: 

    1. Name: Enter the name of the resource or query string parameter. 

    2. Map from: Choose the source for the value: 

      1. Clipboard: Select the property from the clipboard. 

      2. Constant: Enter a fixed value in double quotation marks. 

      3. Parameter: Map from a parameter on the connector parameter page.  

    3. Map from key: Specify the property or parameter name.  

    4. Empty behaviour: Define how to handle empty values:   

      1. Throw error/required: Throws an error if the parameter is empty.  

      2. Name only: Appends only the parameter name to the URL.

 

Step 3: Configure Authentication

 

  1. Authentication Options:  

    1. Use authentication profile: Select an existing authentication profile for the remote service.  

    2. Use application setting: Select or create an application setting to specify the authentication profile.

 

Step 4: Set Up Error Handling

 

  1. Status Value and Message Properties: 

    1. Status value property: Use `.pyStatusValue` to hold the status code.  

    2. Status message property: Use `.pyStatusMessage` to hold status descriptions.

  2. Error Handler Flow: 

    1. Error handler flow: Identify a flow rule to manage work items that cannot proceed due to connector issues, such as `Work-.ConnectionProblem`.

 

Step 5: Handling Errors

 

  1. Transient vs Permanent Errors: 

    1. Transient Errors: Temporary issues that often resolve over time. 

    2. Permanent Errors: Errors related to configuration or application logic.

  2. Logging and Error Investigation:  

    1. Ensure that errors are logged for investigation and resolution.

  3. Error Handling in Data Pages:  

    1. For connectors invoked via data pages, check the response data transform for errors using a separate error handling data transform like `pxErrorHandlingTemplate`.  

    2. Use the error handling flow to manage errors not detected in data pages or data transforms. The system will retry the connector or route processing to a specific flow like `FlowProblems` if a transient error persists.

 

Summary

 

By carefully configuring the Connect REST rule, handling parameters, and setting up robust error handling, you ensure that your integration with the external system is reliable and maintainable. Make sure to test the integration thoroughly and monitor for both transient and permanent errors to maintain a seamless connection.

 

By following these guidelines, your team can create effective and efficient Connect-REST integrations within the Pega Platform.

 

-Team Enigma Metaverse



1 view0 comments

Comentarios


bottom of page