Skip to main content
This content is now archived and is no longer updated. Progress is not calculated. Pega Cloud instances are disabled, and badges are no longer awarded.

Extending a Monte Carlo data set

Introduction

A Monte Carlo data set is not limited to flat structures. A good example is product holdings, a property that represents a one-to-many relationship. A single customer may have multiple credit cards. In a Monte Carlo data set, the relationship between the customer and the product holdings records is based on a common key, such as the customer ID.

Video

Transcript

In this demonstration, you extend the customer data model by adding Product Holdings.

Data generation is not limited to flat structures. In this example, the corporate customer records include a Page List property called Product Holdings. To add Product Holdings records, select Add group and specify that property.

 

Add group

 

The Product Holdings property represents a one-to-many relationship.

One-to-many

Using the Monte Carlo method, you can specify the number of records generated for each customer record.

Prefix

The Monte Carlo Consecutive Provider enables you to use the same key as the one used in the customer record. This allows you to establish a relationship between the customer and the Product Holdings records based on a common key. In this case, the key is Customer ID.

List

The Options Provider enables you to specify a list from which the system selects a value. Having added the extra fields, examine the results. When you expand a customer record to see the Product Holdings records, the Customer ID is repeated.

You have now reached the end of this demonstration. During this demonstration, you learned how to generate mock data for an extended data model.


This Topic is available in the following Module:

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