简体   繁体   English

从 TinCan 简历(无 LMS)

[英]Resume from TinCan (without LMS)

I am trying to use the storyline resume option on my system.我正在尝试在我的系统上使用故事情节恢复选项。

I have my own system to process the storyline parameters, and it works properly.我有自己的系统来处理故事情节参数,并且它运行正常。

To launch the storyline presentation I send this URL -为了启动故事情节演示,我发送了这个 URL -

"url_to_course?registration='...my_registration'&endpoint='//...my_endpoint'"

Now I want to use the resume option, so I saved the data from "state?method=PUT" , which looks like this -现在我想使用 resume 选项,所以我从"state?method=PUT"保存了数据,它看起来像这样 -

"Authorization=undefined&Content-Type=application%2Fjson&X-Experience-API-Version=1.0.0&_=0.7401830187747183&resume=true&data=22146070ji1001111a0101101111y101%5E1%5En5r0CkdBPnMj.67JTy4eKzfZ1%5E1%5E002000&activityId=http%3A%2F%2F5wBd0mfmVGO_course_id&agent=%7B%7D&stateId=resume&registration=a30e5748-a544-5ba3-ab3d-0471936e98d3&content=%7B%22data%22%3A%2222146070ji1001111a0101101111y101%5E1%5En5r0CkdBPnMj.67JTy4eKzfZ1%5E1%5E002000%22%7D"

So I have the content data (suspend data.), which I understood that contains the slide information, and I want to send it on the next login.所以我有content数据(暂停数据。),我知道它包含幻灯片信息,我想在下次登录时发送它。

What is the exact parameter that I need to send to storyline to active the resume option?我需要发送到故事情节以激活恢复选项的确切参数是什么?

I have tried to send in the url something like this -我试图发送这样的网址 -

url_to_course?registration='...my_registration'&endpoint='//...my_endpoint'&content='2o2o405060e07080d090f0a0b0c0~281~2411001114Y010110111101211013110141101012011120121201013011130101401114x300Y1501110101010000000000000000000000000000000010'"

The last parameter is the suspent data that I saved, but it always goes to the first slide?最后一个参数是我保存的挂起数据,但是总是到第一张幻灯片?

The state resource is a Document resource in xAPI and is used by activity providers (like Storyline content) to store arbitrary data inside of an LRS. state资源是 xAPI 中的文档资源,活动提供程序(如故事情节内容)使用它在 LRS 中存储任意数据。 The storyline content will then try to retrieve that information from the LRS during the launch initialization process, this means that your LRS has to store the data provided during the POST request (the state?method=PUT which is special syntax that should act like a PUT ) so that it may then be retrieved during a GET request to the same resource.然后,故事情节内容将在启动初始化过程中尝试从 LRS 检索该信息,这意味着您的 LRS 必须存储在POST请求期间提供的数据( state?method=PUT是一种特殊的语法,应该像PUT ),以便在对同一资源的GET请求期间可以检索它。 The Storyline content is ignoring your additional parameter as one that it doesn't expect.故事情节内容忽略了您的附加参数,因为它不期望。 Once you have both methods of the State resource implemented the Storyline content should work without adjustment to the launch process.一旦您实现了 State 资源的两种方法,Storyline 内容应该可以在不调整启动过程的情况下工作。

See https://xapi.com/blog/deep-dive-document/ for more about the Document resources, and https://xapi.com/blog/deep-dive-state-activity/ for more specifically about State.https://xapi.com/blog/deep-dive-document/更多有关文件资源, https://xapi.com/blog/deep-dive-state-activity/为更具体有关国家。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM