Skip to content

Instantly share code, notes, and snippets.

@derek-duncan
Created July 25, 2018 21:44
Show Gist options
  • Save derek-duncan/8a650759d0352acd16b61ccd111286a5 to your computer and use it in GitHub Desktop.
Save derek-duncan/8a650759d0352acd16b61ccd111286a5 to your computer and use it in GitHub Desktop.
Writeback
Writeback
Idle*
START_WRITEBACK -> Verify
Verify
VerifyPending
VERIFY_FAIL -> VerifyError
VERIFY_SUCCEED -> Send
VerifyError
VERIFY -> VerifyPending
VERIFY_CANCEL -> Idle
Confirm
CONFIRM_CANCEL -> Idle
CONFIRM -> Verify
Send
SEND_SUCCEED -> Idle
SEND_FAIL -> Idle
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