Skip to main content

Creating a data model

3 タスク

10 分

Visible to: All users
初級 Pega Platform 8.7 Data Integration 英語

シナリオ

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

Create a data object for the submitter, which contains name, address, and phone number.

Create a data object for the request type, which contains records for Type, Description, and Department.

The following table provides the credentials that you need to complete the challenge.

Role User name Password
Application Developer author@mytown pega123!

このチャレンジを完了するには、Pegaインスタンスを起動する必要があります。

起動には5分ほどかかることがありますので、しばらくお待ちください。

チャレンジ ウォークスルー

詳細なタスク

1 Create a Person data object

  1.  In the navigation pane of App Studio, click Data to display a list of data objects in the application.
  2. In the upper right, click New to open the Create data object dialog box. 
    Data objects and integrations page
     
  3. In the Create data object dialog box, in the Data object name field, enter Person
    Person data object
  4. Click Next to display the data object connection details.
  5. In the System list, keep the default value of Pega, and then click Submit to create and display the new Person data object.
  6. On the Data model tab, click Add field to create a new field for the Person data object.
  7. In the Field name field, enter First Name to name the field.
  8. Verify that Type defaults to Text (single line).
  9. Click Submit & add another to create a new field.
  10. Repeat steps 7-9 to add three more fields Last NameAddress, and Phone as shown in the following image. 
    The Person data object with added fields of First Name, Last Name, Address, and Phone.
    補足: The address is captured in one Text (paragraph) field to keep this challenge brief. In a real-world application, an out of the box Address data object would be used to promote reuse.
  11. In the upper right, click Save to commit the fields to the data object.

2 Create a Request type data object

  1. In the upper left, click Back to previous page
    Back to data objects
  2. In the upper right, click New to open the Create data object dialog box.
    Add new data object
  3. In the Create data object dialog box, in the Data object name field, enter Request type.
    Request type data object
  4. Click Next to display the data object connection details.
  5. In the System list, keep the default value of Pega, and then click Submit to create and display the new Request type data object.
  6. On the Data model tab, click Add field to create a new field for the Request type data object.
  7. In the Field name field, enter Type to name the field.
  8. Verify that Type defaults to Text (single line).
  9. Click Submit & add another to create a new field.
  10. Repeat steps 7-9 to add two more fields Description and Department as shown in the following image.
    The Request type data object with added fields of Type, Description, and Department.
     
  11. In the upper right, click Save to commit the fields to the data object.

3 Add records to the Request type data object

  1. 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.

  2. On the Records tab, under the Type column, click Add record to add a new record to the data object.
    Highlighting the Add record button in the Records tab of the Request type data object.
  3. In the Type field, enter Park maintenance.
  4. In the Description field, enter Damaged or broken park or playground equipment.
  5. In the Department field, enter Parks and Recreation.
  6. Repeat steps 2-5 to add three more records to the data object by using the information from the following table.
    Type Description Department
    Pothole Pothole in 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
  7. Click Save.
    Highlighting the Save button after adding records to the Request type data object.

作業の確認

  1. In the upper left, click the back arrow. 
    Back to data objects
  2. In the Integration map section, click View to open the Integration map. 
    Integration map
  3. Verify your Integration map has both data objects pointing to the Pega system of record.
    MyTown integration map

このチャレンジは、下記のモジュールで学習したことを実践するための内容です。


このモジュールは、下記のミッションにも含まれています。

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

このコンテンツは役に立ちましたか?

改善できるところはありますか?

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