scorm.get("cmi.completion_status") and SCORM Cloud

2,107 views
Skip to first unread message

WL

unread,
Sep 19, 2011, 6:46:22 PM9/19/11
to eLearning Technology and Development
Hi,

I have been working with this snippet from pipwerks and have noticed
that I'm not getting a "passed" completion status when I run the app
in moodle and also in SCORM cloud. Everything else works except
cmi.completion_status. In moodle i get a green tick and the results
tell me that it was completed. But running the app again again it
skips to incomplete even though it has been completed.

Where do you think the error could be

hope this makes sense
many thanks

WL

if(success){

course.lesson_status = scorm.get("cmi.completion_status");
//If course has already been completed
if(course.lesson_status == "passed" || course.lesson_status ==
"completed"){

console("You have already completed this course.");

//Disconnect from the LMS.
scorm.disconnect();

} else {

//Set course status to incomplete
success = scorm.set("cmi.completion_status", "incomplete");
console("scorm.set('cmi.completion_status', 'incomplete'): "
+success);

Philip Hutchison

unread,
Sep 19, 2011, 7:00:01 PM9/19/11
to elearning-technolo...@googlegroups.com
re-launching a completed course will change the course status to incomplete... it's viewed as a new attempt.




--
You received this message because you are subscribed to the Google Groups "eLearning Technology and Development" group.
To post to this group, send email to elearning-technolo...@googlegroups.com.
To unsubscribe from this group, send email to elearning-technology-and...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/elearning-technology-and-development?hl=en.


WL

unread,
Sep 19, 2011, 7:18:55 PM9/19/11
to eLearning Technology and Development
hi Philip,
that makes sense.
I thought the console would see the completed status and flag up a
"you have already completed this course"message
So say in SCORM cloud or moodle how would I see this "passed" message
in the console.
cheers

WL
> >http://groups.google.com/group/elearning-technology-and-development?h....

Matt Perkins

unread,
Sep 19, 2011, 10:00:35 PM9/19/11
to elearning-technolo...@googlegroups.com
Is this an LMS behavior or is there anything the SCO can do to prevent it? I'm troubleshooting a similar issue now.

--
Matt Perkins
-----------------

John Campbell

unread,
Sep 19, 2011, 10:09:39 PM9/19/11
to elearning-technolo...@googlegroups.com
If cmi.exit was set to normal, when you relaunch a sco, all data is reset. If you want the data retained, set cmi.exit to suspend

If you want to exit normally, yet maintain success and completion, you must use global objectives with appropriate read/write maps. 

If you "finish" a package and an exitAll navigation request is sent to the lms, all bets are off. Behavior is undefined and LMS specific. Most will not let you enter an existing registration in this state. A new registration is required which equates to a totally separate attempt. 

Take care,
jpc

--
John Campbell
Sent from Mobile Phone

WL

unread,
Sep 20, 2011, 2:16:45 AM9/20/11
to eLearning Technology and Development
thanks for the reply jpc
I get what you mean re cmi.exit

so can you help me understand what this snippet does. After running
the

if(success){
course.lesson_status =
scorm.get("cmi.completion_status");
//If course has already been completed
if(course.lesson_status == "passed" ||
course.lesson_status ==
"completed"){
console("You have already completed this
course.");

cheers

WL


On Sep 20, 3:09 am, John Campbell <jpcampb...@gmail.com> wrote:
> If cmi.exit was set to normal, when you relaunch a sco, all data is reset.
> If you want the data retained, set cmi.exit to suspend
>
> If you want to exit normally, yet maintain success and completion, you must
> use global objectives with appropriate read/write maps.
>
> If you "finish" a package and an exitAll navigation request is sent to the
> lms, all bets are off. Behavior is undefined and LMS specific. Most will not
> let you enter an existing registration in this state. A new registration is
> required which equates to a totally separate attempt.
>
> Take care,
> jpc
>
> --
> John Campbell
> Sent from Mobile Phone
>
> On Sep 19, 2011, at 8:58 PM, Matt Perkins <nudoru.m...@gmail.com> wrote:
>
> Is this an LMS behavior or is there anything the SCO can do to prevent it?
> I'm troubleshooting a similar issue now.
>
> --
> Matt Perkins
> -----------------http://www.nudoru.com
>
> On Sep 19, 2011, at 7:00 PM, Philip Hutchison <platelu...@gmail.com> wrote:
>
> re-launching a completed course will change the course status to
> incomplete... it's viewed as a new attempt.
>
> On Mon, Sep 19, 2011 at 3:46 PM, WL < <teddington...@gmail.com>
> > <elearning-technology-and-development%2Bunsu...@googlegroups.com>
> > elearning-technology-and...@googlegroups.com.
> > For more options, visit this group at
> > <http://groups.google.com/group/elearning-technology-and-development?h...>
> >http://groups.google.com/group/elearning-technology-and-development?h....
>
>  --
> You received this message because you are subscribed to the Google Groups
> "eLearning Technology and Development" group.
> To post to this group, send email to
> elearning-technolo...@googlegroups.com.
> To unsubscribe from this group, send email to
> elearning-technology-and...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/elearning-technology-and-development?h....
>
>  --
> You received this message because you are subscribed to the Google Groups
> "eLearning Technology and Development" group.
> To post to this group, send email to
> elearning-technolo...@googlegroups.com.
> To unsubscribe from this group, send email to
> elearning-technology-and...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/elearning-technology-and-development?h....

John Campbell

unread,
Sep 20, 2011, 9:05:14 AM9/20/11
to elearning-technolo...@googlegroups.com
That's not SCORM API or Wrapper code, So I can't tell. I am not
familiar with the pipwerks API. Looking at it as pseudocode, it is
following SCORM 1.2 style of having success and completion in the same
data model element of lesson_status.

But it looks like it's just checking to see if a value happens to be
there. For SCORM 2004, these can come through global objectives mapped
to the primary.

Take care,
jpc

--
John Campbell
Sent from Mobile Phone

> For more options, visit this group at http://groups.google.com/group/elearning-technology-and-development?hl=en.
>

Matt Perkins

unread,
Sep 20, 2011, 2:56:13 PM9/20/11
to elearning-technolo...@googlegroups.com
So as a follow up ... 

1. Using Pipwerks and a SCORM 2004 SCO and it's configured to set cmi.exit to "normal" on PASS or COMPLETE status
2. I take my SCO and end with a PASS status and I see this reflected on the LMS screen.
3. I reenter my SCO and the API retreives a lesson_status of INCOMPLETE where I thought it should have been PASS. 

This is because the LMS (SCORMCloud in this case) is counting it as a new attempt and resetting lesson_status to INCOMPLETE and I'm not able to determine what value this was set it on the last session.

Is all of that correct?

I don't know too much about SCORM 2004, so I don't know anything about global objectives.

Thanks! Answers to this will help me communicate and work with my client on a resolution.

Matt Perkins
---------------------------------
http://www.nudoru.com
http://udon.nudoru.com

Estes Ethan

unread,
Sep 20, 2011, 3:00:28 PM9/20/11
to elearning-technolo...@googlegroups.com
From what your saying Scorm Cloud is working as expected. When you have a success_status of passed, completion_status of completed and exit is normal the lms will assume your done with the attempt. Another launch will either give you a new attempt with empty cmi object or an attempt in review mode which most LMS's treat as throw away so it won't track any of it when you leave.
-EÆ


John Campbell

unread,
Sep 20, 2011, 3:00:47 PM9/20/11
to elearning-technolo...@googlegroups.com
SCORM 2004 does not have a lesson_status.  Not sure how pipwerks overloads this, but...

completion_status - completed, incomplete, unknown
success_status - passed, failed, unknown

Therefore you can be passed and incomplete at the same time.

take care,

jpc

Matt Perkins

unread,
Sep 20, 2011, 3:03:51 PM9/20/11
to elearning-technolo...@googlegroups.com
Thanks!

Any way to determine what/how/who/if/etc. the LMS is in review mode? End target is SumTotal and it's behaving like SCORMCloud here. If I reenter a completed/passed SCO and then exit, the LMS now records a status of incomplete. So it appears to be starting a new attempt.

I really haven't worked closely with an LMS in a while - really appreciate the help on this list! Saving me days of Googling! :)


Matt Perkins
---------------------------------
http://www.nudoru.com
http://udon.nudoru.com


Philip Hutchison

unread,
Sep 20, 2011, 3:07:07 PM9/20/11
to elearning-technolo...@googlegroups.com
Just FYI you can disable the wrapper's default cmi.exit setting if you prefer to handle it manually.

Estes Ethan

unread,
Sep 20, 2011, 3:11:51 PM9/20/11
to elearning-technolo...@googlegroups.com
cmi.mode = "review" in that mode under 2004

for reference:

-EÆ


Matt Perkins

unread,
Sep 20, 2011, 3:21:54 PM9/20/11
to elearning-technolo...@googlegroups.com
It's doesn't override, I misspoke. What you put below is how I'm reporting it to the LMS.

Matt Perkins
---------------------------------
http://www.nudoru.com
http://udon.nudoru.com


John Campbell

unread,
Sep 20, 2011, 3:34:56 PM9/20/11
to elearning-technolo...@googlegroups.com
doGetValue("cmi.mode")   However, not sure the level of support they have for it.

SumTotal is a curious animal.  If you go under Completed Registrations and launch again, you will start over, but with much of the state data there.  I would not consider that a stable use case (v7.5).  I'm just trying to "recall" how that worked.  It's been about 18 months since I tried it.


take care,

jpc

Matt Perkins

unread,
Sep 20, 2011, 3:43:20 PM9/20/11
to elearning-technolo...@googlegroups.com
On SCORMCloud cmi.mode is "normal" on initial take and on reentry-after-complete. The next test I send to the client will have this in there so I'll find out what he sees.

Matt Perkins
---------------------------------
http://www.nudoru.com
http://udon.nudoru.com


Reply all
Reply to author
Forward
0 new messages