Rainbird Basics --> Relationship Attributes -->

The questions that Rainbird asks the end-user whilst running a query can be grouped together. Grouping questions together allows the end-user to answer a batch of questions at once. It improves the user experience, and can help unfold a logical stream of questions, enabling any Rainbird designer to handle their models’ questions more accurately. 

Let’s take as an example a simple “match-making” model, where Rainbird will match 2 people together if they share the same favourite activity and have the same age (± 5 years).

If question grouping is not used, here’s how Rainbird will gather the necessary information:

Figure 1: Confusing way of asking questions

Note: the question order depends on the position of the conditions in the rules used to satisfy a query.

To avoid confusion and to create a more meaningful questionnaire, the question grouping option can be used. The questions are separated into two groups – one group containing the questions about Person 1, and the other with all the questions about Person 2.

Now, the questionnaire looks like this :

Figure 2: Structured way of asking questions

Creating question groups

To create question groups, open the relationship settings for the questions to be grouped, and type in a question group name in the “question group” box. In the example model, two groups have been created, called “Person 1” and “Person 2”:

Figure 3: How to create question groups

Notes on question grouping

  • Question grouping will trigger all the questions of the same group even if some are not needed for the logic, or even they should not be triggered at that moment.

     

  • Question group names are case sensitive and group names have to be exactly the same in order for the questions to be correctly grouped.
The RBLang below will generate the example map.Click on ‘Export .rbird’ to download the knowledge map, or ‘copy RBLang’ and paste the code directly into Rainbird.

Query and Results

When viewing the knowledge map generated by the RBLang below, please run the query on the relationship ‘has overall outcome’ to see question grouping in action.

Article Feedback form
Did you find this article useful?

Version 1.01 – Last Update: 16/02/2021

Bitnami