Skip to main content

Track the Transformed Data

Learning Objectives

After completing this unit, you’ll be able to:

  • Run a DPE definition from the builder.
  • Run the Rebate Orchestration Flow 2.
  • Monitor ongoing DPE runs.
  • Track the aggregate records in the Rebate Member Product Aggregate object.

Time for a Test Drive

Rishi notes an option within the DPE builder to test the DPE definition and check if all nodes work properly. He can specify some input variables specific to this run and track the progress of the run with Monitor Workflow Services. Here’s what he does to test the definition.

  1. Click Activate on the data processing engine header.
  2. Click Run Definition.
  3. Click Next.
  4. Copy the ID of the DPE definition from the page URL (the 18 alphanumeric characters after “dataProcessingEngineId=”), and paste it in the input variable field Data Processing Engine Id.
  5. Ensure that the following input variables are populated correctly.
    • Program Rebate Type Filter
    • Rebate Program Filter
    • Rebate Program Member Filter
    • Rebate Program Payout Period Filter
  6. Click Run Definition.

The Run Data Processing Engine Definition window where the user can specify input variable values to run a specific definition.

Rishi specifies input variable values that are used on this run only. If you’ve introduced other input variables for your filter and formula nodes, specify those too. After you run the definition, a batch job is created.

The Orchestration Flow

Cindy clones the Rebate Orchestration Flow 2 and schedules it to run weekly. The flow automatically searches for DPE definitions with Process Type as Rebates and triggers the calculation process to generate payout amounts. Run Rebate DPE Jobs is a subflow within the Rebate Orchestration Flow 2. The subflow runs DPE definitions to aggregate data for payout calculations and generates records.

Cindy also specifies the Rebate Program ID of the Annual Rebates for AMER Partners program as an input variable so that the flow only runs for that rebate program.

Here’s what she does.

  1. Click Setup, and select Setup.
  2. In the Quick Find box, enter Flows.
  3. Under Process Automation, select Flows.
  4. Click the Rebate Orchestration Flow 2.
  5. On the header, click Save As and provide the following details.
    • Flow Label:Rebate Orchestration Flow 2_AMER Rebate Programs
    • Click Show Advanced, and select Type as Schedule-Triggered Flow.
  6. Click Save.
  7. When the cloned version opens, click Set Schedule on the Start element within the flow builder, and provide the following details.
    • Start Date: Current date
    • Start Time: Current time
    • Frequency: Weekly
  8. Click Done.
  9. Click Choose Object on the Start element, and provide the following details.
    • Object: Rebate Program
    • Condition Requirements: All Conditions Are Met (AND)
    • Field: Rebate Program ID
    • Operator: equals
    • Value: ID of the Annual Rebates for AMER Partners rebate program
  10. Click Done.
  11. Click Activate on the header of the flow builder.
  12. Click Run to trigger the weekly flow.
    The Run action in flow builder that the admin clicks to run the active Rebate Orchestration Flow.

Cindy has triggered the data processing engine run and ensured that it only picks up the values for the Annual Rebates for AMER Partners rebate program. She can track the run of the data processing engine and then Rishi can view the aggregation in the writeback object, Rebate Member Product Aggregate.

Monitor Your Runs

All DPE batch jobs can be monitored in Setup. Here’s what Rishi does to track the ongoing DPE run.

  1. Click Setup, and select Setup.
  2. In the Quick Find box, enter Monitor Workflow Services.
  3. Under Workflow Services, click Monitor Workflow Services.
  4. Click the batch job name that you want to track. Rishi clicks Aggregate by Member_AMER Rebate Program Aggregation, which is in In Progress status.
  5. On the Details tab of a batch job run record, you can see the following key details.
    • Run Start Time
    • Run End Time
    • Status
    • Failed Records Count
  6. On the Tasks tab of a batch job run record, you can see the status of each batch job part for the DPE definition. The data sources and the writeback object are batch job parts for this DPE along with a final execution task.
    The batch job record of a data processing engine definition showing the status and task parts.

Cindy and Rishi take a hard-earned coffee break to give themselves a small reward for all the amazing work they just did! When they come back, they see that the DPE run has successfully completed.

Track Your Aggregates

It’s late April and transaction records are already flowing in from partners for the ongoing month. When Rishi ran the DPE definition, the job picked up all transaction records till date and aggregated them accordingly. Let’s find out what he does to check the aggregated data for Summit Resellers, a partner of Rayler Parts. 

  1. Click App Launcher, and find and select Rebate Member Product Aggregates.
  2. Rishi selects a custom list view, Rayler Parts Payout Aggregates, to view the specific data. The list view helped him select Total Discounted Transaction Amount and Product Category as the fields to display.
  3. He notes two rows for Summit Resellers for the April payout period displaying the following information.
    • Member
    • Payout Period
    • Rebate Type
    • Product Category
    • Total Transaction Amount
    • Total Discounted Transaction Amount

Rayler Parts Payout Aggregate records for partner Summit Resellers.

Woohoo! Rishi informs account managers that their wishes have been fulfilled. Each aggregation record now shows the total discounted transaction amount. And the data is grouped not just by member, payout period, and rebate type, but also by product category.

The data processing engine is a powerful data transformation tool and works seamlessly with Rebate Management.

In Conclusion

Word has spread fast and wide, and account managers have already started preparing newer use cases for rebate payout aggregation. Rishi understands that with DPE definitions for Rebate Management, the possibilities are endless! He can’t wait to explore further and try other customizations with the data processing engine.

Resources

Keep learning for
free!
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities