Pages

Wednesday, 28 February 2018

Inserting a record into Database table with PEGA PRPC


Part 1: creating a case
creating data model properties at Data class (Data table)
creating data model properties at Work class
creating sec



Part 2: creating a flow action
creating a acitivity
configure stages and steps in cases
configure flowaction and activity using shapes inside a flow




Here is sample Work Flow in step by step
  • Configure case (Stage & Processes)
  • Add a Data Table (DTO in java which will creates table also)
  • Add a Data Model (BEAN in java, create properties should match with the same DTO properties)
  • Section (Add multiple layouts and properties)
  • FlowAction
  • Activity
  • Flow
  • Test the Case


Note: Any help related any rule / property / flow… you will find under Actions dropdown > Get Help.
Create Activity Rule:
Pages and Classes: You need to give pyWorkPage for Work class (mandatory)
For Data class you can use any name to use it as reference

Step:
Step 1: You need to use property-set method to set the values to the data class from work class, and use “Data Class reference” and in the parameters tab you need to map the Data class properties in Property name and in property values you can give Work Class properties.
Step 2: You need to use object-save method to insert the record in the DB.
Security: Here you need to choose “Utility” under action to visible the activity rule in Utility Shape.
Note: Here we need to create activity in Work class itself. You can debug weather the values from Work class are set to clipboard server or not using pyWorkPage from clipboard tool.
If you want to check weather the values are set to server or not in custom page name you have given for Data Class config in “Classes and Pages” in Activity.

12 comments:

  1. Inserting a record into a database table is fundamental in managing data. How Mobile Hack It's like placing a puzzle piece, contributing to the bigger picture.

    ReplyDelete