GLOBALMODEL

Defines a global model that is shared across modules or execution contexts. A GLOBAL MODEL behaves like a standard model but is declared at module scope and may be referenced, reused, or inherited by other models.

Properties of GLOBALMODEL

NameTypeDescription
TitleSTRINGThe unique name
EnabledBOOLEANControls whether the rule participates in evaluation. Rules are enabled by default;
MaxResultsINT32Specifies the maximum number of results that may be emitted. This is a hard cap enforced after ranking and filtering.
RankingModeenumRankingModeDetermines how evaluated candidates are ranked before selection. Confidence ranks by confidence score, Proximity ranks by feature closeness, and Priority ranks by declared priority.
MinConfidenceNULLABLE`1Optional minimum confidence required for a candidate to be considered. If not specified, all confidence levels are allowed.
RequireTruthBOOLEANIndicates whether a candidate must evaluate to true in order to be considered eligible for output.
TieBreakerApproachenumTieBreakerApproachSpecifies the approach used to resolve ties when multiple candidates have equal ranking values.

Syntax

	GLOBAL MODEL <ModelName>

Examples

	

MODULE

        GLOBALMODEL   'CustomerRiskModel - Global'       

            RULES
                RULE DefaultRisk
                    WHEN
                        RiskScore > 0
                    THEN
                        Action = Review


        MODEL   'CustomerRiskModel'

              RULES
                RULE  Risk
                    WHEN
                        RiskScore > 1000
                    THEN
                        Action = Call MANAGER