Note: You are currently viewing documentation for Moodle 3.7. Up-to-date documentation for the latest stable version of Moodle may be available here: Dynamic rules.

Dynamic rules: Difference between revisions

From MoodleDocs
No edit summary
(Initial draft adapted from transcript of video)
Line 1: Line 1:
{{Workplace}}
{{Workplace}}


= Overview=
The dynamic rules feature allows you to create “if this then that” rules based on one or more conditions to execute the selected actions. Each plug-in implements its own conditions and actions to be used in any dynamic rule. Other workplace features make use of dynamic rules to automate some of their actions, like issuing badges or certificates, or granting competences.
{{MediaPlayer | url = https://youtu.be/SZAcx6ZSomI | desc = Moodle Workplace | Training | Dynamic Rules}}
{{MediaPlayer | url = https://youtu.be/SZAcx6ZSomI | desc = Moodle Workplace | Training | Dynamic Rules}}


= Accessing dynamic rules =
Dynamic rules can be accessed from the Workplace launcher, and then by clicking the plus and giving the rule a name.


''Information coming soon...''
= Conditions =
We tick the “enable matching frequency limitation” option to limit how many times this rule will be triggered in a certain period.
 
For example, let's say that this rule cannot be triggered more than once in one hour. On the left side of the tab, conditions, we'll find a listing of predefined conditions for each entity that can be evaluated in order to trigger some actions. Each condition and action has its own editable properties. For example, using the drop down menus let’s select users from the Department “Europe” and who have completed the onboarding program. Once they're configured properly we click on “Save Changes”.
 
We can always come back later and change or delete these settings using the options on the element in the top right corner.
 
= Viewing users who meet conditions =
At the very bottom of the page, we can check how many users would meet these conditions, and by clicking on “view matching users” we can easily check the complete user listing.
 
= Actions tab =
Now let's switch to the actions tab, to define what we want to happen when the conditions are met. In this example, we want to allocate the users to “health and safety certification” so we click or drag and drop the allocate users to “certification action” and configure it accordingly.
 
= Activating a rule =
Now that the rule is configured properly, we can activate it by clicking on the toggle next to its name, and before enabling it will get a notification to remind us of how many users will be affected by the rule. We click “enable” and the rule will start working instantly.

Revision as of 23:07, 1 August 2019

workplacelogo.png This feature is part of Moodle Workplace, which is available through Moodle Partners.


Overview

The dynamic rules feature allows you to create “if this then that” rules based on one or more conditions to execute the selected actions. Each plug-in implements its own conditions and actions to be used in any dynamic rule. Other workplace features make use of dynamic rules to automate some of their actions, like issuing badges or certificates, or granting competences.

Moodle Workplace

Accessing dynamic rules

Dynamic rules can be accessed from the Workplace launcher, and then by clicking the plus and giving the rule a name.

Conditions

We tick the “enable matching frequency limitation” option to limit how many times this rule will be triggered in a certain period.

For example, let's say that this rule cannot be triggered more than once in one hour. On the left side of the tab, conditions, we'll find a listing of predefined conditions for each entity that can be evaluated in order to trigger some actions. Each condition and action has its own editable properties. For example, using the drop down menus let’s select users from the Department “Europe” and who have completed the onboarding program. Once they're configured properly we click on “Save Changes”.

We can always come back later and change or delete these settings using the options on the element in the top right corner.

Viewing users who meet conditions

At the very bottom of the page, we can check how many users would meet these conditions, and by clicking on “view matching users” we can easily check the complete user listing.

Actions tab

Now let's switch to the actions tab, to define what we want to happen when the conditions are met. In this example, we want to allocate the users to “health and safety certification” so we click or drag and drop the allocate users to “certification action” and configure it accordingly.

Activating a rule

Now that the rule is configured properly, we can activate it by clicking on the toggle next to its name, and before enabling it will get a notification to remind us of how many users will be affected by the rule. We click “enable” and the rule will start working instantly.