Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Configuring a data transform

Updated on May 31, 2022

To make application development maintenance more convenient and efficient, 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 CreateData ModelData Transform.
  2. In the Label field, enter a short description for your data transform.
    For data transforms that initialize cases, use the pyDefault name.
  3. Optional: To manually set the identifier of your data transform, in the Identifier section, click Edit.
    By default, the system automatically populates this field with a read-only value that is based on the sentence that you enter in the Identifier section. The system ignores spaces and special characters.
  4. In the Additional configuration options section, select a data model format for your data transform:
    • If you want to use the Clipboard tool 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 Pega Platform ruleset 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 which you want to add the record, and then, in the list, select the version number.
  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:
    ChoicesActions
    Configure the data transform by using the Clipboard tool
    1. In the Action column, select an action that you want to perform on the data.
      For more information about actions available for the Clipboard tool, 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.
      The Relation column will show available selections based on the action selected in step a.
    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 checkbox.
      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.
      Result: 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 value to use for JSON serialization or deserialization.
    5. If available, in the Relation column, specify the relationship between the target and the source.
      The Relation column will show available selections based on the action selected in step a.
    6. In the JSON column, enter the array, object, or simple field name from the JSON data.
    7. In the Empty behavior column, control the mapping results of a JSON data transform by selecting an empty behavior.
      The configuration choices include the following options:
      Default value
      The JSON data transform serializer maintains the preexisting value. This configuration supports backward compatibility with Pega Platform that are earlier than 8.5.
      Null
      Represents a null value in the JSON data transform when the associated ClipboardPage / ClipboardProperty exists with an empty value,
      Skip
      Skips mapping in JSON when the associated ClipboardPage / ClipboardProperty exists with an empty value.
    8. Optional: To add more actions to your data transform, click Add element, and then repeat steps 8.c through 8.g.
  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.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us