Created
June 15, 2015 12:59
-
-
Save gardnervickers/0e6f5b6c00ab7197eb04 to your computer and use it in GitHub Desktop.
Example workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Code | |
[[:in :concat-names] | |
[:concat-names :parse-dates] | |
[:parse-dates :time-left] | |
[:time-left :notify-near-expiration] | |
[:notify-near-expiration :out] | |
[:time-left :out]] | |
;; What the code means | |
:in ; Read data line-by-line from a file | |
| | |
:concat-names ; transform :firstname and :lastname fields into :fullname | |
| | |
:parse-dates ; try to parse date fields | |
| | |
:time-left ; Calculate how many days left in current plan | |
/ \ | |
to-db :out :notify-near ; if there is less than a year left on the current plan, send an email | |
:-expiration | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment