Skip to content

Instantly share code, notes, and snippets.

@jrobinson01
Last active October 22, 2018 23:15
Show Gist options
  • Save jrobinson01/989e65ff8f1865896a88a632e914bd25 to your computer and use it in GitHub Desktop.
Save jrobinson01/989e65ff8f1865896a88a632e914bd25 to your computer and use it in GitHub Desktop.
cases list*
cases list*
open and assign case -> open case
open case
success -> assign case
failure -> keep retrying open?
assign case
success -> done
failure -> keep retrying assign?
keep retrying open?
open attempts remaining? -> open case
no open attempts remaining? -> surface error
keep retrying assign?
assign attempts remaining? -> assign case
no assign attempts remaining? -> surface error
surface error
done
function render(model){
console.log(model.active_states);
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