Configuring the data model
Pega Customer Decision Hub requires a customer class to support the loading of customer data. The recommended way to implement a customer class is through the use of Pega-provided data model (xCAR) accelerators whenever they are available.
Accelerators help organizations go live with their
applications in a shorter time and provide guidance on best-in-class Pega practices.
- Go to Pega Marketplace and download the data model for your industry.
- Install the component by doing the following steps:
- In the header of Dev Studio, click .
- On the Import Wizard tab, click Choose
File, and then select the file that contains your xCAR data model.For example, the healthcare xCAR data model file is
PegaCDHxCARforHC.zip
. - After the file has been successfully imported, in the header of Dev Studio, click the name of your implementation application, and then click Definition.
- Click Manage Components.
- In the pop-up window, select the xCAR data model component that you imported.
- Select Enable, and then click OK.
- On the application form for your implementation application, click Save.
- In the header of Dev Studio, click .
- Verify that the ruleset corresponding to the imported file is above PegaMarketing_FW:8 in your application stack.
- Save the shipped customer class into your implementation ruleset by using the Save as option.
- Open the customer class that you saved into your implementation ruleset.
- In the Class inheritance section, select the Find by name first (Pattern) check box, and then as the parent class, enter the shipped customer class.
- Create the database table rule that maps the class to the customer table.
- For any associated data or additional contexts, save the page list properties that are used to link your data together into your implementation ruleset, and then update the page definition of your implementation class.
- Define a new association rule to associate your classes.
- Update the context dictionary based on your new classes and page list properties.
- Define static or stream data associations in the Customer Profile Designer.
- If you want to add additional properties, do the following steps:
- Add the property to the new implementation class.
- Expose the relevant column in the customer table.
- Update the External mappings tab of your class definition.
- Add the property to relevant records and categories as needed.
Previous topic Deployment options for storing customer data Next topic Adding associated static data in the Customer Profile Designer