Workflow diagram
Workflow components
There are four components:
- mailcheck - checks for unread emails
- diffcheck - checks for differences between current and previous list
- sms - sends sms
- sup - configures sms, diffcheck and mailcheck
Workflow flow
The workflow goes like this:
- mailcheck goes and checks for unread emails every n seconds, bundles it into a list and sends it to the input stream for diffcheck
- diffcheck compares the current list of emails with the previous list of emails, determines which ones are new, bundles it into a list and sends that off to sms
- sms looks at the list of incoming data and sends to phone numbers associated with diffcheck
- but nothing really happens cos we've not associated the name 'diffcheck' with anything
- and the incoming data is just discarded
- sup sends a command to sms, associating the name 'diffcheck' with a phone number
- now sms is configured to send out messages associated with 'diffcheck'
Status
Have got a very rough working version.
Areas to improve
- diffcheck should just pass-thru instead of polling, the name should also just passthru
- so instead of send_out() we could call something like pass_thru()
No comments:
Post a Comment