# Appendices

This section details common things that any integrator will do when interacting with the TLA.

# Moodle Logstore Update: TLA MOM updates to the default xAPI Statements

  1. “https://brindlewaye.com/xAPITerms/verbs/loggedin/” is now “http://adlnet.gov/expapi/verbs/launched” when you login to moodle

  2. Verb changed from “http://activitystrea.ms/schema/1.0/start” to “http://adlnet.gov/expapi/verbs/initialized” for quizzes

  3. Verb changed from “http://adlnet.gov/expapi/verbs/completed” to “http://adlnet.gov/expapi/verbs/terminated” for quizzes

  4. Filters out statements that are based on the event “\core\event\course_module_completion_updated”, but the completionstate is 0 (meaning incomplete). Result is no statement is sent when incomplete

  5. For course module completions, changed module type from “http://id.tincanapi.com/activitytype/lms/module” to “https://w3id.org/xapi/tla/activity-types/activity”

  6. Changed course module viewed verb from “http://id.tincanapi.com/verb/viewed” to “http://adlnet.gov/expapi/verbs/initialized'”

  7. When a course module viewed event is triggered, sends the initialized from above and follow that with a “http://adlnet.gov/expapi/verbs/terminated” so there is a complete attempt

  8. Changed the “http://adlnet.gov/expapi/verbs/registered” en language map to “registered”. It was “enrolled” which is not the standard value

  9. Added passed and failed for a quiz attempt including the result.score.scaled. Also fixed the result.score.scaled bug that caused it to not be calculated correctly and added result for completion, duration and success

  10. Changed course definition and type. Type from “http://id.tincanapi.com/activitytype/lms/course” to “http://adlnet.gov/expapi/activities/course”. Also added the object.definition.description en language map value.

11 Added TLA context to statements as appropriate - including contextActivities.category to “https://w3id.org/xapi/tla/v0.5” and extensions for source_version, plugin_version, event_name and event_function

  1. For a SCO, changed the verb “http://adlnet.gov/expapi/verbs/launched” to “http://adlnet.gov/expapi/verbs/initialized”

  2. For a SCO launched, added a contextActivity.grouping for the attempt

  3. Added “http://adlnet.gov/expapi/verbs/terminated” statement SCO status submitted

  4. For SCOs, created and managed an attempt IRI to tie statements together into an attempt by the user. e.g. - Initialized and Terminated both can have the same context attempt IRI so you know what initialize pairs with what terminated.

  5. For SCOs, changed them to use the “https://w3id.org/xapi/tla/activity-types/activity” activity type and created the appropriate IRI and title

  6. Fixed bug on result.response on questions -- sometimes it came in as null

  7. Do not track users that are not logged in (e.g. Do not send statements for unknown people, like hitting the home page before logged in)