Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registration parameter not sent in doStoreStateDocument #45

Open
jeremyVignelles opened this issue Aug 5, 2021 · 0 comments
Open

registration parameter not sent in doStoreStateDocument #45

jeremyVignelles opened this issue Aug 5, 2021 · 0 comments

Comments

@jeremyVignelles
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant