Creating an activity to ingest customer data
This content applies only to Pega Cloud environments
Create an activity to define a sequential set of steps to perform the required processing and run the ingestion data flows.
The goal of this procedure is to complete the following tasks:
- Create the following rule with sample parameter values:
Rule type Rule name Ruleset Class Activity ExecuteIngestionDF UPlusCDH-Rules:01-01-01 UPlus-Work-Ingestion Important: When you configure this rule in your system, use the values that are appropriate for your system. - Add the rule to the Execute ingestion utility shape in the process flow in the Ingestion case type.
The starting point for this procedure is the process flow that you added to the Ingestion case type, as shown in the following figure:

- On the Edit Flow: UploadToXCAR tab, double-click the Execute ingestion utility shape.
- Clear the Rule field.
- Click the Crosshairs icon to the right of the Rule field.
- On the New tab, configure the following
parameters:
- In the Label field, enter ExecuteIngestionDF.
- In the Apply to and Add to ruleset fields, leave the default values.
- Click Create and open.
- Click the Pages & Classes tab.
- Add the RunOptionsPage with the following
parameters:
- In the Page name field, enter RunOptionsPage.
- In the Class field, enter Data-Decision-DDF-RunOptions.
- Add the Progress page with the following parameters:
- Click the Add item icon to add a new row.
- In the Page name field, enter Progress.
- In the Class field, enter Data-Decision-DDF-Progress.
RunOptionsPage and Progress page configuration - Click the Parameters tab.
- In the Parameters section, add a parameter with the
following settings:
- In the Name field, enter sleepTime.
- In the Data type field, select Integer.
- In the Required, ensure that No is selected.
- In the In/Out, ensure that In is selected.
SleepTime parameter configuration - In the Local variables section, add a variable with the
following settings:
- In the Name field, enter dfstatus.
- In the Data type field, ensure that String is selected.
dfstatus parameter configuration - On the Steps tab, configure the following steps:
Tip: The activity uses the DataFlowClassName and DataFlowNameproperties that you configured earlier. Step number Method Step page PropertiesName PropertiesValue 1 Page-New RunOptionsPage 2 Property-Set param.sleepTime 30 RunOptionsPage.pyAppliesTo .DataFlowClassName RunOptionsPage.pyRuleName .DataFlowName 3 Call pxRunDDFWithProgressPage RunOptionsPage 4 Property-Set Progress local.dfstatus @(PegaMKT-Engine:PegaMKTUtilities).monitorDFProgress(tools,param.sleepTime) Param.DataFlowID Progress.pyWorkItemID 5 Page-Remove RunOptionsPage Steps configuration in the ExecuteIngestionDF activity - Click Save.
- Go back to the UploadToXCAR tab.
- In the Rule field, select the
ExecuteIngestionDF activity
that you created.
Adding the activity rule to the utility shape - Click Submit.
- On the Edit Flow: UploadToXCAR tab, click Save.
Previous topic Creating a decision table to ingest customer data Next topic Creating a Parse XML rule to ingest customer data