can I add context/authority in launch?

27 views
Skip to first unread message

sarah...@elearning247.com

unread,
Apr 21, 2016, 12:45:38 PM4/21/16
to Learning Locker
I am running an external tin can course (articulate) in our own LMS , linking to Learning Locker, and I set the actor and credentials on launch, after which the statements come from the course .... but I want to link each statement to the course details in our LMS.

I get statements like below, where the LMS set the actor and the course set the object and verb. I'd like to pass context and authority in from the LMS on course launch, can I do that?

{
    "version": "1.0.0",
    "verb": {
        "id": "http://adlnet.gov/expapi/verbs/experienced"
    },
    "context": {
        "contextActivities": {
            "grouping": [
                {
                    "objectType": "Activity",
                    "id": "http://6PCAD2rmvIQ_course_id"
                }
            ],
            "parent": [
                {
                    "objectType": "Activity",
                    "id": "http://6PCAD2rmvIQ_course_id"
                }
            ]
        }
    },
    "actor": {
        "objectType": "Agent",
        "name": "sid 10",
        "account": {
            "homePage": "http://joetest36.elearning247.com/",
            "name": "sid 10"
        }
    },
    "object": {
        "objectType": "Activity",
        "definition": {
            "name": {
                "und": "During the Sale"
            },
            "type": "http://adlnet.gov/expapi/activities/module",
            "description": {
                "und": "During the Sale"
            }
        },
        "id": "http://6PCAD2rmvIQ_course_id/5yrWoliCjIl"
    },
    "id": "e0a75987-7556-4208-ab2c-b8307333736a",
    "authority": {
        "objectType": "Agent",
        "name": "New Client",
        "mbox": "mailto:he...@learninglocker.net"
    },
    "stored": "2016-04-21T16:28:58.811600+00:00",
    "timestamp": "2016-04-21T16:28:58.811600+00:00"
}

Ryan Smith

unread,
Apr 22, 2016, 9:49:09 AM4/22/16
to Learning Locker
Hey, really glad to see you got everything working! :) 

You can't set the authority, because that gets set by the LRS (Learning Locker) depending on the client credentials that you use. Regarding the context, how would you like that to look? I don't think there is anyway to get Articulate to add more data to it (you'd have to take that issue up with them), however, you could use the Activity Profile API.

Thanks and kind regards,
Ryan

sarah...@elearning247.com

unread,
Apr 22, 2016, 11:20:32 AM4/22/16
to Learning Locker
With your help it works. Thanks again ...

I think maybe what I want is there already from what you say, if our credentials link to the authority and the course sets the context. But if I import different tin can compliant courses from other course providers, can I rely on the context setting the same way? For Articulate, above, it seems that there is a context id of "id": "http://6PCAD2rmvIQ_course_id" as grouping and parent, and then the statement activity has a related id of "http://6PCAD2rmvIQ_course_id/5yrWoliCjIl" so I can link the statements to the course using that, but is that always true?

I need to know which course the statements belong to in our LMS so I can bring back completion data, scores etc (next problem, how to do that) ... I could  set a field in our database that links the course id they send to ours 

b8307333736a",
    "authority": {
        "objectType": "Agent",
        "name": "New Client",
        "mbox": "mailto:hello@learninglocker.net"
    },
    "stored": "2016-04-21T16:28:58.811600+00:00",
    "timestamp": "2016-04-21T16:28:58.811600+00:00"
}

Ryan Smith

unread,
Apr 22, 2016, 11:41:00 AM4/22/16
to Learning Locker
You're welcome.

Unfortunately that would be a question you'd have to ask Articulate, since that very much depends on how they send statements. They may also be able to tell you how to add more information to the context such as the course's name if you'd like that in the statement.

Setting a field like that sounds like a good idea. I'd have to understand more about the system to provide any other recommendations, but at that point you might need to ask for some consultancy time from HT2.

Sorry that I couldn't be of any more use for this particular question. In future you may wish to post questions to our Gitter chat room or Github issue/question tracker where you may get more responses, additionally some of the people there may have more experience with Articulate.

Thanks and kind regards,
Ryan
b8307333736a",
    "authority": {
        "objectType": "Agent",
        "name": "New Client",
        "mbox": "mailto:he...@learninglocker.net"
    },
    "stored": "2016-04-21T16:28:58.811600+00:00",
    "timestamp": "2016-04-21T16:28:58.811600+00:00"
}
Reply all
Reply to author
Forward
0 new messages