Skip to content

Instantly share code, notes, and snippets.

@lintaonz
Created September 20, 2018 04:22
Show Gist options
  • Select an option

  • Save lintaonz/7817ffadccd3a8b24b55d9098dbb6e8b to your computer and use it in GitHub Desktop.

Select an option

Save lintaonz/7817ffadccd3a8b24b55d9098dbb6e8b to your computer and use it in GitHub Desktop.
API Flow
API Flow
Login
LOGIN_SUCCEED -> loadingUserAssessment
loadingUserAssessment
ASSESSMENT_LOADED -> loadingOrganization
loadingOrganization
ORGANIZATION_LOADED -> loadingDeployments
loadingDeployments
DEPLOYMENT_LOADED -> loadingDiscoveryMap
loadingDiscoveryMap
DISCOVERY_MAP_LOADED -> loadingTransactions
loadingTransactions
TRANSACTIONS_LOADED -> update_entitlements
update_entitlements
ENTITLEMENT_UPDATED -> load_survey
load_survey
SURVEY_LOADED -> loadingPorducts
loadingPorducts
PRODUCTS_LOADED -> update_positions
update_positions
POSTIONS_UPDATED -> end
end
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