Class MacroRuleTreeAnalyzer
- Namespace
- CMS.ContactManagement
- Assembly
- CMS.ContactManagement.dll
Provides methods to analyze a MacroRuleTree.
public class MacroRuleTreeAnalyzer
- Inheritance
-
objectMacroRuleTreeAnalyzer
- Extension Methods
Methods
CanTreeBeTranslated(MacroRuleTree)
Checks whether a macro tree can be translated to a DataQuery.
public static bool CanTreeBeTranslated(MacroRuleTree macroRuleTree)
Parameters
macroRuleTree
MacroRuleTreeMacro rule tree
Returns
- bool
True when the macro rule tree can be translated to DataQuery
GetAffectingActivityCodeNames(MacroRuleTree)
Gets all activities that can affect given MacroRuleTree. Uses ALL_ACTIVITIES to mark that it should be recalculated no matter what activity performed.
public static ISet<string> GetAffectingActivityCodeNames(MacroRuleTree tree)
Parameters
tree
MacroRuleTreeMacro rule tree
Returns
- ISet<string>
Set of activities that affect given Macro rule tree
GetAffectingAttributeNames(MacroRuleTree)
Gets all attributes that can affect given MacroRuleTree. Uses ALL_ATTRIBUTES to mark that it should be recalculated no matter what attribute changed.
public static ISet<string> GetAffectingAttributeNames(MacroRuleTree tree)
Parameters
tree
MacroRuleTreeMacro rule tree
Returns
- ISet<string>
Set of attributes that affect given Macro rule tree