Posts

Showing posts from March, 2019

Create a Case using Pega Microservice code from an external system

Image
Microservices are a software development technique—a variant of the service-oriented architecture (SOA) architectural style that structures an application as a collection of loosely coupled services.The benefit of decomposing an application into different smaller services is that it improves modularity. This makes the application easier to understand, develop, test, and become more resilient to architecture erosion. In a microservices architecture, services are fine-grained and the protocols are lightweight. For more details, check the internet. This is a simple exercise to run a sample Pega microservice code using postman API testing tool (3rd party to run REST api-services). To run this exercise, we need to have a local Pega PE running and the PE would need a sample application running with a Case type and all. Before running the Pega PE, make sure to have postman tool running in the machine. To download the postman tool, follow this site: https://www.getpostman.com/. Chec...

Generate QR code from Pega

Image
This is a small experiment on how to generate a QR code using Pega. For this, we need a Zebra Crossing library(jar) to import into Pega and use those classes to create a QR code image (png) from Pega. It is available from the Maven repository   given below (just use a browser to download it) and use the Import feature from Pega.    https://repo1.maven.org/maven2/com/google/zxing/core/2.2/core-2.2.jar The main steps we need to follow in Pega to work on this exercise: 1) Build a Pega function (RUF):  GenerateQRCode   with the java code to generate the QR code image. This RUF needs few parameters like file type, text to use, width & height of the images. 2) Build another Pega function (RUF):  GetFileName with the java code to get the random file name using SHA1 checksum of the image. 3) Build the logic in the activity:  GenerateQRCode by using the above 2 steps and render the QR image in a HTML screen popup using Show-HTML from the activit...

My Kafka Learning

Image
Though I am not an expert in Kafka but I am giving some of my learning points as a part of my Kafka integration exercise with Pega Infinity. To begin with Kafka, I was curious to know how it works and what are all the various components to understand well along with Kafka cluster architecture. We can get any Kafka related information from Google and I am trying to cover the fundamentals/basics & the importance of Kafka in my words. For any extra information related to Kafka, it is good to refer the books or we can do some research in net. Kafka is a distributed publish-subscribe messaging system that is designed to be fast, scalable and durable. It was developed by LinkedIn and open sourced in the year 2011. It makes an extremely desirable option for data integration with the increasing complexity in real time data processing challenges. It is great solution for applications that require large scale message processing. The main component of Kafka are: 1.   ...