Fired when a learner submits an attempt at a quiz within a learning module, whether the attempt passed or failed. Raised by QuizService after grading the attempt. The attributes map contains the ModuleFolder under the key "module", and getNumAttempts reports how many attempts the learner has made at the quiz including this one.
Implements: TriggerEvent
Properties
| Property | Returns | Description |
|---|---|---|
| attributes | Map<String,Object> | Extra properties associated with this event. Contains the ModuleFolder under the key "module". |
| courseCode | String | The course code of the course containing the module, if the module belongs to a course. |
| eventId | String | The persistence-friendly identifier for this event type. |
| moduleCode | String | The code of the module containing the quiz. |
| numAttempts | int | The number of attempts the learner has made at this quiz, inclusive of this attempt. |
| programCode | String | The program code of the program containing the module. |
| sourceProfile | Profile | The learner who made the quiz attempt. |
| triggerItem1 | String | A concatenated string combining the website name with the program, course and module codes, used as a trigger key. |
| triggerItem2 | String | The name of the quiz that was attempted. |
| triggerItem3 | String | Whether the attempt passed the quiz. |
| triggerItem4 | String | Not used by this event; always null. |
| triggerItem5 | String | Not used by this event; always null. |
| website | Website | The website that owns the module containing the quiz. |
Inherited from TriggerEvent
Properties
| Property | Returns | Description |
|---|---|---|
| serialisable | boolean | Whether this event's attributes were built to survive being persisted, ie every value is a plain serialisable value rather than a persistent entity or some other object that only makes sense inside the firing transaction. Only the firing app can know this, so it declares it - see EventBuilder. An agent that subscribes to an event does not run when it fires. The event is written to storage as JSON, buffered with others, and read back minutes later in a different session, so a value that cannot be written and read back is not merely awkward, it breaks the whole delivery. The agent framework therefore ignores any event which does not say yes here. |
Methods
isSerialisable()
Returns: boolean
Whether this event's attributes were built to survive being persisted, ie every value is a plain serialisable value rather than a persistent entity or some other object that only makes sense inside the firing transaction. Only the firing app can know this, so it declares it - see EventBuilder. An agent that subscribes to an event does not run when it fires. The event is written to storage as JSON, buffered with others, and read back minutes later in a different session, so a value that cannot be written and read back is not merely awkward, it breaks the whole delivery. The agent framework therefore ignores any event which does not say yes here.
Methods
getSourceProfile() · getEventId() · getWebsite() · getProgramCode() · getCourseCode() · getModuleCode() · getTriggerItem1() · getTriggerItem2() · getTriggerItem3() · getTriggerItem4() · getTriggerItem5() · getAttributes() · getNumAttempts()
getSourceProfile()
Returns: Profile
The learner who made the quiz attempt.
getEventId()
Returns: String
The persistence-friendly identifier for this event type.
getWebsite()
Returns: Website
The website that owns the module containing the quiz.
getProgramCode()
Returns: String
The program code of the program containing the module.
getCourseCode()
Returns: String
The course code of the course containing the module, if the module belongs to a course.
getModuleCode()
Returns: String
The code of the module containing the quiz.
getTriggerItem1()
Returns: String
A concatenated string combining the website name with the program, course and module codes, used as a trigger key.
getTriggerItem2()
Returns: String
The name of the quiz that was attempted.
getTriggerItem3()
Returns: String
Whether the attempt passed the quiz.
getTriggerItem4()
Returns: String
Not used by this event; always null.
getTriggerItem5()
Returns: String
Not used by this event; always null.
getAttributes()
Returns: Map<String,Object>
Extra properties associated with this event. Contains the ModuleFolder under the key "module".
getNumAttempts()
Returns: int
The number of attempts the learner has made at this quiz, inclusive of this attempt.