Control Steps
Definitions
Control Step are Questions defined on Controls. These questions are not linked directly to a Questionnaire Template but on the Controls or the Control MetaClass. There are two types of Control Steps:
- Specific Control Steps: Theses Steps are defined directly on the Control, that means that they will be displayed in the context of Assessment Nodes where the assessed object is this control.
- Global Control Steps: Theses Steps are defined on the MetaClass Control, that means that they will be displayed in the context of assessment nodes where the assessed object is a Control.
Use of Control Steps in values computation
In case of use of Controls Steps, the Macros of Scoring Rules must define another signature to take into account values from these Steps. The signature used is:
'Sub dynamicCompute(scoringRuleInformation)
'End Sub
scoringRuleInformation: An object containing these information:
- scoringRuleInformation.getMgobjScoringRule: The current Scoring Rule
- scoringRuleInformation.getMgobjAssessedValue: The Assessed Value to compute
- scoringRuleInformation.getMgobjValueContext: The Measure Value of the current Assessed Value
- scoringRuleInformation.getMgcolAnswers: The list of Answers collected from the questions of the Questionnaire Template.
- scoringRuleInformation.getMgcolAssAnswers: The list of Answers collected from the Control Steps of the Control (the Assessed object of the current assessment node).
- scoringRuleInformation.getMgcolMCAnswers: The list of Answers collected from the Control Steps of the MetaClass Control.
- scoringRuleInformation.getDblValue: The value computed by applying the Scoring Rule defined on Control Steps of the Control (the Assessed object of the current assessment node).
- scoringRuleInformation.getDblValueAss: The value computed by applying the Scoring Rule defined on Control Steps of the MetaClass Control
To tell the Questionnaire Template to display the Control Steps, a Question Group of type ‘Specific' must be defined on the Questionnaire Template and linked the Assessment Motivation ‘Control Step'.
Control Steps are defined either on Control or on the MetaClass Control:
They are collected in a Question Group which must be linked to the Assessment Motivation ‘Control Step'.
The Question Group can also define Scoring Rules to compute values for its Control Steps.
The Macro of these Scoring Rules must define a method named ‘specificCompute' with this signature:
Sub specificCompute(scoringRuleInformation)
End Sub
In this macro you can fill the double parameter (setDblValueAss for the Control Steps on the Control, setDblValue for the Control Steps on MetaClass Control) or the list of Answers (getMgcolAssAnswers for the Control Steps on Control, getMgcolMCAnswers for the Control Steps on MetaClass Control).