Skip to content

registration parameter not sent in doStoreStateDocument #45

@jeremyVignelles

Description

@jeremyVignelles

In the StateDocument class, there is a registrationId optional parameter, but it does not seem to be sent to the server in this method:

private function doStoreStateDocument($method, StateDocument $document)
{
$state = $document->getState();
$this->doStoreDocument(
$method,
'activities/state',
array(
'activityId' => $state->getActivity()->getId()->getValue(),
'agent' => $this->actorSerializer->serializeActor($state->getActor()),
'stateId' => $state->getStateId(),
),
$document
);
}

Can the registrationId be sent when calling this method?

Spec : https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Communication.md#23-state-resource

If I understand correctly, this is required for the implementation to be conformant with cmi5 : https://github.com/AICC/CMI-5_Spec_Current/blob/quartz/cmi5_spec.md#101-overview

registration: Registration id representing the LMS learner enrollment in the course. This MUST match the registration used by the LMS at AU launch time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions