Calculation rule: Input relevance and validation
Relevance
andCondition
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.Relevance
can have a value of“True”
or”False”
:if
“True”
the input is to be displayedif
”False”
the input should remain hidden
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”
Value of relevance is a
boolean
value and if:true
, then calculation parameter input is displayed andcondition
is evaluated to determine the validity of the input