Creating a Parse XML rule to ingest customer data
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 type | Rule name | Apply to | Ruleset |
Parse XML | UPlusManifestParser | UPlus-Work-Ingestion | UPlusCDH-Rules:01-01-01 |
- In the navigation pane of Dev Studio, click Records.
- Expand the Integration-Mapping category, and then click Parse XML.
- On the Parse XML tab, click Create.
- On the New tab, configure the following
parameters:
- In the Label field, enter UPlusManifestParser.
- In the Root Element Name field, enter
manifest.
- In the Apply to field, enter the name of the
ingestion work class, which in this example is
UPlus-Work-Ingestion.
- In the Add to ruleset fields, select UPlusCDH-Rules and 01-01-01.
- Click Create and open.
- On the Mapping tab, configure a mapping that matches the
structure of your manifest
file:
Node Name Context Page Context Class Property Node Namespace manifest .ManifestDetails Data-Ingestion-Manifest UPlusManifestParser processType .processType totalRecordCount .pyTotalRecordCount files file .pyFilesList Embed-Data-FileDetails recordCount .pyRecordCount name .pyName size .pySize - Click Save.
Previous topic Creating an activity to ingest customer data Next topic Creating a service package to ingest customer data