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

PropertyReturnsDescription
attributesMap<String,Object>Extra properties associated with this event. Contains the ModuleFolder under the key "module".
courseCodeStringThe course code of the course containing the module, if the module belongs to a course.
eventIdStringThe persistence-friendly identifier for this event type.
moduleCodeStringThe code of the module containing the quiz.
numAttemptsintThe number of attempts the learner has made at this quiz, inclusive of this attempt.
programCodeStringThe program code of the program containing the module.
sourceProfileProfileThe learner who made the quiz attempt.
triggerItem1StringA concatenated string combining the website name with the program, course and module codes, used as a trigger key.
triggerItem2StringThe name of the quiz that was attempted.
triggerItem3StringWhether the attempt passed the quiz.
triggerItem4StringNot used by this event; always null.
triggerItem5StringNot used by this event; always null.
websiteWebsiteThe website that owns the module containing the quiz.

Inherited from TriggerEvent

Properties

PropertyReturnsDescription
serialisablebooleanWhether 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.