Skip to main content


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

Creating a Parse XML rule to ingest customer data

Updated on August 3, 2022

This content applies only to Pega Cloud environments

Create a Parse XML rule to read the manifest file and map the nodes in the manifest file to properties in Pega Platform.

The goal of this procedure is to create the following rule with sample parameter values:

Rule typeRule nameApply toRuleset
Parse XMLUPlusManifestParserUPlus-Work-IngestionUPlusCDH-Rules:01-01-01
Important: When you configure this rule in your system, use the values that are appropriate for your system.
  1. In the navigation pane of Dev Studio, click Records.
  2. Expand the Integration-Mapping category, and then click Parse XML.
  3. On the Parse XML tab, click Create.
  4. On the New tab, configure the following parameters:
    1. In the Label field, enter UPlusManifestParser.
    2. In the Root Element Name field, enter manifest.
      Note: manifest is the root element of the manifest file to be parsed by this Parse XML rule.
    3. In the Apply to field, enter the name of the ingestion work class, which in this example is UPlus-Work-Ingestion.
      Note: The system creates the ingestion work class automatically when you create the ingestion case type. To check what the ingestion work class is in your system, in the navigation pane of Dev Studio, click App, and then expand the following categories: IngestionSysAdminClass.
    4. In the Add to ruleset fields, select UPlusCDH-Rules and 01-01-01.
  5. Click Create and open.
  6. On the Mapping tab, configure a mapping that matches the structure of your manifest file:
    Note: The mapping uses the processType and ManifestDetailsproperties that you configured earlier.
    Node NameContext PageContext ClassPropertyNode Namespace
    manifest.ManifestDetailsData-Ingestion-ManifestUPlusManifestParser
    processType.processType
    totalRecordCount.pyTotalRecordCount
    files
    file.pyFilesListEmbed-Data-FileDetails
    recordCount.pyRecordCount
    name.pyName
    size.pySize
    Parse XML rule for processing the manifest file
    The mapping in the Parse XML rule reflects the structure of the manifest file.
  7. Click Save.
    • Previous topic Creating an activity to ingest customer data
    • Next topic Creating a service package to ingest customer data

    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