Sign in

In this particular post, we will learn how to provide OAuth authentication for REST service in PEGA. We will use Postman to test the same.

OAuth provides a secure way of data transfer between the applications without revealing the user’s identity or credentials. It is a token-based authentication to access a resource. For example, Google, Facebook, Amazon uses OAuth authentication for their users to provide third-party merchant applications.

Pre-requisites

  1. Access to the PEGA product
  2. Postman

Step 1: Register as an OAuth Client

In PEGA -> DEV Studio, access the Security -> OAuth Client 2.0 Client Registration records


What is Data Encryption in PEGA?

If the critical information is getting saved in PEGA Database as an exposed property in the work tables, then the preferred approach is as follows:

1. Create a cipher class pointing the database using the PEGA media files that comes with product 
2. Using the same cipher generator PEGA media files, upload the generated JAR into the PEGA database tables
3. Navigate to the Data Encrption landing page, refer to the generated cipher class and activate the Data Encryption

What is the Access Control Policy and Access Control Policy Condition?

Access Control Policy or Attribute-based access control is used to restrict the user to access the specific instance of a class…


What are the different types of authentications allowed as part of connecting to a service provided?

BASIC Authentication is used to store the external service provided user name and password in an Authentication profile and refer to the same in the connect rule forms.

OAuth Authentication is a two-step process verification

Step 1: Register the OAuth2.0 Client Registration rule with the service provider Client ID and Client Secret Key.

Step 2: Retrieve the token using the OAuth Service Provider service.

How does it work?

Connect Service will retrieve the token using the provided Client ID and Client Secret Key, then the token is passed as part of the actual service call in the header. Token will…


In this particular post, we will learn to deploy a Tensorflow JS predictive model as a web app using google cloud run. Tensorflow JS executes the ML predictive models in the client browser. It helps to reduce the Server API calls and provides a real-time user experience. Web and mobile apps can leverage this Tensorflow JS for the low resource-intensive model executions.

Pre-requisites

  1. Set-up google cloud account
  2. Install node

Step 1: Download the TensorflowJS Model

Refer to the below link on how to generate a Tensorflow JS predictive model

https://clincher.medium.com/how-to-create-an-image-classifier-predictive-model-without-a-single-line-of-code-8ed6b1402f6b

Download the generated model as below into a folder

Note…


In this particular post, we will learn how to develop an image classifier predictive model using the teachable machine google project. This google project helps anyone to develop a machine learning model without ML expertise. Web and mobile apps can use these generated models.

We will use a flower data-set to develop an image classification.

Access the flower data-set in the Kaggle site

Pre-requisites

Step 1: Date preparation for image classification

In this example, we will select different flowers — Rose, Sunflower, tulip from the dataset.

Click on the Image project


What is Data Encryption in PEGA?

If the critical information is getting saved in PEGA Database as an exposed property in the work tables, then the preferred approach is as follows:

1. Create a cipher class pointing the database using the PEGA media files that comes with product 2. Using the same cipher generator PEGA media files, upload the generated JAR into the PEGA database tables 3. Navigate to the Data Encrption landing page, refer to the generated cipher class and activate the Data Encryption

What is the Access Control Policy and Access Control Policy Condition?

Access Control Policy or Attribute-based access control is used to restrict the user to access the specific instance of a class…


In this particular post, we will learn how to use the Google Cloud Text-to-Speech REST service. It converts text into natural-sounding speech using an API powered by Google’s AI technologies. It is useful in the Web/Mobile applications to provide customer interactions with lifelike human intonation. This service is also helpful in converting the PDF’s into the audiobooks.

The service uses the SSML — Speech Synthesis Markup language. The output of the REST API service is the Synthesised audio in base-64 encoded format. You can decode that content to an mp3 file.

Pre-requisites

  1. Set-up google cloud account

Step 1: Enable Cloud Text-to-Speech…


How to pre-load the data page before the screen UI renders?

In the pre-activity of the flow action, have to use the **LOAD-DATAPAGE** PEGA API method to load the data pages before the screen UI renders.

If there are multiple D Pages used as part of the screen, then configure the *asynchronous data page pool name* as part of the LOAD-DATAPAGE PEGA API method and use the Connect-Wait subsequently to invoke multiple D Pages.

What is the implementation approach for a 50K RECORDS data for a parameterized data page approach?

1. Load all 50K Records into a single node-level data page
2. For the parameter data pages access, load the records from the node level data page

  • **The above approach reduces the number of database calls for…

Google Translation Service

In this particular post, you will learn to create and use the Google cloud translation REST API service. It is a pre-trained model over 100 languages to translate the data. Translation API helps web and mobile applications contents to translate content from one language to another language.

Pre-requisites

  1. Set-up google cloud account

Step 1: Enable Cloud Translation API

Enable the cloud translation API in the google developer console.


What is the difference between the CorrNew and SendCorrespondence activities?

  • The difference is to call the CorrNew utility activity from a flow to send correspondence if you want flow processing to continue on immediately.
  • Use the flow SendCorrespondence with the flow (subprocess) shape instead if processing needs to wait on correspondence verification. Neither CorrNew nor SendCorrespondence can be used with correspondence that specifies “Must Edit”. Corrs that require editing can only be created using the correspondence flow actions (SendCorrespondence or Notify).

How to invoke the Declare Collection rule from an activity?

  • Use the Collect Keyword — followed by the declare collection rule name.

How to restrict the Wait Shape resume operation for end-users?

  • On the Wait Shape, there is an option to disable the Users can choose to continue the…

Sandeep Pamidamarri

Pega Architect | Cloud Practitioner | Data Science Enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store