Posts

Pega Savable Datapages

Image
Till now we used datapages to fetch and store the data for later uses. Pega did add an extra feature: Savable Datapage ( Pega V74 and later ) which is to save the data using a datapage. We can define a data page to save data to a system of record by using save plans. By using save plans, you can save the updated information after without an activity. Reference: https://community.pega.com/sites/default/files/help_v82/procomhelpmain.htm#rule-/rule-declare-/rule-declare-pages/dm-savable-data-pages-con.htm Sample Usecase: Assume that we are getting customer details like Account Number, Address, Phone Number etc., from an external database. User has the ability to change the address/phone#. Once the user updates any of the details, we need to update the external database. Without Savable datapage: We use a datapage to store the customer details to avoid multiple calls for the same data (if needed multiple times). Whenever the details are changed we use an activity logic to sen...

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.   ...

Monolithic Vs Microservice

Image
Most of the server side applications currently in existence follow this architecture. All the business functionalities are coupled into a single big block of deployable component. It can be .jar , .war or , .ear. Pros: ·        Simplicity, for small codebases ·        Faster early development speed ·        Easy testing Cons: ·        Not ideal for growing codebases ·        Slower iterations in the long term ·        Harder to innovate ·        Steep code learning curve ·        Slower velocity getting into prodcution ·        Single point of failure ·        Deploy everything at once or nothing at all Microservices is a new software architec...

Few things about Chatbots

Image
"  A chatbot is a computer program or an artificial intelligence which conducts a conversation via auditory or textual methods. Such programs are often designed to convincingly simulate how a human would behave as a conversational partner, thereby passing the Turing test. " According to numerous researches, chatbots can bring 90% of accuracy in solving user problems without human interactions. Everyone pretty much at this point have used one of this Omnipresent in some form. Omnipresent is nothing but Artificial Intelligence-based Chatbots. These are some well-known Companies who offer solutions like Siri, Alexa, Cortana, Watson, etc.. Key benefits of using chatbots: Types of chatbots: Informational Bots Application Bots Productivity Bots Some of the usecases: Call Center Customer/Help-Desk Service Marketing Sales Workflow Conversational Partners/Interfaces are what serves the purpose of customer experience in a different w...

Understanding of Blockchain technology

Image
Blockchain is a decentralized, distributed and public digital ledger that is used to record transactions across many computers so that the record cannot be altered retroactively without the alteration of all subsequent blocks and the consensus of the network. Blockchain is a continuously growing list of records, called blocks, which are linked and secured using cryptography (is the practice and study of techniques for secure communication in the presence of third parties called adversaries, cryptography is about constructing and analyzing protocols that prevent third parties or the public from reading private messages). Blockchain was invented by Satoshi Nakamoto in 2008 to serve as the public transaction ledger (computer file for recording and totaling economic transactions measured in terms of a monetary unit of account by account type, with debits and credits in separate columns and a beginning monetary balance and ending monetary balance for each account) of the crypt...