manontremblay

Create AnalysisRule - ConfigString problem

Discussion created by manontremblay on May 25, 2011
Latest reply on Aug 22, 2012 by vashavijay

I try to create a notification and add analysis for this notification. When I try to set ConfigString I receive error "Could not find value 'Equal'". I try with "LessThan" and it's working. This is my code.

 

AFAnalysisRule comparisonRule = AFSystems.DefaultPISystem.AnalysisRulePlugIns["Comparison"].CreateAnalysisRuleInstance(myAnalysis,null);

 

firstcondition.AnalysisRules.Add(comparisonRule);

 

comparisonRule.ConfigString = "Operator=Equal;TargetValue=On;Targetvaluetype=String";

 

 comparisonRule.MapVariable("input", myAttribute.Name);

 

comparisonRule.MapVariable("output", guid1.ToString());

Outcomes