davidpesce / moodle-mod_tincanlaunch

A Moodle plugin that allows the launching of xAPI content using the Rustici Launch Method.
45 stars 41 forks source link

track completion by verb does not check that the object is the specified activity id #209

Closed Getafix-hub closed 1 year ago

Getafix-hub commented 3 years ago

The help with Track completion by verb specifies: Moodle will look for statements where the actor is the current user, the object is the specified activity id and the verb is the one set here. If it finds a matching statement, the activity will be marked complete.

The use case is an xAPI activity which:

In this case, multiple passed / failed statements can be generated within a single activity and the object id must be properly tested to match the desired condition.

Example:

Tincanlaunch configuration Completion tracking: Show activity as complete when conditions are met Activity ID: http://localhost/localcontent/HelloB Track completion by verb: http://adlnet.gov/expapi/verbs/passed

Quiz passed statement: verb id: http://adlnet.gov/expapi/verbs/passed objectType: Activity object id: http://localhost/localcontent/HelloB/quizzes/bqu2bgm3t729-kgs9lqf9hvku

Activity passed based on number of viewed slides score verb id: http://adlnet.gov/expapi/verbs/passed objectType: Activity object id: http://localhost/localcontent/HelloB

davidpesce commented 1 year ago

Resolved via 12ded5d58b4e306e11ffb0e1f9fbe83c7102cbb8