Posts

Basic Pega NLP exercise for Twitter

Image
Here I am sharing a small, basic Natural Language Processing (NLP) exercise using Pega Infinity V84 to analyze the Twitter's tweet data and capture the sentiments into a Pega case. Before we start this exercise, we need to have twitter's API keys. For that, we need to login into the Twitter's developer site using twitter login credentials and create an app in it. https://developer.twitter.com/ Here is the details for your info and below are the simple steps to be followed to work on this exercise J 1) We need to build a Data Flow:  TwitterDataFlow to capture the Twitter configuration ( TwitterDS ) , Text analyzer process ( TweetsAnalyzer ) and a Pega case ( TwitterCase ) to be used to capture the data 2) Took the Pega NLP model:  TwitterSentimentModels and used in the Text analyzer step and created a sample NL file ( TwitterSentimentLexicon ) in csv format to recognize the words/sentiments 3) Create a sample model( TwitterSentimentModels ) by using t...

My GraphQL learning points

Image
GraphQL is an open-source data query and manipulation language for APIs, and a runtime for fulfilling queries with existing data.GraphQL was developed internally by Facebook in 2012 before being publicly released in 2015. https://graphql.org/ GraphQL is a query language for an API, and a server-side runtime for executing queries by using a type system we define for our data. GraphQL isn't tied to any specific database or storage engine and is ins tead backed by our existing code and data. Once a GraphQL service is running (typically at a URL on a web service), it can receive GraphQL queries to validate and execute. A received query is first checked to ensure it only refers to the types and fields defined, then runs the provided functions to produce a result. GraphQL Request: {   me {     name   } } GraphQL Response: {   "me": {     "name": "Ravi Kumar Pisupati"   } } REST Vs GraphQL: 1) In REST, the endpoint you call is the identi...

Send SMS from Pega V83 using Twilio API intgeration

Image
The prerequisite for this exercise is like we need to have Twilio acct and the connected phone number to that acct for sending the SMA to the recipient mobile phone. For now, it is working in USA and I tried with India number and is not working and I am not sure on this. To run this exercise, we need to install a Ruleset: PegaFW-Twilio:08-03 and this is not as a part of product feature. For now, I just hardcoded the endpoint URL, request parameters etc to make sure that I am able to send SMS from Pega activity rule. We can connect the dots if we plan to work on the actual implementation. Screenshots for the implementation of this small PoC work: This is the necessary setup to call the API and other rules to work on this integration.        Logic to build the API call from a standalone activity to run and send the SMS     References: 1)  http://community1.pega.com/             ...

Simplified Kafka streaming to run from Windows command prompt

Image
After doing little research from my end, I did simplify the Kafka streaming process to work on Windows command prompt easily. The prerequisite for this simple exercise is like we need Apache Kafka software and a Windows 10 machine with full file/folder access permissions to run the Kafka commands through out the exercise. We can extend this work to next level by adding the security using SSL and we need the jks files to Kafka streaming process by using a properties file (eg:client-ssl.properties) while using producer/consumer commands successfully. Of course, these are not covered in this post but usually that is how most of the organizations used to follow this approach while working on Kafka streaming. Below are the simple steps to follow on this simple exercise: 1) Download the Apache Kafka =>  https://www.apache.org/dyn/closer.cgi?path=/kafka/2.4.0/kafka_2.12-2.4.0.tgz 2) Extract the Kafka into C:\Kafka and the structure would be like this way 3) U...

My AWS Solutions Architect Associate exam preparation journey

Image
AWS SAA exam is one of the hardest/toughest exams which I had faced after my earlier certifications - TOGAF and Pega CLSA. On the paper, everyone think that AWS is just a cloud environment and it provides all the necessary resources while working on any Java/Pega application running. But when I started learning the topics from the exam point of view, I noticed that it is not that easy to setup the cloud env in reality. Need to understand the basics of cloud first and then explore more on each and every area while setting up the cloud env. There are 20 plus services provided in AWS but some of the areas are little complex to understand and visualize the situation (eg:VPC,security,storage etc). I don't think there is a practical exposure or the practical exp required while preparing the exam. But it is good to have some basic idea of what a cloud is and how it works. To be honest, I also don't have practical experience until I started working on the course content but I did atten...

Simple exercise on Jenkins integration with Pega 722 or Pega Infinity (localhost)

Image
Use DevOps practices such as continuous integration and continuous delivery to quickly move application changes from development through testing to deployment on your production system. Use Pega Platform™ tools and common third-party tools to implement DevOps.  With continuous integration, application developers frequently check in their changes to the source environment and use an automated build process to automatically verify these changes. Continuous integration identifies issues and pinpoints them early in the cycle. Use Jenkins with the prpcServiceUtils tool and the execute test service to automatically generate a potentially deployable application and export the application archive to a binary repository such as JFrog Artifactory.  You can use Jenkins to automate exporting and importing Pega 7 Platform applications. Download the " prpcServiceUtils " command-line tool and configure Jenkins to export or import archives. You can use a single Jenkins b...

Easy to create our own android mob app using Pega V8.1

Image
Here I am sharing a very simple Pega application (HRServices) running on android device/Saucelabs after following certain easy steps J . The pre-requisite for this exercise to perform at your end using V81 local is the Key Store (Certificate). We can generate our own Key Store using java utility(keytool) at our JDK path and the details are given below. After finishing this step, the remaining exercise is very easy to build the app to generate a QR code to launch it from the real device or we can download the APK file to work on the app from Saucelabs.  Hope this will be a good idea for the folks who don’t know on building the mobile app using Pega. Those who would like to know more on the login credentials & QR code for this exercise, pls contact me offline. Step1: Create our own keystore file before we go to next step. There is a “keytool” command to run at command line. Command: keytool -genkey -v -keystore C:\Users\rpisupat\Documents\Certificates\MobApp\MyKeystore.key...