Difference between revisions of "Tracking"
From DarkWiki
(Created page with "==Process== * Parse the tracking updates file. * Add each tracking update to the database (using [https://docs.mongodb.com/manual/reference/operator/update/addToSet/ $addToSe...") |
(→Process) |
||
| Line 1: | Line 1: | ||
==Process== | ==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. | * Parse the tracking updates file. | ||
* Add each tracking update to the database (using [https://docs.mongodb.com/manual/reference/operator/update/addToSet/ $addToSet], in MongoDB). | * Add each tracking update to the database (using [https://docs.mongodb.com/manual/reference/operator/update/addToSet/ $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 | ||
Latest revision as of 10:18, 13 June 2017
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