Extending the Data Model with Pega Blueprint
4 Tasks
20 mins
Scenario
Your team has created the GoGoRoad application by creating a Pega Blueprint and importing the Blueprint into Pega Platform™. The new application is built-on the Common application. Your team asks you to add a data object and make the new data object available for use in your application's workflows.
The following table provides the credentials you need to complete the challenge:
| Role | User name | Password |
|---|---|---|
| Common application administrator | CommonAdmin | password123! |
Your assignment consists of the following tasks:
Task 1: Modify the existing GoGoRoad Blueprint
Use your existing GoGoRoad Blueprint to add a Data Object named Service Capability to your application Data Model.
Task 2: Import the modified GoGoRoad Blueprint
Import the modified GoGoRoad Blueprint to add the new Service Capability Data Object to your application.
Task 3: Add a relationship to connect the new data object and the Service Provider object
Each Service Provider offers multiple service capabilities. Each Service Capability can be associated with multiple providers. Your team wants to add a Many-to-Many relationship between the newly imported data object, Service Capability, and the Service Provider object.
Task 4: Add the new Data Object to a workflow
The main workflow for the GoGoRoad application is the Assistance Request Case Type, where you create a new case to assist a customer. Add Service Capability to the Assistance Request Case Type.
Challenge Walkthrough
Detailed Tasks
1 Modify the existing GoGoRoad Blueprint
Use your existing Blueprint to add a data object named Service Capability to your application data model.
- Open your Blueprint Dashboard at https://www.pega.com/blueprint/dashboard.
- Click the GoGoRoad blueprint to open it.
- At the top of the Blueprint page, click Data & Integrations.
- In the Application Data section, click Add.
- In the Add Data Object dialog, complete the fields.
- In the Data Object name field, enter Service Capability.
- In the Data Object description field, enter: A Service Capability is the type of service that a service provider can offer to a GoGoRoad customer. This includes services such as towing, fueling, tire change, tire repair, battery charging, battery replacement.
- Click Save.
Blueprint generates the Service Capability Data Object.
- Click Next to advance to Personas, then click Next again to advance to the Summary.
- In the Summary section, click Download Blueprint, and then save the Blueprint file to a location on your device where it is accessible.
Note: If the Blueprint recommendations dialog displays, click Download anyway to continue.
- Close the Blueprint recommendations dialog.
2 Import the modified GoGoRoad Blueprint
Import the modified GoGoRoad Blueprint to add the new Service Capability Data Object.
- In Infinity Studio, in the GoGoRoad application, click GoGoRoad > Extend this application with Blueprint.
- On the Extend from a Blueprint page, select Upload a Blueprint, then click Select a Blueprint to upload.
- Upload your updated GoGoRoad Blueprint.
- Click Customize Build.
- On the Case Types page, for each Case Type, in the Build Case Type field, select Do not build and then click Next.
You already imported the Case Types in the first challenge, so do not want to import them again.
- On the Data Objects page, configure the Data Objects:
- For the new Service Capability Data Object, in the Build Data Object list, select From Blueprint.
- For the other Data Objects, in the Build Data Object field, select Do not build.
- Click Next.
- On the Personas page, for each Persona, in the Build Persona Type field, select Do not build, and then click Next.
The Review page shows the new data class for the Service Capability Data Object.
- On the Review page, click Submit.
- When the application build is complete, click Continue to application.
- At the top of the Home page, click step 3, Data & integrations.
The page displays the Data objects for your application created by the Blueprint import.
Note: You may need to log out as CommonAdmin and then log back in to update the display to show the Service Capability object. - Click Service Capability to view the Data Model for the object.
Blueprint created a set of fields for the Data Model including Service capability name and Service Description.
3 Add a relationship to connect the new Data Object to the Service Provider object
Your team wants to add a Many-to-Many relationship between the newly imported data object, Service Capability, and the Service provider object. A Service Provider can have many Service Capabilities (for example towing, fueling, battery charging) and a Service Capability can be offered by many Service Providers.
- In the left navigation, click Data objects > Service Provider.
- Click Add Field.
- Complete the fields in the Add field to Service Provider dialog box and then click Submit.
- In the Field name field, enter Service Capability.
- In the Type field, select Data reference.
- In the Data object field, select Service Capability.
- In the Options list, select Many to Many.
The Link object name field shows Service Provider – Service Capability as shown in the following figure:
- Click Save.
The Service Capability field is created in the Service Provider Data Model as a data reference field.
- In the left navigation, click Data objects > Service Capability.
- Click Add Field.
Note: You may need to log out as CommonAdmin and then log back to update the display to show the Add Field button.
- Complete the fields in the Add field to Service Capability dialog box and then click Submit.
- In the Field name field, enter Service Provider.
- In the Type field, select Data reference.
- In the Data object field, select Service Provider.
- In the Options list, select Many to Many.
The Link object name field shows Service Capability – Service Provider as shown in the following figure:
- Click Save.
The Service Provider field is created in the Service Capability Data Model as a data reference field.
4 Add the new Data Object to a workflow
The Assistance Request Case Type is the main workflow for the GoGoRoad application. Add Service Capability to the Assistance Request Case Type.
- In Infinity Studio, in the left navigation, click Case Types > Assistance Request.
- Click the Data Model tab.
- Add the Service Capability field to the Data Model.
- Click Add Field.
- In the Field name field, enter Service Capability.
- In the Type field, select Data Reference.
- In the Data object field, select Service Capability.
- Click Submit.
- Click Save.
The Data Model tab now shows the Service Capability field.
Available in the following mission:
Want to help us improve this content?