/
Calculation rule: Input relevance and validation

Calculation rule: Input relevance and validation

  1. Relevance and Condition properties of calculation rules (example: contribution plan calcrule : percentage of income | list of impacted class and parameters) have to be considered when displaying calculation parameters inputs.

  2. Relevance can have a value of “True” or ”False”:

    1. if “True” the input is to be displayed

    2. if ”False” the input should remain hidden

  3. Condition stores a validation formula of a to-be-defined structure. This formula should be used to validate the input and block saving the calculation parameter which turns out to be invalid. A structure of the stored string has to be defined. It will have to be followed when creating new calculation rules.

Selected approach for handling “relevance”

  1. Value of relevance is a boolean value and if:

    1. true, then calculation parameter input is displayed and condition is evaluated to determine the validity of the input