Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
d14e3289
d14e3289
Scroll pdf index term
secondaryVisibility
tertiaryAccess
primaryExpert Mode
Introduction to Expert Rules

In the tabs "Visibilty" and "Access", you can configure additional preferences for many course elements. For instance, you can block a course element for learners, grant access only for certain groups or unlock it depending on the date. 

In case of more complicated visibility or access rules you can use the expert mode, thus enabling you to configure visibility and access of course elements as required. You can e.g. limit access to a course element to specific user names, link several types of restrictions to each other or work with relative date values. The following example illustrates this:

Panel
Expand
titlequestionnaire example

Sie wollen einen Kursfragebogen erst in der letzter letzten Kurswoche frei schalten, möchten diese Option aber schon mal einrichten, damit Sie es später nicht vergessen. 

Sie schalten also den Kursbaustein „Fragebogen“ datumsabhängig frei, damit Sie sich im Kursverlauf nicht mehr darum kümmern müssen. In den Tabs Sichtbarkeit und Zugang des „Fragebogens“ können Sie hierfür im einfachen Modus das Anfangs- und Enddatum eingeben. Sie können Ihren Fragebogen auch nur für eine bestimmte Teilnehmergruppe zugängig machen. Wählen Sie hierfür unter Sichtbarkeit bzw. Zugang ergänzend "Gruppenabhängig". So könnten Sie z.B. bei institutionsübergreifenden Online-Kursen zwei unterschiedliche Fragebögen verwenden. Voraussetzung ist lediglich, dass Sie die Kursteilnehmenden in (zwei) unterschiedliche Gruppen geteilt haben die sie nun zuweisen können.

Ein etwas komplexeres Beispiel mit genauer Angabe der Expertenregel finden Sie hier.

You have created the course element "Questionnaire“ and unlocked it depending on fixed calendar dates, so that you need not worry about it during your course. In the simple mode, you can enter the exact begin and end dates of the "Questionnaire“ in the tabs visibility and access. Should you want to use the same course again in another term, you must change these calendar dates to unlock the "Questionnaire“. This is managable if only few course elements are governed by rules like this. Should you have more rules of this kind, expert rules can assist you: all you need to do is enter a relative date in your course element to refer to the beginning or end date of your course.

In simple words, you do not unlock the "Questionnaire“ from 20.07.2016 to 27.07.2016. Instead, you grant access from the "course end date“ (20.07.2016) to the "course end date plus 7 days“ (27.07.2016) - thus defining the exact period during which the course element is accessible. If you use this course again, all you need to do is change the course begin and end dates. You will find the exact expert rule of this scenario  explained in the topic Questionnaire in chapter 12, "How to…."

Expert rules primarily serve to save you time and work or just simplify it. Therefore, it is worth the effort to take a closer look at them. Just like any language, expert rules follow a syntax. OpenOLAT will indicate an error should you make a syntactic mistake. This is very helpful, especially at the beginning if one does not have any or just little programming skills. Expert rules verify if a certain attribute is TRUE or FALSE. 

As an introduction to the syntax of expert rules, you should at first define a rule in the simple mode. For example, you may generate a "single page“, and click on "Blocked for learners“ in the "Access" tab.

Then click on "Display expert mode“ and see your first expert rule:

(  ( isCourseCoach(0) | isCourseAdministrator(0) ) )


The whole term is enclosed in double brackets. The two outer brackets can be omitted in this case. Just try it out. The vertical line in the center "|“ is the Boolean operator OR and connects the course coach with the course administrator. Both of them have exclusive access to the "single page“.

Now change the Boolen Operator into "&“:

isCourseCoach(0) & isCourseAdministrator(0)


This rule grants access exclusively to those course coaches who are also course administrators. This preference is only possible in the expert mode.

You can try out any number of scenarios and insert further attributes and operators. In this chapter you will find further attributes and examples illustrating their meaning to help you become more acqainted with expert rules.

...