Last active
August 2, 2020 22:24
-
-
Save johnkazer/87a65bcb5a72cef737abd40f6712e2c4 to your computer and use it in GitHub Desktop.
FPX v2
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
FPX v2 | |
loggedOut | |
login -> handleLogin | |
handleLogin | |
login success -> fetchUserData | |
login fail -> loggedOut | |
fetchUserData | |
success -> editCurrentProcess | |
no data -> editNewProcess | |
fail -> loggedOut | |
loggedIn | |
logout -> saveDataOnLogout | |
createProcess -> editNewProcess | |
copyProcess -> editCurrentProcess | |
updateProcess -> editCurrentProcess | |
editProcess | |
input -> createData | |
output -> createData | |
extendInput -> createDataColumns | |
extendOutput -> createDataColumns | |
saveProcess -> loggedIn | |
editCurrentProcess | |
editNewProcess | |
createData | |
success -> editCurrentProcess | |
fail -> removeData | |
createDataColumns | |
success -> editCurrentProcess | |
fail -> removeDataColumns | |
removeData | |
success -> editCurrentProcess | |
fail -> error | |
removeDataColumns | |
success -> editCurrentProcess | |
fail -> error | |
tryLogout | |
logout success -> loggedOut | |
logout fail -> loggedIn | |
error | |
refresh app -> loggedIn | |
saveDataOnLogout | |
success -> tryLogout | |
fail -> loggedIn |
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){ | |
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