- Data engineer
- Junior
- 22 min
A reusable surcharge total
Rowan Delivery calculates a signed-delivery surcharge. Wire extract into accepted and accepted into total using TaskFlow calls. accepted retains status signed; total sums amount, including negative corrections. Keep the XCom result small in this exercise.
Skills and rubricTaskFlow dependencies
- I call total(accepted(extract())) because the TaskFlow values create the upstream dependencies and carry this run’s data. I reconcile the total to signed rows including corrections. For a large export I would pass a durable object reference instead of the full dataset through XCom.
- Complete the requested work and identify the source fact that makes it valid.
- I inspect the upstream graph and each run’s XCom because independent task calls can return plausible values while leaving the actual data dependency missing. I include a signed negative correction to expose an incorrect positive-only filter.