Sending a response to tasks
Hi, I created my own content type / library without using the ready-made h5p libraries, is there any way to send the answer to the problem to the Moodle database, so that the teacher can then look at the students' solutions?
As far as I understand, h5p assignments are usually checked immediately (that is, when the assignment is loaded, the teacher adds the answers, with which the students' solutions are compared), after which the student is immediately given the result. But I need to make it so that the teacher can then personally look at the students' answers and then give a grade. is it possible to do this?
otacke
Wed, 05/19/2021 - 22:14
Permalink
Hi Frank!That's what xAPI is
Hi Frank!
That's what xAPI is used for in most content types. The xAPI statements they emit in combination with implementing the getXAPIData function are used to fuel moodle's gradebook by both, the H5P plugin for moodle and moodle's integration - and other platforms as well.
Best,
Oliver
Frank Gr.
Thu, 05/20/2021 - 15:36
Permalink
The problem is that I did not
The problem is that I did not use the ready-made H5P libraries, and I saw in the documentation that xAPI is used only for certain types of content. Maybe I am misunderstanding and it is possible to use xAPI for my own content types?
otacke
Thu, 05/20/2021 - 16:07
Permalink
Hi Frank!Not sure what you
Hi Frank!
Not sure what you mean by "ready-made H5P libraries", but if you have a look at the prototype chain that your content type has inherited from, you'll find the trigger function from H5P.EventDispatcher that can emit xAPI events.It's up to you if you use H5P.XAPIEvent from H5P core to build an appropriate event or to handle that yourself - you'll most likely have to add your own definition anyway. Just have a look at how other content types do that, and remember to implement the getXAPIData function.
Best,
Oliver
BV52
Thu, 05/20/2021 - 17:50
Permalink
Hi Frank,Just waht Oliver has
Hi Frank,
Just waht Oliver has mentioned. You can check how Free Text Question inside Interactive Video has been implemented. It is a content type that does not check the answers automatically but instead generates the reponse to be checked manually.
Thanks Oliver ;-)
-BV
otacke
Thu, 05/20/2021 - 17:56
Permalink
Hi all! Free Text Question
Hi all!
Free Text Question uses the very same xAPI mechanism that I referred to. The only difference is that the result property doesn't define a score.
Best,
Oliver