Tracking
From DarkWiki
Process
General process
- Process tracking file
- Send tracking updates to system
- Process the tracking updates
- Notify tracking updates
- Process the updates to see if there are status changes
- Notify status updates
Tracking updates processing
- Parse the tracking updates file.
- Add each tracking update to the database (using $addToSet, in MongoDB).
- Signal updated parcelIds to queue
Status update processing
- For each parcelId on the updated queue...
- Analyse the tracking history to determine the parcel & consignment status
- Signal updates statuses