Last active
October 22, 2018 23:15
-
-
Save jrobinson01/989e65ff8f1865896a88a632e914bd25 to your computer and use it in GitHub Desktop.
cases list*
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
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 |
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
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