Author: pega dev

  • SOAP Integration in Pega from scratch

    SOAP Integration in Pega from scratch

    1. Launching the SOAP Integration Wizard

    In Dev Studio, go to:

    Configure → Integration → Create SOAP Integration

    This opens the SOAP Integration Wizard.

    The first step is to provide a WSDL URL, which defines the structure of the web service.
    For this example, we will use:

    http://www.dneonline.com/calculator.asmx?WSDL

    Click Next to continue.


    2. Reviewing Service Metadata

    After loading the WSDL, the wizard displays:

    • Service name
    • Port name
    • Endpoint
    • Available operations

    You can test operations from this screen. Once testing is done, click Next.


    3. Integration Layer Configuration

    The wizard now shows:

    • The integration class
    • The ruleset
    • The context where the integration assets will be created

    Click Preview Records to see all rules the wizard will generate. This modal displays the rule types and quantities.

    When clicking Create, you may encounter an error. This happens because Pega sometimes does not automatically create the integration class for SOAP services.

    If this occurs, manually create the class where all integration assets will be stored. After creating the class, click Create again.

    This time, the SOAP connector will be successfully generated.

    You’ll see:

    • Class name
    • Ruleset
    • WSDL
    • All created data sources
    • Option to Undo Generation, which removes all generated rules if needed

    Click Close when finished.


    4. Reviewing the Generated Connector

    Navigate to the integration class:

    App Class → Calculator → Integration-Connectors → Connect SOAP

    Here you’ll find one connector rule per operation defined in the WSDL.

    Inside each connector you can verify:

    • Endpoint details
    • Error handling
    • Processing options
    • Simulation settings

    Connector Request & Response

    Under the Request tab, you’ll find:

    • SOAP headers (if any)
    • Request parameters
    • The XML Stream rule (e.g., AddParameters) responsible for request mapping

    The Response tab includes the same structure for mapping outputs.


    5. Creating the Data Page

    Next, create a data class to hold the response from the service.
    Then create a Data Page that will invoke the SOAP connector.

    Configuration:

    • Source type: Connector
    • Connector type: SOAP
    • Connector name: Add (for this example)

    You can try the other operations later as practice—feel free to leave a comment if you have issues.


    6. Request Data Transform

    Create a Request Data Transform that passes two parameters:

    • intA
    • intB

    Make sure these parameters exist both in the Data Page and in the Data Transform.

    Map the two variables to the fields expected by the SOAP service.


    7. Response Data Transform

    Pega automatically generates a boilerplate Response Data Transform, but you can customize it.

    Important note:
    If the connector response returns a page, you must create the corresponding property in your data class and map the values one-to-one.
    If your data page runs successfully but the response appears empty, it’s usually because this mapping step was missed.


    8. Testing the Integration

    To test the integration:

    1. Open the connector rule
    2. Scroll to the bottom
    3. Click Test Connectivity

    If the service fails, Pega will show the error details.

    To test the Data Page:

    1. Open the Data Page
    2. Click Actions → Run
    3. Enter parameters (intA and intB)
    4. Validate the results and response status

    If any errors occur, they will appear in the results panel.


    Summary — Complete Integration Steps

    1. Obtain the WSDL
      Example: http://www.dneonline.com/calculator.asmx?WSDL
    2. Validate required headers or authentication (Postman helps with this).
    3. Go to
      Configure → Integration → Create SOAP Integration
      and follow the wizard.
    4. Verify generated classes and rules.
    5. Test connectivity in the connector.
    6. Create:
      • Data class
      • Data Page
      • Request Data Transform
      • Response Data Transform
      • Any needed properties
    7. Map request and response values.
    8. Run the Data Page and validate that the service works end-to-end.

    You can watch the full step-by-step demonstration in the accompanying video.
    Feel free to leave questions or comments—happy integrating!

  • How to Create a Bank Application Using Pega Blueprint (Step-by-Step Guide)

    How to Create a Bank Application Using Pega Blueprint (Step-by-Step Guide)

    In this tutorial, we’ll walk through how to create a complete pay (KYC onboarding) application using Pega Blueprint, the new automation tool that allows you to generate case types, data models, personas, and application structure with minimal manual setup.

    Blueprint drastically reduces the time required to build an application from scratch, giving you a ready-to-customize foundation aligned with your business needs.


    1. Accessing the Blueprint Dashboard

    To get started, navigate to:

    mega.com/blueprint/dashboard

    Log in with your account, and you’ll see the Blueprint dashboard.
    Click Create Blueprint to begin.


    2. Selecting Templates and Application Context

    Blueprint provides a library of templates according to the industry and type of application you’re building.

    1. Industry: Select Banking
    2. Click Next
    3. Sub-Industry: Choose Retail Banking
    4. Department: Select Onboarding New Customers

    Blueprint will then ask for the application purpose. Choose:

    • Know Your Customer (KYC)

    You’ll also select:

    • Language
    • Location

    Click Next, and Blueprint will start generating your template.

    This process may take a minute. Blueprint analyzes your inputs and builds an initial application with stages, case types, personas, and data objects tailored to your selection.


    3. Choosing Case Types

    Once the generation is complete, you will be prompted to select the case types to include in the application.

    For banking and KYC workflows, common case types include:

    • Global KYC Customer
    • Screening Cases (e-screening, adverse media, etc.)
    • Onboarding Investigation
    • Related Party Onboarding

    Select the case types that apply and click Next.

    Blueprint will display each case type with its stages and processes. For example:

    • Identification & Due Diligence
    • Background Screening
    • Risk Assessment
    • Final Resolution

    4. Selecting the Data Object

    Blueprint will then ask for the primary data object.
    For onboarding workflows, select the basic customer information object.

    Click Next.


    5. Defining Personas

    You can now define the personas who will interact with the application. Example personas include:

    • KYC Analyst
    • Operations Manager
    • Credit Analyst Manager

    Blueprint can auto-generate personas using AI, or you can manually add them.

    Click Next.


    6. Reviewing Your Blueprint

    Blueprint generates a complete application outline, including:

    ✔ Stages and Workflows

    For example:

    • Identify Due Diligence
      • Required customer information
      • Screening and documentation review
    • Perform Due Diligence
      • Background checks
      • Regulatory validations
      • Risk evaluation
    • Resolve
      • Final decision
      • Case closure

    ✔ Data Model

    Blueprint creates:

    • Properties and fields
    • Data objects
    • Embedded objects
    • Child cases

    ✔ Personas and Access Layers

    ✔ Sample Data

    When everything looks correct, download the Blueprint file.


    7. Uploading the Blueprint to Pega

    Go to your Pega environment and create a new application.

    Choose:

    “Build from a Blueprint”

    Upload the file you downloaded earlier.

    Pega will begin generating:

    • Case types
    • Data objects
    • Personas
    • Portals
    • Sample data

    This process may take several minutes. In my example, Blueprint generated:

    • 13 case types
    • 17 data objects
    • 14 personas
    • 3 channels (portals)

    8. Reviewing the Application in Dev Studio

    Once the application is created:

    1. Switch to Dev Studio
    2. Verify that the correct branch is attached
    3. Review:
      • Case types
      • Workflows
      • Data objects
      • Views
      • Background rules

    Sometimes Blueprint may not fully configure all case creation rules, so minor adjustments may be required.


    9. Exploring the Application in App Studio

    App Studio is the best place to work with:

    • Views
    • Data models
    • Relationship maps
    • Case previews

    Use the Data Model Viewer to visualize relationships between data objects.
    Use Case Type Preview to run a test case, review screens, and evaluate user flow.

    In the example:

    • The Global KYC Customer case type has stages automatically created by Blueprint.
    • Some child case creation steps needed manual correction.
    • Views are fully editable in App Studio, replacing old-style section rules.

    10. Editing Views and Data Models

    Constellation uses views instead of sections.

    You can:

    • Add fields
    • Modify layouts
    • Use data transforms
    • Configure validation
    • Reuse views across case types

    If a rule appears locked, check your branch settings.
    Always work with Branch Development ON to prevent version conflicts.


    11. Final Notes and Next Steps

    Blueprint gives you a strong foundation, including:

    • Application structure
    • Case lifecycle
    • Personas
    • Data models
    • Sample logic

    From here, you can:

    • Refine workflows
    • Add missing logic
    • Configure validation
    • Build UI views
    • Define relationships between objects
    • Customize the entire onboarding process

    In upcoming tutorials, we’ll explore:

    • Creating views in Constellation
    • Building and connecting data objects
    • Configuring background logic using calculated expressions
    • Fixing child-case creation flows
    • Mapping end-to-end onboarding processes

    If you have questions, leave them in the comments — I’m happy to help.

  • Pega Constellation Data Modeling: Step-by-Step Guide

    Pega Constellation Data Modeling: Step-by-Step Guide

    FILES:

    Data model design
    Countries Catalog

    In this guide, we’ll walk through how to design and build a complete Customer Data Model in Pega Constellation.
    You’ll learn how to:

    • Create data objects from scratch
    • Establish relationships between objects (embedded and referenced data)
    • Upload external catalogs (CSV) into Pega
    • Visualize the full data model
    • Reference the data model inside a case type

    This tutorial mirrors exactly what was built in the video—perfect for beginners learning Pega Constellation’s data model capabilities.


    1. Designing the Data Model

    Before using App Studio, it’s important to outline the structure.
    Our Customer object will contain:

    Customer Fields

    • Name
    • Email
    • Phone (list of phone records)
    • Address (single address record)
    • Products (list)
    • Nationality (reference to a Country catalog)

    Supporting Data Objects

    To support the customer entity, we will also create:

    • Phone
    • Phone Types (Home, Mobile, Work)
    • Address
    • Address Types (Home, Work)
    • Products
    • Country Catalog (CSV uploaded from GitHub)

    Each of these will be modeled as a Data Object inside Pega Constellation.


    2. Creating the Customer Data Object

    1. Navigate to App Studio
    2. Click New → Data Object
    3. Name it Customer
    4. Choose Local storage
    5. Click Submit

    Your object is now created.
    Next, we’ll add all fields using the Data Model Visualizer.


    3. Adding Fields to Customer

    Open the Customer data object and add:

    Name

    • Type: Text (single line)

    Email

    • Type: Email

    Phone

    This field is an embedded data reference to a new list-type data object we’ll create.

    Address

    Another embedded data reference to an Address data object.

    Nationality

    This will be a picklist that retrieves records from the Country catalog (CSV).

    Products

    A list of product items (you can replicate the same steps as the Phone object).

    We’ll configure the Phone, Address, and Country objects next.


    4. Creating the Phone Data Object

    1. Click New → Data Object
    2. Name it Phone
    3. Choose Local
    4. Add the following fields:

    Phone Type

    • Type: Data Reference
    • Points to: Phone Types data object
    • Mode: Single record

    Phone Number

    • Type: Phone

    Save the object.


    5. Creating Phone Types (Dropdown Source)

    1. Create a new Data Object named Phone Types
    2. Add one field:
      • Type (Text)
    3. Go to Records and add the allowed values:
      • Home
      • Mobile
      • Work

    These values will appear automatically as dropdown choices thanks to Pega’s auto-generated data pages.


    6. Creating the Address Data Object

    1. Create Address as a new Data Object
    2. Add:
      • Address (Text)
      • Address Type (Data Reference → Address Types)

    Create Address Types

    1. Create Address Types Data Object
    2. Add a Type field (Text)
    3. Add records:
      • Home
      • Work

    7. Creating and Uploading the Country Catalog

    We’ll use a CSV catalog from GitHub containing:

    • Country Name
    • Alpha-2 Code
    • Country Code (numeric)

    Steps to import:

    1. Create a Data Object named Country (or CountryCode)
    2. Add three fields:
      • Name
      • A2
      • Code
    3. Click Import
    4. Upload the CSV file
    5. Map the columns
    6. Validate and import

    Pega will automatically create the data pages that expose these records.


    8. Adding Nationality to the Customer Object

    Inside Customer:

    1. Add a new field: Nationality
    2. Type: Picklist
    3. Data Page Source: Country list data page
    4. Display Field: Name

    This will display the country name and reference the selected record.


    9. Visualizing the Data Model

    Open the Data Model Visualizer to confirm relationships:

    • Customer → Phone → Phone Types
    • Customer → Address → Address Types
    • Customer → Nationality → Country Catalog

    This visual map helps guarantee your data structure is correct before adding views.


    10. Referencing the Data Model in the Case Type

    To make the Customer object available inside a case:

    1. Go to Case Types
    2. Select the case (e.g., KYC Customer)
    3. Open the Data Model tab
    4. Add a new field:
      • Name: Customer
      • Type: Embedded Data
      • Data Object: Customer
      • Mode: Single Record

    Now the case can create, store, and use the entire Customer data model.


    What’s Next?

    In the next tutorial, we will:

    • Build the views and forms
    • Bind fields to the UI automatically
    • Display dropdowns powered by our data pages
    • Save Customer data during case processing

    Pega Constellation automates data pages, relationships, and field behavior—making data modeling faster and easier than traditional Dev Studio.

  • How to save a Page List into data type, Pega Tutorials

     Hi All, recently I had some troubles saving a list into a data type, that is something that I have never done before and there is so little information about it in the pega community sites, so let’s get this done 

    to start you have to create a data type and have records on in, if you don’t know how to do that, you can watch this video explaining step by step how to create a data type https://youtu.be/rYex_UsTtMg .

    The next thing that you will need is a page list property, when you are creating the page list property in page definition you have to add the class of the data type. 

    Once we create the page list the easy way to add records to it is through a table so on your section you can configure a table

    to configure a table select property on general than in order to add data, on table settings click on Operations and in row editing select inline and then click the row to edit and submit  

    save the section and test by adding some data to it, you will get something like this :

    You can check your list on the clipboard:

    Now that we have the list the next step will save it into the data type, I had some struggle at the beginning because i tried to do the logic in the data page, for some cases is very useful to map the data using a response data transform that is good when you have a to map values one to one, in this case, i will solve using and activity outside the data page, this activity you can call it from a button, flow action, utility shape in the flow where ever you need it according to your logic, for this example i will use it on a button

    The first step to creating the activity is to analyze the list that you are trying to save, to define the loops 

    that is very important because sometimes we have a page list inside a page 

    I will explain the creation by steps into the activity  

    Step 1

    On the step one we click on Loop then we select the option “for each embedded page” leave the class empty and then click on submit. then on the step page we put the page list property where we want to make the loop 

    step 1.1

    We create a new page, Whe use the method page new to do it and this is very imoportant and the reason that i almost loose my head, because i only get to save the first record of the list and it was because i missed this step, every time that we make a loop we need a new page to save the record otherwise you will be overwriting the data.  so in pages an clases tab we define the class of the data type, then on the step page we use the page that you saved 

    Step 1.2

    on this step we do a maping of the data that we want to save using the method Property-set 

    since we are on the context of the customerList porpery we need to reference the properties from the data type

    Step 1.3

    On this step we use an object save and on the step page the page for our data taype class, it will save every iteration of our list and that will be the last step 

    so tour activity should look like this 

    Lest try it 

    now i called from a button and when we run it all the proceses in the backgorund when we trace the activity looks like this: for each page list it will save the values 

    Troubleshooting 

    if by any Chance you encounter problems and it not saves, check this 

    The Key of the page, open the class of your data type and if the key is not auto generated you will have to pass the key in order to save a new input, you can create a unique ID using  this function if you need it CreateUniqueID() 

    If you still have issues saving, please check on the obj-save step expand it and check write now checkbox

    if you are not able to get this to work please comment and i will help you, Hope it works for you:)

  • How to create a case type and data model in Pega 8.5 | Creating an application

    we’re going through all the steps from scratch to create an application and working with that right so for this example we’re going to create a sales application so let’s get started so the first steps in order to create your application you only have to go to the application and then click on new application and then open up the wizard and the only option that we have here is built from scratch

    so we’re not going to use any framework but you. Depending on the version of Pega that you’re using, you will be able to use different frameworks.

    Pega New Application
    Pega Application Wizard


    here is how you’re able to create the organization name, the editions and the unit so the different layers that the application has so this is we’ll we’re not going to enter to detail

    of this we’re going to review later on on the advanced topic so we’re going to click save just leave it like that

    Pega Advance Configuration

    Then you can name your application and finish the setup 

    Pega name application

    the error message that you see is because I was about to name the application pega tutorials SV but for security reasons, we cannot name an application Pega is a system reserved word.

    you can create more users for your account and assign a specific role to each of them 

    this is how the application looks like once the setup wizard finished

    I would share the video of how I make the application and implement the data model hope you like it, please support my content by sharing and subscribe