In a course, go to
test / ►Reports / ►Event monitoring rules
And create a rule with details:-
Plugin:-Book
Event:- chapter viewed
Frequency:- 5 in 5 minute
Fill in the rest fields as you like
Now go to My profile settings / ►Event monitoring and subscribe to the rule you just created with "All modules" as the option in the drop down.
Now visit a chapter exactly 7 times in the same course.
Run cron.
Make sure you get only one notification for the rule in your messages.
Run unit tests in tool_monitor
PS:- You might want to configure your message setting to set how you want these notifications to be delivered (via email / popup msg/etc)
In a course, go to
test / ►Reports / ►Event monitoring rules
And create a rule with details:-
Plugin:-Book
Event:- chapter viewed
Frequency:- 5 in 5 minute
Fill in the rest fields as you like
Now go to My profile settings / ►Event monitoring and subscribe to the rule you just created with "All modules" as the option in the drop down.
Now visit a chapter exactly 7 times in the same course.
Run cron.
Make sure you get only one notification for the rule in your messages.
Run unit tests in tool_monitor
PS:- You might want to configure your message setting to set how you want these notifications to be delivered (via email / popup msg/etc)
As raised on MDL-47171 and a few times on scrum, we need to decide on how often do we want to send emails when rule criteria is met.