Built-in RecognitionPointsRuleType which awards points as a simple multiple of the participant's achieved value, plus an optional flat amount. Registered under the id "mult". An admin configures it with a multiplier, an amount to add, an optional lowest rank cut-off, and flags to cap the counted value to the current level's band. It has no JS dependency, unlike JsRecognitionPointsRuleType.

Implements: RecognitionPointsRuleType


Properties

PropertyReturnsDescription
fieldsList<ExtraField>The extra fields shown to an admin when configuring this rule: the multiplier, the amount to add, the lowest rank cut-off, and the two capping flags.
idStringUnique identifier for this rule type.
titleStringDisplay title for this rule type, shown to an admin choosing a points rule.

Inherited from RecognitionPointsRuleType

Methods

buildDescription(Map<String,String> ruleParams)

Returns: String

Builds a short human-readable summary of the given configuration, formatted as "key=value; " pairs for each non-blank parameter, or "No configuration" if there are no parameters set. Used to show an admin what a configured rule does without opening its edit form.

ParameterDescription
ruleParamsthe configured parameter values for this rule type, may be null or empty

parseParamStringToMap(BaseRecognition recog)

Returns: Map<String,String>

Convenience method that decodes the given recognition's stored pointsRuleConfig string into the parameter map expected by calcPoints and buildDescription.

ParameterDescription
recogthe recognition whose points rule configuration is decoded

Methods

getId()

Returns: String

Unique identifier for this rule type.

getTitle()

Returns: String

Display title for this rule type, shown to an admin choosing a points rule.

getFields()

Returns: List<ExtraField>

The extra fields shown to an admin when configuring this rule: the multiplier, the amount to add, the lowest rank cut-off, and the two capping flags.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.