Wiki source code of Auswertung der Versuchsanzahl
Last modified by Anna Paul-Hasenfuss on 26.02.2024
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | Expert rules let you evaluate the **number of attempts** of an assessable course element and thus control the visibility and access to other course sections. To do this, use the expert rule** getAttempts**. For each course element type, the return value of this expert rule shows the following value: | ||
2 | |||
3 | * Course elements of the type **Test, Self-test, and Survey**: the number of started attempts. | ||
4 | * Course elements of the type **Task**: the number of submitted files. | ||
5 | * Course element **Portfolio Task**: the number of submitted Portfolio Tasks. | ||
6 | |||
7 | Another possibility is to transfer the number of attempts to an Onyx test. For more information, see the section [[Variables>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kursbausteine.Test.KB Test Konfiguration.KB Test - Variablen.WebHome]] on the course element test. | ||
8 | |||
9 | {{info}} | ||
10 | All of the following example rules can be created for both the **visibility** and **access** of a course element. To simplify matters, only one scenario is described in each of the following examples. To learn more about the difference between visibility and access, see the page [[Publishing within courses (visibility and access)>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kurs.Freigabe von Kursen und Kursinhalten.Freigabe innerhalb von Kursen Sichtbarkeit und Zugang.WebHome||shape="rect"]]. | ||
11 | {{/info}} | ||
12 | |||
13 | In all of the following examples, specific course elements are used. Before using these rules, note down the course element IDs of the relevant course elements for your scenario and adjust them accordingly in the expert rules. | ||
14 | |||
15 | |||
16 | (% class="relative-table wrapped" style="width:100.0%" %) | ||
17 | |=(% colspan="1" %)(% colspan="1" %) | ||
18 | ((( | ||
19 | Syntax in General | ||
20 | )))|=(% colspan="1" %)(% colspan="1" %) | ||
21 | ((( | ||
22 | Example of an expert rule | ||
23 | )))|=(% colspan="1" %)(% colspan="1" %) | ||
24 | ((( | ||
25 | Result of this rule | ||
26 | ))) | ||
27 | |(% rowspan="2" %)(% rowspan="2" %) | ||
28 | ((( | ||
29 | //getAttempts("//[integer]//")// | ||
30 | )))|(% colspan="1" %)(% colspan="1" %) | ||
31 | ((( | ||
32 | getAttempts("70323786958847") > 0 | ||
33 | )))|((( | ||
34 | The course element becomes visible as soon as the respective course participant has started the course element test (course element ID "70323786958847") for the first time. | ||
35 | ))) | ||
36 | |(% colspan="1" %)(% colspan="1" %) | ||
37 | ((( | ||
38 | getAttempts("70323524635734") <= 3 | ||
39 | )))|((( | ||
40 | If used in the visibility tab, participants should no longer be able to see a course element as soon as they have placed more than 3 files in the drop box of a course element task (course element ID "70323524635734"). | ||
41 | ))) | ||
42 | |||
43 | Create additional rules by using expert syntax. A tabular overview is provided on the page [[Expert syntax>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kurs.Freigabe von Kursen und Kursinhalten.Expertenmodus zur Freigabe innerhalb von Kursen.Expertensyntax.WebHome]]. |