JSON Samples


Scenarios

These samples represent various scenarios possible when running content using the cmi5 runtime definitions. Most of these scenarios are based on the “Simple” Course Structure Example from Section 15.1 of the specification.

Some common attributes about all samples:

Discrepancies with the above are pointed out where necessary.

Typical No Credit Session

View

Typical session that does not result in the awarding of credit based on the MoveOn criteria because requisite statements are not sent. Shows the minimum, common session which includes Launched Statement, Fetch URL Response, LMS.LaunchData State content, Initialized Statement, and Terminated Statement.

Completed or Passed Move On - Passed

View

Session from an AU that has its Move On criteria set to CompletedOrPassed that has a Passed Statement recorded. LMS.LaunchData content shows CompletedOrPassed Move On criteria as does the Launched Statement context extensions. Note that the Satisfied Statement is issued immediately following the Passed Statement.

Completed or Passed Move On - Completed

View

Session from an AU that has its Move On criteria set to CompletedOrPassed that has a Completed Statement recorded. LMS.LaunchData content shows CompletedOrPassed Move On criteria as does the Launched Statement context extensions. Note that the Satisfied Statement is issued immediately following the Completed Statement.

Completed or Passed Move On - Failed But Completed

View

Session from an AU that has its Move On criteria set to CompletedOrPassed that has a Failed Statement recorded followed by a Completed Statement. Note that the Satisfied Statement is issued immediately after the Completed Statement, regardless of the Failed Statement’s existence.

Completed Move On - Completed

View

Session from an AU that has its Move On criteria set to Completed that has a Completed Statement recorded. LMS.LaunchData content shows Completed Move On criteria as does the Launched Statement context extensions. Note that the Satisfied Statement is issued immediately following the Completed Statement.

Passed Move On - Passed

View

Session from an AU that has its Move On criteria set to Passed that has a Passed Statement recorded. LMS.LaunchData content shows Passed Move On criteria as does the Launched Statement context extensions. Note that the Satisfied Statement is issued immediately following the Passed Statement.

Passed Move On with Mastery Score - Passed

View

Session from an AU that has its Move On criteria set to Passed and includes a Mastery Score that has a Passed Statement with score recorded. LMS.LaunchData content shows Passed Move On criteria and 0.9 Mastery Score as does the Launched Statement context extensions.

Completed and Passed Move On

View

Session from an AU that has its Move On criteria set to CompletedAndPassed that has both a Passed Statement and a Completed Statement recorded. LMS.LaunchData content shows CompletedAndPassed Move On criteria as does the Launched Statement context extensions. Note that the Satisfied Statement is issued following the Completed Statement and not after the earlier Passed Statement.

Completed and Passed Move On with Mastery Score

View

Same as the Completed and Passed Move On scenario but with a passing score recorded. Note Passed statement includes result.score.scaled of 0.88 which is greater than the Mastery Score of 0.86 as defined in the LMS.LaunchData, Launched Statement, and Passed Statement.

Completed and Passed Move On with Mastery Score - Initial Failure

View

Same as the Completed and Passed Move On with Mastery Score scenario but with an initial Failed Statement. Note Failed statement includes result.score.scaled of 0.82 which is less than the Mastery Score of 0.86 as defined in the LMS.LaunchData, Launched Statement, and Failed Statement. The following Passed statement includes a result.score.scaled of 0.91 which is greater than the Mastery Score of 0.86 which is also included in the Passed Statement.

“cmi5 allowed” Statements

View

Session showing the use of “cmi5 allowed” Statements. Includes a single “cmi5 allowed” Statement using the “experienced” verb. Note the statement must happen between the Initialized and Terminated statements and uses the context template from the LMS.LaunchData.

Usage of Progress Extension

View

Session showing the use of the “progress” extension. Includes 3 “cmi5 allowed” Statements that have an increasing progress of 25% (25), 50% (50), and 75% (75) followed by a Completed Statement. Note the “progress” extension is not included in the Completed Statement.

Completed and Passed - Multiple Session to Satisfy

View

Multiple session scenario showing a CompletedAndPassed Move On criteria where the Passed and Completed Statements occur in separate sessions. Note LMS.LaunchData differs between the two because the session identifier is contained therein. Each session includes distinct Launched, Initialized, and Terminated Statements which include distinct context because of the distinct sessions.

Review Launch Mode

View

Session with a Launch Mode of Review. Likely a previous session has recorded completion and pass or waived. Note the Launch Mode value in the Launched Statement context extensions and the LMS.LaunchData.

Non-Applicable Move On - No Launch Session

View

Session that includes the absolute minimum data, and is associated with a NotApplicable Move On criteria which results in immediate satisfaction of the course upon registration creation. Includes Satisfied Statement.

Abandoned Session

View

Session that is abandoned, essentially a session without a Terminated Statement. Includes Launched Statement, LMS.LaunchData State content, Initialized Statement, and Abandoned Statement.

Passed with multiple attempts within a single Session using “cmi5 allowed” Statements

View

In this scenario the learner :

  1. launches the activity (cmi5 defined statement)
  2. exits the instruction portion (not the session) of the activity before completing (cmi5 allowed statement)
  3. fails the test portion (cmi5 allowed statement)
  4. completes the instruction portion (cmi5 allowed statement)
  5. passes the test portion (cmi5 defined statement)

Note that standard cmi5 verbs are used in cmi5 allowed statements as well as non-standard verbs (exit-before-completing).

cmi5 allowed test question statements

View

In this scenario The learner:

  1. launches the activity (cmi5 defined statement)
  2. attempts a test embedded in the activity (cmi5 allowed statement)
  3. answers 4 questions (cmi5 allowed statements)
  4. passes the test (cmi5 allowed statement)
  5. completes the activity (cmi5 defined statement)
  6. passes the activity (cmi5 defined statement)
  7. exits the activity( cmi5 defined statement)
  8. satisfies the activity (cmi5 allowed statement)
  9. satisfies the course (cmi5 defined statement)

Note the standard cmi5 verbs, allowed statements, and cmi5 defined statements. Also note that the satisfied verb issued for the activity is a “cmi5 allowed” statement per the best practice (Best Practice #13 – LMS create “satisfied” statements for AU’s.)


License Agreement

Copyright 2012-2016 Advanced Distributed Learning (ADL) Initiative, U.S. Department of Defense

Licensed under the Apache License, Version 2.0 (the “License”). You may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.