Creating a brand new Application in PEGA v8 😎
Creating new application in pega 8

Creating a brand new Application in PEGA v8 😎

Summary:

This article summarizes on how to create a brand new application in PEGA v8, the rules generated by the application wizard & how it can be extended.

What is an application?

An application is a software program that can be used by end-users. Some of the examples are “BookMyShow” for booking movie tickets, “GPay” for money transfers, “Swiggy” for ordering foods and so-on.

Why do we create Application in PEGA?

Let’s consider an example of XYZ organization requesting for a Claims application in PEGA.

  • The main aim of XYZ organization is to have a software where they can process their customer claim request. This can be achieved by creating a brand new application in PEGA.
  • When a new application is created in PEGA, system generates a lot of in-built rules which can be directly reused or enhanced to satisfy XYZ organization requirements.

Let’s first start with how to create a new application in PEGA followed by the list of rules that PEGA readily provides when a new application is created.

How to create a brand new Application in PEGA?

We should have developer access in PEGA to create a new application. Starting from v8, we should have access to DEV studio to create an application.

Login into the system using DEV Studio and navigate to the below option

New application wizard will prompt us to select the type of application that we wish to build.

Applications can be created in either one of following ways:

  • Custom application that can be created from scratch
  • New application that can be created with pre-defined application templates “Request approval”, “Service request” and “Task tracker
  • New application that can be created on top of our application specific frameworks or enterprise application
  • New application that can be created on top of industry standard frameworks provided by PEGA

Custom application that can be created from scratch

It will be a stand-alone application that will be built on top of PegaRULES application. System will not generate any case types or data types during application creation.

New application that can be created with pre-defined application templates

PEGA has identified few commonly used application types and have provided template like case types, data types which can be leveraged by the new application to be created.

Let’s assume a scenario of creating an application to handle service request. The proposed way of creating application for the above requirement would be using “Service request” application type in the new application wizard.

Service request application type creates a case type for Service request and supporting data types which can be reused or extended.
Application wizard configures a case type to handle Service request when application type is selected as Service Request

New application on top of Application Frameworks

Application can also be created on top of framework application that we have built earlier. A typical example could be our implementation application built on top of custom framework application.

Built on application should be selected from the list.

New application on top of Industry Standard Frameworks

Industry standard framework applications are applications provided by PEGA that can be used as a framework. Typical example would be Sales Automation, Customer Service, Pega Marketing and so-on..

We can build an application on top of industry standard frameworks and system gives flexibility to extend appropriate case types and data types to the newly created application.

Let’s explore about creating custom application from scratch in this post.

Creating custom application from scratch

  • Create an application by selecting application type as “Custom“.
  • Wizard prompts us to enter a name for the new application. Make sure that we enter the most appropriate name for our application.

System gives us option to directly create application with system generated information or to review and update the same before proceeding with creation.

PEGA recommends to manually review the configuration details before creating an application.

Click on Advanced configuration to review/update the system generated information.

By default system executes “pzPrepareAdvancedApplicationSettings” Data transform to populate application details.

Default application configuration

  • Application Structure -> Implementation
  • Application ID -> <<Application name entered in previous step>>
  • Application version -> 01.01.01
  • Organization Name -> System uses function “@Utilities.pxGetRandomName(“O”,”5″)” to generate random name for organization.
  • Division Name -> Div
  • Unit Name -> Unit
  • Class Layer -> <<Organization Name>>+<<Application Name>>+”Work”

Updated application configuration for claims

Organization name and application name is updated based on our business requirement
  • Application Structure -> Implementation
  • Application ID -> Claims
  • Application version -> 01.01.01
  • Organization Name -> XYZ
  • Division Name -> Div
  • Unit Name -> Unit
  • Class Layer -> XYZ-Claims-Work

Let’s explore each configuration in detail 😳

Application Structure

Application structure can either be framework or implementation. Let’s explore layers of PEGA in our future posts. When framework is selected, the generated class will have an additional layer in its structure (FW-).

PEGA recommends to have a careful consideration on the need of framework layer for an application. It should not be created just for the sake of future proofing.

Application version is used to manage the subsequent releases of an application. It can be a Major release / Minor release / Patch release. Initial version of an application can be 01.01.01 and it can be upgraded in subsequent releases. For example;

Release 1
Claims:01.01.01
Claims: Application Name
01 -> Major version
01 -> Minor Version
01 -> Patch version

Release 2
Claims:01.01.02 / Claims:01.02.01 / Claims:02.01.01
Claims: App Name [Claims: 02.01.01]
02 -> Major version
01 -> Minor Version
01 -> Patch version

Organization settings

We will have a separate post to understand organization structure in detail. Basics of Organization/ Division/ Unit is explained below:

Organization: It’s the organization for which we build application. [In our case it’s XYZ]

Division: If our organization has further divisions, then each division can have a separate layer and the generated application will be division specific. This can be achieved by configuring division name and enabling “generate division layer” option.

Division layer is applicable only for Implementation application

Unit: If division has further sub-divisions (units), then each unit can have a separate layer and the generated application will be division+unit specific . This can be achieved by configuring unit name and enabling “generate unit layer” option.

Unit layer is only applicable for Implementation application & Unit layer cannot be enabled without a division layer.

Once updated, click on Create Application.

System provides us with a flexibility to configure operators for different roles.

Now login into the created application & verify the list of rules that the system has generated.

Let’s explore each of the generated rule in detail.

Application Rule:

Since we had chosen custom application type while creating the new application, “Claims” application is built on top of PegaRULES.

Below list of rulesets are created by the application wizard. New rulesets can be added anytime as per the business need.

  • Claims:01-01 -> Implementation ruleset of claims application. This ruleset can be used to develop implementation specific rules [Case Types, Flows, Reports, SLAs etc.]
  • ClaimsInt:01-01 -> Implementation integration ruleset of claims application. This ruleset can be used to develop implementation specific integration rules [Connectors and Services that might not be required across enterprise].
  • XYZ:01-01 -> Enterprise/Organization ruleset of XYZ Organization. This ruleset will be reused across applications which are built for XYZ organization.
  • XYZInt:01-01 – > Enterprise/Organization specific integration ruleset of XYZ Organization. This ruleset will be reused across applications which are built for XYZ organization. For Eg: Security specific integrations will be common across organization which can be implemented in this ruleset.
Security Rules:

System generates below Access Groups and Access Roles during application creation.

  • Claims:Administrator -> Admin access for application. Mostly developers will have this access.
  • Claims:Authors -> Business Analyst/Citizen developers usually have this access. It’s equivalent to admin access with few restrictions in terms of accessibility. By default Pega Express portal will be launched for this Access Group.
  • Claims:Managers -> Case Managers usually have this access. They have access to work on cases, view team members and their works, view reports and so-on.
  • Claims:Users -> Case workers usually have this access. They have very limited access to system in terms of managing work.

Required access roles will be created for each access group and it will be directly inherited from dependent roles. Dependent role in PEGA v8 are roles that are pre-defined by PEGA.

Dependent roles have AROs/privileges which defines the authorization. It can be customized or extended with application specific access roles.

Manager access role for claims application is inherited from OOTB workmanager4 dependent role
Class Rules:

The system generates the below class rules which can be extended for our business needs.

Implementation classes

XYZ-Claims-Work ->Implementation specific work class. This will be considered as Work pool/Class group of claims application & corresponding database table will be created by the system. All our case types/work classes will inherit from XYZ-Claims-Work.

XYZ-Claims-Data -> Implementation specific data class. All the data classes/data types that are specific to claims application will be extended from XYZ-Claims-Data, which is an abstract class.

XYZ-Claims-Int-> Implementation specific integration class. All the integration rules specific to claims application will inherit XYZ-Claims-Int class. This class will be used as parent class while configuring integration wizard.

Enterprise/Organization classes

Enterprise ruleset will not have work class.

XYZ-Data -> Enterprise data class. Data class created in this layer can be used across multiple applications built on top of XYZ Organization. Enterprise data class can be reused across division and unit layers if exist.

XYZ-Int-> Enterprise integration class. Integration rules created in this layer can be used across multiple applications built on XYZ Organization. Enterprise integration ruleset can be reused across division and unit layers if exist.

Finally, we are done with our claims application creation 😎😎😎

Once application is created, case types, data types can be configured based on the business need.

Hope now the basics of creating a custom application, understanding the back-end rules & extending it for our need is clear.

We are glad to publish the article requested by @Vamshi on “Creating application from scratch”. If you want us to publish any articles of your choice, please fill out this form & we will make sure it gets published.

Stay tuned for more posts on Enterprise Design !!!

OSP TEAM
Written by
OSP Editorial Team

Recent Jobs from our community

loading
View more Jobs on OSP Forum
Join the discussion

Feel free to post your questions here about this topic if any. We will definitely get back to you ASAP !!!
If you have any off-topic questions, Let's discuss at OSP Forum

24 comments
  • Please post about API provided by pega and list of API and how these ApI can be used and how to integrate. Please post a topic about this with easy words and in detail

    • Sure will do@Mukesh

      Going forward make use of our “Suggest Topic” form to suggest new topics if any. We have separate process to track new articles request when it comes from the form and we don’t want to miss your suggestion anytime 🙂

    • Sure@Mukkram

      Going forward make use of our “Suggest Topic” form to suggest new topics if any. We have separate process to track new articles request when it comes from the form and we don’t want to miss your suggestion anytime 🙂

    • @Arvind Tripathi: Whenever an application gets created, system generates Implementation specific Work Queue’s and Enterprise specific Work Queue’s.

      4- Implementation specific & 1 – Enterprise.

      All Work queue’s by default will be generated in Enterprise ruleset and can be updated anytime later.

  • Guys awesome. As good as a roller coaster ride. Amazing article, great explanation guys. I am able to easily follow and create brand new application. Thank you guys for such a wonderful contribution. Now Even fresher’s like me can do app creation with great confidence.

  • Hi,
    In earlier versions of Pega 7 – we had a option in wizard of creating a Framework and then later at any other time we can add Implementation layer to it but in Pega 8.3 we once create a Application with Framework Option and later want to extend it – if start new Application wizard and give the same application name with Implementation option it is throwing Error -saying Application name exists..How in Pega 8 can I create a Framework at one time and at later time create Implementation Layer ? Should the implementation Layer be created manually not via Wizard? Please Suggest

    • Not sure which version of pega you are referring to in 7.x. But the application name is a unique identifier and you can’t create multiple applications with the same name irrespective of its type [Implementation or Framework]. You can create different versions of applications or with different labels.

      The typical way of creating an application in Pega is, create a framework application first and create implementation later [preferably after development and before testing]. Implementation application can be created manually or through the wizard. The difference is that when created through wizard Pega extends all the case types available in the FW application automatically, When created manually, we need to spend extra effort to specialize case types in implementation application.

      • One question on same subject in Pega 8 -First I create a New Application in wizard -say Registration which is of framework type -then the work class structure (Class group) created is OrgName-FW-Registration by wizard
        Now I want to create a Implementation layer and the class structure should be OrgName-Div-Registration-Work (Impl Classgroup) which directly inherits to OrgName-FW-Registration
        Now I checked in Pega 8.3 – Create New Application-select “Registration” Application (the FW Application created earlier)-it says no Datatypes to link,no casetypes to clone ,then asks for the Application name-now I cannot give Registration ..lets say I give name -RegImpl and click on Advanced Configuration where I select Implementation Layer then the class structure is shown as OrgName-Div-RegImpl-Work and no reference is shown on inheritance to Framwwork Layer. I hope you understood the problem ,Please let me know how can I screenshots for clarity if the issue is not clearly texted by me..

  • Article Requested- How to Call Pega UI via Pega APIs,
    I am posting it here because the send button on Suggest Topic screen is not functioning

  • Is it always good to create Framework Layer and Implementation Layer even though at present Framework looks as not required but in future the Application can grow and if Framework layer is created it can be extended and it will be flexible? on what factors should we decide as to only go for Implementation layer and not FW Layer

  • Hi , When i create an application from wizard, the FW layer is not create though its updated in the wizard. Can you please help me to understand why its not happening?

    • Pega Application wizard will not create any additional layers for you. We can either create an application as FW or IMPL. When you have FW application already created, it should be selected as a built-on application to have the Data- & Work- extensions.

  • One request team- there is something called Pega Express which can be used by Dev or BAs. Can you give a quick explanation of how to create brand new application using Pega Express. Will be really helpful if you can share the steps or some doc or mention that in this article itself. Need it quite urgently (in a day or two). Please help.