The "result" value can be either true or false, though this determination is largely arbitrary - which outcome it is only affects the typology processor in the following way. In the typology processor, according to the typology configuration:
the value of the result attribute that is received from the rule processor is translated into a typology score. If the value is "true", the score associated with "true" is used. If the value is "false", the score associated with "false" is used.
Essentially, this processing is redundant. The typology processor knows that a specific rule's result has been delivered because it exists. The typology processor will receive a result ("subRuleRef") from the rule ("id" and "cfg"). whether it is true or false is irrelevant. All the typology processor needs to do is map the fact that it received the reference from the rule to a value directly.
Acceptance criteria:
Drop the "result" attribute from all rule results
Replace the "true" and "false" attributes in the typology configuration with a single "weight" attribute.
When a rule result (id, cfg and subRuleRef) is received from a rule processor, map it directly to the "weight" value.
Background
Every rule processor delivers a rule result in the format:
The "result" value can be either true or false, though this determination is largely arbitrary - which outcome it is only affects the typology processor in the following way. In the typology processor, according to the typology configuration:
the value of the result attribute that is received from the rule processor is translated into a typology score. If the value is "true", the score associated with "true" is used. If the value is "false", the score associated with "false" is used.
Essentially, this processing is redundant. The typology processor knows that a specific rule's result has been delivered because it exists. The typology processor will receive a result ("subRuleRef") from the rule ("id" and "cfg"). whether it is true or false is irrelevant. All the typology processor needs to do is map the fact that it received the reference from the rule to a value directly.
Acceptance criteria: