Defining Answer Computation Rules
Scoring rules indicate how the answers to a questionnaire populate the characteristics of assessed objects.
A scoring rule enables to select:
the characteristics the rule applies to
the question(s) to use for computation
a computation logic
A characteristic can be connected to several scoring rules.
Creating Scoring Rules
To create a scoring rule:
1. Open a questionnaire template properties.
2. Click New in the lower part of the page.
3. Select the characteristics of the object this rule applies to.
4. Select the question(s) to use in the computation.
5. Select the rule logic. It can be of two types:
Answer value
This logic avoids using a specific macro and can be used in simple cases.
Macro
*For more details, see Using Macros.
Using Macros
It is possible to use a macro to compute the value of a characteristic.
*For more details on macros, see All about starting with APIs.
Creating a macro
To create a macro:
1. Open the properties of the scoring rule.
2. Click the arrow on the right and select Create Macro.
3. Select the Macro type you want to use:
4. Click Next.
5. If you want to reuse the macro in another scoring rule, click Reusable.
6. Click OK.
Examples of macros used in HOPEX GRC
HOPEX GRC uses the following macro by default: “Compute average among one or more answers”
Other macros are available:
 
Macro
Explanations
Compute average among one or more answers
This macro aggregates one or more answers of a given question, computing the average of the answer internal values.
The result is used to obtain a unique answer, which is the one whose internal value is the closest to the computed average.
In case of conflict, the algorithm returns the answer with the smallest internal value.
Compute max among one or more answers
This macro aggregates one or more answers of a given question, returning the answer with the biggest internal value.
Compute min among one or more answers
This macro aggregates one or more answers of a given question, returning the answer with the smallest internal value.
Control Level Scoring Rule
Macro used for questions related to control level
OK/KO Scoring Rule
Macro used for questions of "OK/KO” type.