Skip to content

Instantly share code, notes, and snippets.

@semperos
Last active March 26, 2019 13:34
Show Gist options
  • Save semperos/8d6868a6874ea85455ea49fcc94eef6a to your computer and use it in GitHub Desktop.
Save semperos/8d6868a6874ea85455ea49fcc94eef6a to your computer and use it in GitHub Desktop.
Data Import from Third-party
Data Import from Third-party
Inbox Empty or Processed
email received -> Email Message Received and Stored
Email Message Received and Stored
process email message -> Email Processing Job in Queue
Email Processing Job in Queue
process job -> Processing Email Message
Processing Email Message
fetch email message -> Fetching Email Message
Fetching Email Message
fetch succeeds -> Parsing Email Message
fetch fails -> Email Processing Job in Queue
Parsing Email Message
parse succeeds -> Validating Attachment
parse fails -> Developer Error
Validating Attachment
validation succeeds -> Reformatting Attachment
validation fails -> Human Error
Reformatting Attachment
reformatting succeeds -> Storing Reformatted Attachment
reformatting fails -> Developer Error
Storing Reformatted Attachment
storing succeeds -> Data Ready
storing fails -> Retrying Storing Reformatted Attachment
Retrying Storing Reformatted Attachment
storing succeeds -> Data Ready
storing fails -> Developer Error
Data Ready
query data -> Report Generated
Report Generated
Developer Error
Human Error
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment