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. Click here to continue your progress in the latest version.

Configuring data transform

Pega Community logo

Note: The following content, referenced from Pega Community, is included here to help you better achieve the module learning objectives.

To speed up the development and make application maintenance more convenient, set property values by using data transforms. When you create a data transform, you convert data from one format and class to another format and class.

For example, if a customer enters a shipping address on an order form, you can configure a data transform to populate the billing address with the same details.
  1. In the header of Dev Studio, click Create Data Model Data Transform .

  2. In the Label field, enter a short description for your data transform.

  3. Optional:

    To manually set the name of your data transform, in the Identifier section, click Edit.

    By default, the system automatically populates this field with a read-only value based on the sentence that you enter in the Identifier field. The system ignores spaces and special characters.

  4. In the Additional configuration options, select a data model format for your data transform:

    • If you want to use the Clipboard as your data model, select Clipboard.
    • If you want to use JSON as your data model, select JSON.
  5. In the Context section, specify the context for your data transform:

    1. Select an application layer in which you want to store the record.

    2. In the Apply to field, select the class to which this data transform applies.

    3. In the Add to ruleset field, select the name of a ruleset to contain the record, and then select the version number from the list.

  6. Optional:

    To override the default work item that your application associates with this development change, in the Work item to associate field, press the Down arrow key, and then select a work item.

    For more information about default work items, see Setting your current work item.

  7. Click Create and open.

  8. On the Definition tab, configure details of the data transform based on the selected data model:

    Choices Actions
    Configure data transform by using Clipboard
    1. In the Action column, select an action that you want to perform on the data.

      For more information about actions available for Clipboard, see Data transform actions for Clipboard.

    2. In the Target column, specify the target of the selected action.

    3. If available, in the Relation column, specify the relationship between the target and the source.

    4. In the Source column, specify the source of the selected action.

    5. Optional:

      To add more actions in your data transform, click Add a row, and then repeat steps 8.a through 8.d.

    6. Optional:

      To chain together this data transform and data transforms with the same name in any of its parent classes, select the Call superclass data transform check box.

      At run time, the system first performs the actions in the highest-level data transform.

    Auto-map the data transform by using JSON
    1. Select the Auto-map all data check box.

      Note: At run time, the system maps the JSON string to the clipboard.
    2. In the Top element structure section, select whether the structure for your data transform is an object or an array.

    3. If your element structure is an array, in the Pagelist Property field, select the property to which to map the array, and then select the JSON elements.

    Configure the data transform by using JSON
    1. In the Top element structure section, select whether the structure for your data transform is an object or an array.

    2. If your element structure is an array, in the Pagelist Property field, select the property to which to map the array, and then select the JSON elements.

    3. In the Action column, select an action that you want to perform on the data.

      For more information about actions available for JSON see Data transform actions for JSON.

    4. In the Clipboard column, select the clipboard to use for JSON serialization or deserialization.

    5. If available, in the Relation column, specify the relationship between the target and the source.

    6. In the JSON column, enter the array, object, or simple field name from the JSON data.

    7. To add more actions to your data transform, click Add element, and then repeat steps 8.c through 8.f.

  9. Optional:

    To hide all child rows, click Collapse All.

  10. Optional:

    To show all child rows, click Expand All.

  11. Click Save.

  • Data transform actions for Clipboard

    To save time while processing your cases, populate data in your application by using data transforms. When you use data transforms, you can convert data from one format and class to another format and class.

  • Data transform actions for JSON

    Save time while processing your cases by providing data for your application through data transforms. When you apply a data transform, you populate target values with values form a source that you specify, so that you avoid providing the same data twice.

  • Data Transforms

    A data transform defines how to convert data that is in one format and class (the source) into data of another format and class (the target). The supported formats are clipboard and JSON. Using a data transform instead of an activity to set property values speeds up development and makes application maintenance easier.

  • Data Transforms - Completing the Create, Save As, or Specialization form
  • More about data transforms

    Using a data transform, you can specify initial properties for objects of a specific class and also map properties (and their values) of an instance of a class to an instance of a different class.


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