Skip to content

Instantly share code, notes, and snippets.

@emmanuel
Created February 25, 2026 20:46
Show Gist options
  • Select an option

  • Save emmanuel/4e0013eeafa54d2d5bd7d79f4b782106 to your computer and use it in GitHub Desktop.

Select an option

Save emmanuel/4e0013eeafa54d2d5bd7d79f4b782106 to your computer and use it in GitHub Desktop.
CMI5 registration state machine&
CMI5 registration state machine&
Session management&
Session state-AU1
Inactive-AU1
INITIALIZED-AU1 -> Active-AU1
Active-AU1
TERMINATED-AU1 -> Inactive-AU1
ABANDONED-AU1 -> Inactive-AU1
Session state-AU2
Inactive-AU2
INITIALIZED-AU2 -> Active-AU2
Active-AU2
TERMINATED-AU2 -> Inactive-AU2
ABANDONED-AU2 -> Inactive-AU2
Course Satisfaction&
Satisfaction-AU1
Registered-AU1
LAUNCHED-AU1 -> InProgress-AU1
InProgress-AU1
FAILED-AU1 -> Registered-AU1
COMPLETED-AU1 -> Satisfied-AU1
Satisfied-AU1
Satisfaction-AU2
Registered-AU2
LAUNCHED-AU2 -> InProgress-AU2
InProgress-AU2
FAILED-AU2 -> Registered-AU2
PASSED-AU2 -> Satisfied-AU2
Satisfied-AU2
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