IMetaDictionaryData.EvaluateRules

Syntax

EvaluateRules(Var Rule: IMetaDataRule): Boolean;

Parameters

Rule - the rule that is not executed is returned by this parameter.

Description

The EvaluateRules method checks all dictionary rules. It returns True if all rules are executed. If some rule is not executed, it is returned by the Rule parameter, the EvaluateRules method returns False.

Example

Executing the example requires that the repository contains a time series database with the OBJ_FC identifier. Rules must be specified for time series dictionary of this time series database.

Add links to the Cubes, Metabase, Rds system assemblies.

Sub UserProc;
Var
    Mb: Imetabase;
    RubD: IMetabaseObjectDescriptor;
    RubrIn: IRubricatorInstance;
    DictInst: IMetaDictionaryInstance;
    MDD: IMetaDictionaryData;
    Rule: IMetaDataRule;
Begin
    Mb := MetabaseClass.Active;
    RubD := Mb.ItemById("OBJ_FC");
    RubrIn := RubD.Open(NullAs IRubricatorInstance;
    DictInst := RubrIn.Facts;
    MDD := DictInst.GetDataO(0);
    If Not MDD.EvaluateRules(Rule) Then
        Debug.WriteLine(Rule.Name);
    End If;
End Sub Userproc;

After executing the example, indicators dictionary rules are checked on obtained indicator data. If any rule is not executed its name is displayed in console window.

See also:

IMetaDictionaryData