Scenario
Multiple invoices are dispatched to multiple departments within a client company. That company has its own internal processes and approval processes and payment schedules. They occasionally pay exactly the amount invoiced, but often they pay it in installments, or with they will amalgamate a number of demands into a single payment.
...
- Create a Stream to merge input from 2 sources (other streams / DB collectors / file collectors)
- For each element, or group of elements in the first stream, try to match the element, or elements in the 2nd stream that match the amount in the first stream.
- Repeat for all elements and groups of elements
- Mark those elements matched where amounts and totals agree