@Oleg: You can get the notification current configuration and process one rule after another to find which one corresponds to your current value. You will need to parse every AnalysisRule object to find: AnalysisRulePlugIn, TimeRulePlugIn, ConfigString, MapVariable objects/properties. The combination AnalysisRulePlugIn, MapVariable and ConfigString will tell you what expression is evaluated to trigger or not a notification.
For example, if you find that the analysis rule is of type "Comparison" the ConfigString property is set to "Operator=LessThan;TargetValue=10;TargetValueType=Numeric;Deadband=0;" and MapVariables 'Input' and 'Output' are set to "Temperature" and "8407373C-A66C-464D-A7DD-790D13D7BB1D", this means:
- Expression to evaluate is Temperature < 10
- There is no deadband in the evaluation of the expression
- Return the result of this analysis to another analysis which name/guid is...
You continue with the remaining analysis rules and deduct which one has fired the notification.