Saturday, 5 November 2022

Populating a page under pyWorkPage with data and using on the next assignment

 We have a data type with some records 

 


Created a case with 2 assignments,

First assignment we are listing all the records and updating the data on a record. 

Second assignment we are routing to a workqueue for approval or reject 



In the first screen , in a table layout displayed the customer data like below


On clicking on row a modal dialog was opened












Since the table layout source is data page, on opening the modal dialog, the data is displaying from the data page .


Updating the first name from Francis to George

After updated the data and submit, we should keep the updated page inside the pyworkpage (to review in second assignment), so called a data transform on modal dialog flow action post processing

In the data transform copying the data from primary(D_CustomerList.pxResults(3)) to a page inside pyWorkPage

page property using under pyworkpage


on submitting modal dialog, updated data is populated under pyworkpage




Submit and move to next screen


in the next assignment(opened from wb) also has the page.




Second Assignment Configuration:

Reusing the same section displaying inside the modal dialog , to display the data present in the pyWorkPage.UpdatedCustomerInfo



In the second assignment, Updated data is displaying





On Approval, we can update the data present in the UpdatedCustomerInfo page to datapage.

Tuesday, 9 August 2022

DCR (Dynamic Class Referencing) using configuration sets.

Hello Frendz,

In this post, we see about #Dynamic class referencing using the configuration sets.

Starting pega 8.6 configurations sets are available in pega app studio , We can use to reference the class dynamically. In this post we see how we can create a child case using the configuration sets.

 This Demo is created by using pega version 8.6

     ·         Navigate to app studio , in left pane click on settings à Configurations à Manage Configuration

     ·         Click on manage configurations à Add the desired name , here we named it as “DCR”

     ·         Click on Add Configurations, screen will be prompted with pop up to enable the settings.



       

        

The configuration set not only to reference the class to create the case, we can make use below option in our configurations set , In Pega 8.7 we will have another one option called, “Constant as per production level”        


 In Pega 7x version we used to create Data transform, Data page, and Property to extend the referencing to other case types.  Starting 8.6 pega provided the new capabilities to refer the configurations sets to reference dynamically.

Now let’s see where these instances will be available in pega after created.

Switch to Dev studio, navigate to App explorer, click on the class Data-Configuration-Setting to see the instance

                

Now let’s see how to reference those in our case type.

Open any activity/Data transform to open the expression builder,

You will see additionally one option to see the “configurations” click on that and select your configuration set to get the reference as shown in right side.

Copy the entire value and keep it.



Now here we are going to see how to make use of that copied value into case type.

Here we have Raise Concern – Parent case, We are going to call the “Bound Up Concerns” child case by using the configuration set reference.

Used the create case step to refer the configuration set.

Now Let’s run the case and see our child case is created. As shown below it is created our child case as well.😊

Hope this example helps you in comprehending configuration sets.

Reference Links:

Configuration sets - PegaWiki

Creating a configuration set | Pega

Friday, 13 May 2022

List of all DEBUG loggers to log Service REST/SOAP request and response

 Hi Friends, Below are the list of loggers we have to enable as "Dubug" to debug the Rest and Soap Connector


Connect SOAP:


Rule_Obj_Activity.Invoke.Rule_Connect_SOAP


Rule_Obj_Activity.InvokeAxis2.Rule_Connect_SOAP


com.pega.pegarules.integration.engine.internal.ServiceHelper


com.pega.pegarules.integration.engine.internal.services.ServiceAPI


com.pega.pegarules.integration.engine.internal.util.PRServiceUtils


Rule_Obj_Activity.InvokeAxis2.Rule_Connect_SOAP.Action


Connect Rest:

Rule_Obj_Activity.Invoke.Rule_Connect_REST.Action


Rule_Obj_Activity.pyInvokeRESTConnector.Rule_Connect_REST.Action


How to enable this logger?


Go to Path System -> Operations -> Logs


Click on Logger level settings


Paste the logger and select the Level as Dubug.


Now if we hit the Soap/Rest connector , the corresponding Request/Response log will be append to the Pega Rules Log.

Thanks for Reading!.