Creating a Data Model
3 Tasks
10 mins
Beginner
Pega Platform '23
Data Integration
Constellation
English
Scenario
When creating an application, consider the Data Model. The Data Model defines how users store and retrieve the data in your application. In the MyTown application, you need the following data objects:
- A data object for a person that submits a request
- A data object with the details of the request type
Create a data object for the person submitting the request, which contains First name, Last name, Address, and Phone number.
Create a data object for the request type, which contains records for Type, Description, and Department.
Note: A Request data object has been modeled for the MyTown311 application. The Request data object contains fields applicable to more than the business needs of the Service Request Case Type. As a best practice, the Request data object should be configured to be reusable across Case Types and applications.
Note: The framework of this challenge uses the Constellation architecture of Pega Platform™. To practice this challenge on the Traditional UI architecture, see the Creating a Data Model version 8.7 challenge.
The following table provides the credentials you need to complete the challenge.
Role | User name | Password |
---|---|---|
Application Developer | author@mytown | pega123! |
Note: Your practice environment may support the completion of multiple challenges. As a result, the configuration shown in the challenge walkthrough may not match your environment exactly.
Challenge Walkthrough
Detailed Tasks
1 Create a Person data object
- In the Pega instance for the challenge, enter the following credentials:
- In the User name field, enter author@mytown.
- In the Password field, enter pega123!.
- In the navigation pane of App Studio, click Data to display a list of data objects in the application.
- Click Person (Draft) to open the Person Data Model.
- Click Create Data Model to open the Create data object dialog box.
- Click Next to display the data object connection details.
- In the System list, keep the default value of Pega, and then click Submit.
- On the Data Model tab, click Add field to create a new field for the Person data object.
- In the Field name field, enter First name to name the field.
- Verify that Type defaults to Text (single line).
- Click Submit & add another to create a new field.
Tip: When multiple fields are added to a data object or step, use the Submit & add another option. Click Submit after adding the last field.
- Repeat steps 8-10 to add the following additional fields:
Field name Type Last name Text (single line) Address Address Phone Phone - In the upper right, click Save to commit the fields to the data object.
2 Create a Request type data object
- In the upper left, click Back to previous page.
- Click Request type (Draft) to open the Request type Data Model.
- Click Create Data Model to open the Create data object dialogue box.
- Click Next to display the data object connection details.
- In the System list, keep the default value of Pega, and then click Submit.
- On the Data Model tab, click Add field to create a new field for the Request type data object.
- In the Field name field, enter Type.
- Verify that Type defaults to Text (single line).
- Click Submit & add another to create a new field.
- Repeat steps 7-9 to add two additional fields:
Field name
Type Description Text (paragraph) Department Text (single line) - In the upper right, click Save to commit the fields to the data object.
3 Add Data Records to the Request type data object
-
In the Request type data object, click the Records tab to display a table that uses the Request type fields (Type, Description, and Department) as the table headers.
- Click Add Record to add a new Data Record to the data object.
- In the Type field, enter Park maintenance.
- In the Description field, enter Damaged or broken park or playground equipment.
- In the Department field, enter Parks and Recreation.
- Repeat steps 2-5 to add three more Data Records to the data object by using the information from the following table.
Type Description Department Pothole Pothole in a public parking lot or road Public Works Road debris Downed trees, power lines, or other traffic impediments Public Works Traffic signal Traffic signal not working properly Traffic Management - Click Save.
Confirm your work
- In the upper left, click Back to previous page.
- In the Integration map section, click View to open the Integration map.
- Verify your Integration map has both data objects pointing to the Pega system of record.
This Challenge is to practice what you learned in the following Module:
Available in the following missions:
If you are having problems with your training, please review the Pega Academy Support FAQs.
Want to help us improve this content?