Skip to content

Instantly share code, notes, and snippets.

@jorgecolonconsulting
Last active January 6, 2020 05:40
Show Gist options
  • Save jorgecolonconsulting/b9d0c4d9249151677dc54cf5ad8baca8 to your computer and use it in GitHub Desktop.
Save jorgecolonconsulting/b9d0c4d9249151677dc54cf5ad8baca8 to your computer and use it in GitHub Desktop.
# context: customers.<int>successful
# context: customers.<int>successful
# context: customers.<int>errored
# context: customers.<int>total
idle
START_SYNC -> batch_started
INCREMENTAL_SYNC -> incremental_sync
complete
RETRY_CUSTOMERS -> retrying_customers
START_SYNC -> batch_started
inProgress
batch_started
DONE -> complete
retrying_customers
DONE -> complete
incremental_sync
DONE -> complete
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