Follow

Interactions - Journaling and State

Avatar

Question

Hi there, SCORM tracks interactions sequentially. Am I able to set data for transactions that have previously happened? e.g. say an MCQ allowed the student to retry, can I refer back and overwrite the data previously sent to the LMS?

Answer

Short answer... yes.  You, as the content author, are really in control of how the interactions are recorded.  Essentially, prior to recording a new interaction, you can request the "_count" of current interactions and then elect to record your interaction in the "next" spot, or to overwrite one of the existing interactions.

Basically, there are two approaches to recording interactions... state and journaling.  (And no, you don't have to "declare" that you're doing one or the other... you just do it.)

In state, you would request the _count of interactions and then loop through them, looking for the interaction with the id you want to overwrite.  When you find it, you would record your values as you see fit.

In journaling, you would request the _count of the interactions, and then append your new interaction with all of its data.  

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    Andrew Wilson

    Thank you for that.

    I had read about the state and journaling but hadn't managed to work out how you sent the code telling the LMS which you were using.

    It will sink in eventually that the LMS is, essentially, just a database with an API and, as the programmer, I read and write the data as required.

    Thanks again.

    Andrew.

Powered by Zendesk