Skip to main content

Extending a data model in a Pega Government Platform application

6 Tasks

40 mins

Pega Government Platform 8.7
Visible to: All users
Beginner Pega Government Platform 8.7 English

Scenario

GrantsCo wants to increase customer engagement in public services and support ideas and projects that provide public services and stimulate the economy. To achieve this goal, the services coordinator wants to build a workflow that can engage the residents in the town and create awareness about grants. To begin the process, the coordinator has outlined a workflow so that it meets divisional needs such as critical recovery initiatives, innovative research, and many other programs listed in the Catalog of Federal Domestic Assistance (CFDA).

Pega Government Platform™ provides you with a robust public sector centric data model, features, and components that users can use to capture and manage information, and search and view the details of various entities (such as person, business, vehicle, facility, and household) that are widely used across government agencies. 

The coordinator wants to extend the person data model in the Grants case workflow to capture the details of resident interactions in the town. This configuration also involves creating the confirmation email for application submissions and adding associations for the residents that interact with the application. 

The following table provides the credentials you need to complete this challenge:

 Role         User name Password
System administrator pgpcosmossysadmin rules

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Extend the Person data model with the basic details flow component

  1. Log in to the App Studio as the system administration:
    1. In the User name field, enter PGPCosmossysadmin 
    2. In the Password field, enter rules.
  2. In the navigation pane of App Studio, click Case types > Grants to open the workflow of the case life cycle.
  3. In the case life cycle, in the Create stage, on the Create process, click the Delete icon to remove the process from the case life cycle. 
    Create process
  4. In the Create stage, click Step > More > Processes Manage person with basic details > Select to add the step.
  5. In the upper-right corner, click Save.
  6. In the navigation pane of App Studio, click Data to view the list of data objects and integrations.
  7. In the list of data objects and integrations, click Person to open the data model.
  8. In the Person data model, click Add field in the upper-right corner to add a new field.
  9. Complete the Add field to Person window:
    1. In the Field name field, enter Domain.
    2. In the Type list, select Picklist.
    3. In the first Picklist options list, select Data page.
    4. In the second Picklist options list, select Option map > Option map list.
    5. In the Data view parameters section, in the second FieldName field, enter "Domain". 
    6. In the Display field list, select Code.
    7. Click Submit to complete the configuration for the field
      Domain
  10. In the upper-right corner of the Person data model, click Save.

2 Enter the option map record details

  1. In the navigation pane of App Studio, click Data to view the list of data objects and integrations.
  2. In the list of data objects and integrations, click Option map to open the data model.
  3. Click the Records tab to display the list of records.
  4. At the bottom of the list of records, click Add record to create the following records:
    Record Actions
    Domain_A
    1. In the ID field, enter Domain_A.
    2. In the Code field, enter Human Resources.
    3. In the Display value field, enter Human Resources.
    4. In the Display order field, enter 1.
    5. In the Field name field, enter Domain.
    Domain_B
    1. In the ID field, enter Domain_B.
    2. In the Code field, enter Marketing and Sales.
    3. In the Display value field, enter Marketing and Sales.
    4. In the Display order field, enter 2.
    5. In the Field name field, enter Domain.
    Domain_C
    1. In the ID field, enter Domain_C.
    2. In the Code field, enter Finance.
    3. In the Display value field, enter Finance.
    4. In the Display order field, enter 3.
    5. In the Field name field, enter Domain.
    Domain_D
    1. In the ID field, enter Domain_D.
    2. In the Code field, enter Others.
    3. In the Display value field, enter Others.
    4. In the Display order field, enter 4.
    5. In the Field name field, enter Domain.
  5. In the upper-right corner, click Save.

3 Update the view of the Basic person details

  1. In the navigation pane of App Studio, click Case types > Grant to open the workflow of the case life cycle.
  2. In the upper right, click Save and run to begin a new grant application.
  3. In the New Grant window, click Configure this view to modify the view of the form.
  4. In the Capture person basic details pane on the right, click the Basic person details section and modify the template:
    1. In the A section, click the Add icon to open the list of fields that you can add to the form.
    2. In the list of fields, in the Domain row, click the Add icon to add the field to the Basic person details pane.  Configure the view
    3. In the A section, drag Domain above the Phone field.
    4. Click the Close icon to close the Basic person details pane.
  5. In the New Grant dialog box, complete the form details:
    1. In the Person ID list, select PERSONS-6.
    2. In the Domain list, select Human Resources.
    3. Click Submit to create a Grant case.
  6. In the Grant case, in the Capture person basic details section, click Configure this view to edit the view.
  7. In the configuration pane on the right, click More > Configure form to add a view to the case.
    More options and configure form screen
  8. In the Case information dialog box, click Views > Capture person basic details, and then click Select to add the view.
  9. Click Done to close the Case information dialog box.
  10. Click the Close icon to close the configuration pane and return to the Grant case.

4 Create the application submission confirmation email

  1. In the header of App Studio, click on Exit Preview to go back to Grant case type or navigate to Case types landing page in App Studio and click Grant to open the workflow of the case life cycle.
  2. In the Create stage, click Step > More > Automations Send email, and then click Select to add the step.
  3. In the Step pane on the right, in the first Send to list, select Participants, and then, in the second Send to list, select All participants.
  4. In the Subject field, enter Application submitted.
  5. In the Message content section, click Compose.
  6. In the Compose message window, click Choose template > Application submitted, and then click Select to apply the email message template.
  7. Click Done to close the Compose message window.
  8. In the upper right, click Save and run to begin a new grant application.
  9. In the New Grant window, complete the form details, and then click Submit.
    The email is generated in the Files and Documents utility pane on the right. As the email account is not configured, ignore if there is any failure in sending the email.

5 Add the association utility to the case view

  1. In the header of App Studio, click on Exit Preview to return to the Grant case type.
  2. In the upper-right corner, click Save and run to begin a new grant application.
  3. In the New Grant window, complete the form details, and then click Submit to view the Grant case.
  4. In the Person view section of the Grant case, click Configure this view to modify the view of the form. 
  5. In the Case information pane on the right, add the Association utility:
    1. Click Case information > Case main inner to update the utility view. 
    2. In the Case main inner pane, in the Utils section, click the Add icon which opens the list of utilities and sections that you can add to the case.
    3. In the list that is displayed, hover over Association utility, and then click the Add icon to add the field to the Case main inner pane.
      Case main inner on the right pane
    4. In the Utils section, drag Associations utility above Case related content.
    5. Click the Close icon to close the configuration pane and return to the Grant case.
  6. In the case, click Actions > Refresh to reload the case.
  7. On the case view, on the Associations widget, click the Gear icon.
    Associations Widget on the case
  8. In the Associations window, click Add association.
    Add Associations screen when new associations can be added
  9. In the Add association dialog box, in the Type of association list, select Person, and then click Search to display the list of entities.
  10. In the list of results, in the Persons4 row, in the Action column, click Select, and then click Submit.
  11. In the Associations window, in the Relationship list, select Related, and then click Submit.
  12. Repeat steps 8-11 to add a business association​​​​​​.
  13. Verify that the newly added associations are displayed in Associations widget.

6 Restrict countries and change state labels

  1. In the navigation pane of App Studio, click PGP > Internationalization to configure the countries that the Grant application supports. 
  2. In the list of countries, clear the following checkboxes:
    • India
    • Australia
    • Spain
  3. In the United States row, in the State label column, enter County.
  4. Click Save to submit your changes.
  5. Logoff from the application.

Confirm your work

  1. Login with User name PGPCosmossysadmin and password rules.
  2. In the header of App Studio, click Preview.
  3. In the navigation pane of the Grant application, confirm that you see the changes to the countries that the Grant application supports:
    1. Click Create > Event to create an event case.
    2. In the New Event window, in the Country list, confirm that India, Australia, and Spain are unavailable.
    3. In the Country list, select United States.
    4. Confirm that the State label is County.
  4. In the navigation pane of App Studio, click PGP > Internationalization to configure countries that the Grant application supports. 
  5. In the list of countries, select the following checkboxes:
    • India
    • Australia
    • Spain
  6. In the United States row, in the State label column, enter State.
  7. Click Save to save your changes and log off from the application.
  8. Login with User name PGPCosmossysadmin and password rules
  9. In the header of App Studio, click Preview.
  10. In the navigation pane of the Grant application, confirm that you see the changes in the countries that the Grant application supports:
    1. Click Create > Event to create an event case.
    2. In the New Event window, in the Country list, confirm that India, Australia, and Spain are available.
    3. In the Country list, select United States.
    4. Confirm that the State label is State.
    5. Enter the details for necessary fields which are marked as required for the event case.
    6. Click Submit to submit the case. 


Available in the following mission:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice