Skip to main content


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

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Configuring data transform

Updated on April 5, 2022

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 CreateData ModelData 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:
    ChoicesActions
    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.
      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 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.

  • Previous topic Data Transforms - Completing the Create, Save As, or Specialization form
  • Next topic Data transform actions for Clipboard

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