Logo
  • Products
    • SecOps Studio
  • Solutions
    • Pega Stack Shifter
  • Services
    • Pega Enablement
    • Pega Modernization
  • About
  • Contact
  • Blog
Code Vault

Application settings – Usage & Configurations in Pega

December 10, 2024 Code Vault Curators

In this blog article, we will see how we can use the application settings rule in pega.

Application settings rule was introduced in Pega 8.3 version. In the previous releases, application settings were called the rule system settings.

Please visit my previous blog article, to understand more about the system settings.

What is an Application settings rule?

– Application settings rule is of SysAdmin category.

– Application settings are rule instances – means the rule cannot be updated without an unlocked version unlike data instance like DSS.

– The configuration of application settings is exactly similar to older system settings rule with values that differ per production level.

Use case of application settings

We know that for an application to go live in production, it passes through different environments like development, test, staging and production. Pega uses the production level as an identifier for the environment.

  1. Sandbox/research
  2. Development
  3. Testing
  4. Staging
  5. Production

Applications normally use different configurations per environment. For example – external URLs.  

We never use the production service URLs in lower environments. Similarly, there can be many other configurations like Keys, timeout seconds, etc that can differ per environment.

Application settings rule can hold these configurations per environment within the pega rulebase. As a best practice, these URLs ( or other configurable items) should not be kept hardcoded inside the integration rules like connectors or the calling activities. Instead, it should be stored in the settings rule so that it can be maintained easily.

Scenario – let’s say pega customer service application uses the customer details from an external Siebel system. Application needs to make an external REST service call to get the customer details. For dev and test, we need to connect to wiremock stub to get the test data and for staging and production, we need to connect to different URLs.

Dev and test – https://wiremock-crm/siebel/customerdata

Staging – https://siebel-crm/uat/customerdata

Production – https://siebel-crm/customerdata

How to create a new application settings rule?

Step 1: Create new instance

Records -> SysAdmin -> Application settings -> Create new

Step 2: Define category for the application settings rule.

Though it is not mandatory, it is best practice to define category for the application settings rule.

Let’s create a new category instance.

Tip: Think in a broader scope and create categories so that you can reuse or categorize the application settings in an organized way.

You can create multiple-level categories and specify the parent-child relationship (tree structure)

I am going to create the category structure as – Integration – URL

Records -> SysAdmin -> Category -> Create new

Create two categories and specify Integration as parent to URL.

You can also create and specify categories as Integration.Siebel.URL. Consider your own meaningful category structure.

Now Specify the Integration.URL category in the application settings instance.

Step 3: Specify the value type.

You have different options to define the application settings value.

Mostly we will use the default String/text option. I am also going to use string/text data type.

Step 4: Specify the value per environment.

You also see a note that Global resource syntax is supported for value. It means you can dynamically refer (=PageName.PropertyName) to load the values.

Save the rule.

Now you have successfully configured the environment-specific URLs in the application settings rule instance.

How do you refer the application settings values?

1. For URLs – Directly in connector rules

In the URL configuration, you can use the application setting.

Note: Remember to use the entire structure as category.setting

Based on your production level, application settings value will be substituted.

2. In calling activities or data transforms
Using datapage reference

You can use the data page with the right parameters to load the application settings value.

Data page name – D_pxGetApplicationSettingValue with owning ruleset and purpose as the parameters.

Execute the data page with the right parameters. You will find the application setting value for the development environment (production level – 2)

Using function

We can still use the same function – GetRuleSystemSetting that is used till 8.2 and previous releases that retrieve the system settings value. It can be used for application settings value as well.

Now a final question.

What happens to the older rule system settings? Will it get deleted, how do we smoothly migrate from rule system settings to application settings?

A simple answer. Both the rule instances are of class Rule-Admin-System-Settings J. Nothing gets deleted or disappears from the system. Pega just modified little configurations and changed the naming. Do not worry about it. Start using meaningful category names in the application settings.

 As a summary,

– Application settings rule is introduced in 8.3 version and set to replace the rule system settings.

– Use category instance to meaningfully group the application settings rule instance based on its usage.

– Refer the application settings directly in the connector rules for URL and from an OOTB data page reference.

Ending this short blog article.

  • system-administration
Code Vault Curators

A technical team dedicated to empowering the Pega ecosystem with in-depth knowledge, guided by Premkumar Ganesan's vision.

Post navigation

Previous
Next

Pega Courses

Pega courses can be accessed at https://myknowacademy.com

Search through the blog

Tags

activity authentication background-processing case-management data-model declarative-processing email-processing file-processing pega-core-concepts pega-integration process reporting security system-administration user-interface validation

Categories

  • Code Vault

Recent posts

  • Service REST – Usage and Configurations in Pega
  • Queue processor – Usage and Configurations
  • Data Pages Usage & Configurations in Pega
  • Requestor types in Pega
  • Case Locking Mechanism in Pega

Related Articles

Code Vault

Queue processor – Usage and Configurations

December 18, 2024 Code Vault Curators

In this post we will see the architecture behind queue processor rule and all its configurations and usages. This tutorial is implemented using Pega personal edition 8.4, but the core concepts remain the same in higher versions as well What is a queue processor rule? – Used for background processing that makes use of queue […]

Code Vault

Requestor types in Pega

December 11, 2024 Code Vault Curators

In this blog article, we will see about different requestor types in Pega. This article is implemented using Pega Infinity ’24 version. First, let’s start with understanding the term – Requestor. What is a requestor? From the name, we can say that it can be any people or object which requests for a service. From […]

Code Vault

Property Optimization – Expose Columns in Pega

December 10, 2024 Code Vault Curators

In this blog article we will check the different ways through which we can expose properties in database table. First let’s see how the data (for example – Case data) gets saved into database table. We know Pega uses properties to hold the data. Say for example, I have created a new amazon sales case, […]

Code Vault

Docker – Part 2 – Setup Docker Desktop in Windows

December 10, 2024 Code Vault Curators

In this blog article, we will see how we can set up the docker desktop in Windows 10 home edition. You can visit previous blog article on containerisation basics. Tip: Since copy/paste is not possible in this article, I documented the shell commands in the following git repository, you can easily copy/paste from there. https://github.com/Prem1991/myknowpega/tree/master/docker […]

About

MyKnowTech was born with a mission to bridge the gap between technical expertise and business needs. We are a boutique firm specializing in Pega solutions, delivering them with a personal touch. At the heart of our philosophy is a commitment to putting clients first.

Company
  • About
  • Leadership
  • Career
  • Contact
Resources
  • Blog
  • Services
  • Solutions
  • Insights

©  MyKnowTech B.V. All Rights Reserved.

  • Sitemap
  • Terms & Conditions
  • Privacy Policy