Use Case 11: A student submits a quiz from Quizzes.Next

Document created by Oxana Jurosevic Administrator on Oct 16, 2018Last modified by Oxana Jurosevic Administrator on Oct 17, 2018
Version 2Show Document
  • View in full screen mode

Back to:  Table of Contents 

A student submits a quiz from Quizzes.Next

 

Use Case: A student launches a Quizzes.Next auto-graded assignment and answers all the questions.

 

Outcome: When a user submits an assignment through the Quizzes.Next LTI, the following chain of the events are issued.

 

Sent

2018-09-21 11:51:12 GMT-06:00 submission created

2018-09-21 11:51:13 GMT-06:00 grade_change

2018-09-21 11:51:18 GMT-06:00 submission_updated

 

Event 1: submission_created

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-21T13:37:11.868Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:f502feda-706b-47b6-94ab-b31dd83c1deb",

     "type": "AssignableEvent",

     "actor": {

       "id": "urn:instructure:canvas:user:21070000000000048",

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "root_account_id": "21070000000000001",

           "root_account_lti_guid": "7db438071375c02373713c12c73869ff2f470b68.oxana.instructure.com",

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "21070000000000048"

         }

       }

     },

     "action": "Submitted",

     "object": {

       "id": "urn:instructure:canvas:submission:21070000000011096",

       "type": "Attempt",

       "dateCreated": "2018-09-21T17:51:11.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "submission_type": "basic_lti_launch",

           "url": "https://oxana.quiz-lti-iad-prod.instructure.com/lti/launch?participant_session_id=3&quiz_session_id=3",

           "entity_id": "21070000000011096"

         }

       },

       "assignee": {

         "id": "urn:instructure:canvas:user:21070000000000048",

         "type": "Person"

       },

       "assignable": {

         "id": "urn:instructure:canvas:assignment:21070000000000365",

         "type": "AssignableDigitalResource"

       },

       "count": 1

     },

     "eventTime": "2018-09-21T17:51:11.000Z",

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "ec6f9753-1dd8-49a3-931a-77c1ee2fd868",

         "user_agent": "OAuth gem v0.5.3",

         "version": "1.0.0"

       }

     }

   }

 ]

}

 

Event 2: grade_change

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-21T13:43:49.241Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:105c8ca9-2c85-4b30-8fc8-e667afcc0e54",

     "type": "GradeEvent",

     "actor": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "action": "Graded",

     "object": {

       "id": "urn:instructure:canvas:submission:21070000000011096",

       "type": "Attempt",

       "extensions": {

         "com.instructure.canvas": {

           "grade": "10",

           "entity_id": "21070000000011096"

         }

       },

       "assignee": {

         "id": "urn:instructure:canvas:user:21070000000000048",

         "type": "Person",

         "extensions": {

           "com.instructure.canvas": {

             "sis_id": "Test2"

           }

         }

       },

       "assignable": {

         "id": "urn:instructure:canvas:assignment:21070000000000365",

         "type": "AssignableDigitalResource"

       }

     },

     "eventTime": "2018-09-21T17:51:12.000Z",

     "generated": {

       "id": "urn:instructure:canvas:submission:21070000000011096",

       "type": "Score",

       "extensions": {

         "com.instructure.canvas": {

           "grade": "10",

           "entity_id": "21070000000011096"

         }

       },

       "attempt": {

         "id": "urn:instructure:canvas:submission:21070000000011096",

         "type": "Attempt",

         "extensions": {

           "com.instructure.canvas": {

             "grade": "10"

           }

         },

         "assignee": {

           "id": "urn:instructure:canvas:user:21070000000000048",

           "type": "Person",

           "extensions": {

             "com.instructure.canvas": {

               "sis_id": "Test2"

             }

           }

         },

         "assignable": {

           "id": "urn:instructure:canvas:assignment:21070000000000365",

           "type": "AssignableDigitalResource"

         }

       },

       "maxScore": {

         "numberStr": "10.0"

       },

       "scoreGiven": {

         "numberStr": "10.0"

       }

     },

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "group": {

       "id": "urn:instructure:canvas:course:21070000000000565",

       "type": "CourseOffering",

       "extensions": {

         "com.instructure.canvas": {

           "context_type": "Course",

           "entity_id": "21070000000000565"

         }

       }

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "ec6f9753-1dd8-49a3-931a-77c1ee2fd868",

         "user_agent": "OAuth gem v0.5.3",

         "version": "1.0.0"

       }

     }

   }

 ]

}

 

Event 3: submission_updated

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-21T11:08:08.800Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:664a9636-cd7b-4258-b183-3ad85ade4fc8",

     "type": "Event",

     "actor": {

       "id": "urn:instructure:canvas:user:21070000000000048",

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "root_account_id": "21070000000000001",

           "root_account_lti_guid": "7db438071375c02373713c12c73869ff2f470b68.oxana.instructure.com",

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "21070000000000048"

         }

       }

     },

     "action": "Modified",

     "object": {

       "id": "urn:instructure:canvas:submission:21070000000011096",

       "type": "Attempt",

       "dateModified": "2018-09-21T17:51:11.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "submission_type": "basic_lti_launch",

           "url": "https://oxana.quiz-lti-iad-prod.instructure.com/lti/launch?participant_session_id=3&quiz_session_id=3",

           "entity_id": "21070000000011096"

         }

       },

       "assignee": {

         "id": "urn:instructure:canvas:user:21070000000000048",

         "type": "Person"

       },

       "assignable": {

         "id": "urn:instructure:canvas:assignment:21070000000000365",

         "type": "AssignableDigitalResource"

       },

       "count": 1

     },

     "eventTime": "2018-09-21T17:51:12.000Z",

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "ec6f9753-1dd8-49a3-931a-77c1ee2fd868",

         "user_agent": "OAuth gem v0.5.3",

         "version": "1.0.0"

       }

     }

   }

 ]

}

 

A second attempt is submitted for the Quizzes.Next assignment

 

Use Case: A student resubmits to a Quizzes.Next assignment by going into the quiz and making a second attempt.

 

Outcome: We issue the following chain of events: submisison_created, grade_change, submission_updated.

 

Event 1: Grade_change

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-21T16:09:44.023Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:6873eef0-eea6-4848-b501-71584c4d50fc",

     "type": "GradeEvent",

     "actor": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "action": "Graded",

     "object": {

       "id": "urn:instructure:canvas:submission:21070000000011096",

       "type": "Attempt",

       "extensions": {

         "com.instructure.canvas": {

           "grade": "0",

           "entity_id": "21070000000011096"

         }

       },

       "assignee": {

         "id": "urn:instructure:canvas:user:21070000000000048",

         "type": "Person",

         "extensions": {

           "com.instructure.canvas": {

             "sis_id": "Test2"

           }

         }

       },

       "assignable": {

         "id": "urn:instructure:canvas:assignment:21070000000000365",

         "type": "AssignableDigitalResource"

       }

     },

     "eventTime": "2018-09-21T18:49:17.000Z",

     "generated": {

       "id": "urn:instructure:canvas:submission:21070000000011096",

       "type": "Score",

       "extensions": {

         "com.instructure.canvas": {

           "grade": "0",

           "entity_id": "21070000000011096"

         }

       },

       "attempt": {

         "id": "urn:instructure:canvas:submission:21070000000011096",

         "type": "Attempt",

         "extensions": {

           "com.instructure.canvas": {

             "grade": "0"

           }

         },

         "assignee": {

           "id": "urn:instructure:canvas:user:21070000000000048",

           "type": "Person",

           "extensions": {

             "com.instructure.canvas": {

               "sis_id": "Test2"

             }

           }

         },

         "assignable": {

           "id": "urn:instructure:canvas:assignment:21070000000000365",

           "type": "AssignableDigitalResource"

         }

       },

       "maxScore": {

         "numberStr": "10.0"

       },

       "scoreGiven": {

         "numberStr": "0.0"

       }

     },

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "group": {

       "id": "urn:instructure:canvas:course:21070000000000565",

       "type": "CourseOffering",

       "extensions": {

         "com.instructure.canvas": {

           "context_type": "Course",

           "entity_id": "21070000000000565"

         }

       }

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "c8dd8717-c266-48aa-95c0-ccd570be07ce",

         "user_agent": "OAuth gem v0.5.3",

         "version": "1.0.0"

       }

     }

   }

 ]

}

 

Event 2: submission_created

 

/// we are issuing a submission_created message when we should only send submission_updated. There isn’t a new submission, it’s second attempt with same submission id.

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-21T13:29:05.346Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:c02b4820-219f-4883-a57b-008130588f4b",

     "type": "AssignableEvent",

     "actor": {

       "id": "urn:instructure:canvas:user:21070000000000048",

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "root_account_id": "21070000000000001",

           "root_account_lti_guid": "7db438071375c02373713c12c73869ff2f470b68.oxana.instructure.com",

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "21070000000000048"

         }

       }

     },

     "action": "Submitted",

     "object": {

       "id": "urn:instructure:canvas:submission:21070000000011096",// submission ID is identical to the previous one ( there is only one submission per quiz), so it’s not a new submission rather the submission_update, but we are issuing submission created  event

       "type": "Attempt",

       "dateCreated": "2018-09-21T18:49:17.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "submission_type": "basic_lti_launch",

           "url": "https://oxana.quiz-lti-iad-prod.instructure.com/lti/launch?participant_session_id=5&quiz_session_id=5",

           "entity_id": "21070000000011096"

         }

       },

       "assignee": {

         "id": "urn:instructure:canvas:user:21070000000000048",

         "type": "Person"

       },

       "assignable": {

         "id": "urn:instructure:canvas:assignment:21070000000000365",

         "type": "AssignableDigitalResource"

       },

       "count": 3

     },

     "eventTime": "2018-09-21T18:49:17.000Z",

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "c8dd8717-c266-48aa-95c0-ccd570be07ce",

         "user_agent": "OAuth gem v0.5.3",

         "version": "1.0.0"

       }

     }

   }

 ]

}

 

Event 3: submission_updated

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-21T13:43:49.241Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:be908600-9be8-4339-a9f7-4371fee0d783",

     "type": "Event",

     "actor": {

       "id": "urn:instructure:canvas:user:21070000000000048",

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "root_account_id": "21070000000000001",

           "root_account_lti_guid": "7db438071375c02373713c12c73869ff2f470b68.oxana.instructure.com",

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "21070000000000048"

         }

       }

     },

     "action": "Modified",

     "object": {

       "id": "urn:instructure:canvas:submission:21070000000011096",

       "type": "Attempt",

       "dateModified": "2018-09-21T18:49:17.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "submission_type": "basic_lti_launch",

           "url": "https://oxana.quiz-lti-iad-prod.instructure.com/lti/launch?participant_session_id=5&quiz_session_id=5",

           "entity_id": "21070000000011096"

         }

       },

       "assignee": {

         "id": "urn:instructure:canvas:user:21070000000000048",

         "type": "Person"

       },

       "assignable": {

         "id": "urn:instructure:canvas:assignment:21070000000000365",

         "type": "AssignableDigitalResource"

       },

       "count": 3

     },

     "eventTime": "2018-09-21T18:49:17.000Z",

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "c8dd8717-c266-48aa-95c0-ccd570be07ce",

         "user_agent": "OAuth gem v0.5.3",

         "version": "1.0.0"

       }

     }

   }

 ]

}

Back to:  Table of Contents 

Attachments

    Outcomes