Skip to content

Instantly share code, notes, and snippets.

@cbrake
Last active July 15, 2020 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbrake/a8fee47c420ea6a69fcb923654650725 to your computer and use it in GitHub Desktop.
Save cbrake/a8fee47c420ea6a69fcb923654650725 to your computer and use it in GitHub Desktop.
Z Alerts
Z Alerts
Inactive*
all cond met -> Last Action Active and less 30m since last action?
Action
all cond met-> Active
not all cond met -> Inactive
Active
any cond not met -> Check Repeat Limit?
30m since last action -> Action
Check Repeat Limit?
30m since last action? -> Action
not 30m since last action? -> Inactive
Last Action Active and less 30m since last action?
Yes? -> Active
No? -> Action
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