The external validation function enables you to extend the core validation of Smart Instrumentation. You can do this by writing your own logic code using C# or VB .NET and attaching it to Smart Instrumentation Rule Manager using your Assembly Project signature.
The rule engine functions according to the Boolean value returned by the CustomValidation function. In case of 'False', the rule engine rejects the modifications made by Smart Instrumentation users. In case of 'True', the rule engine accepts the user modifications.
Syntax
bool spiExtendedService.CustomValidation(string AttrName,
string AttrValue,
bool AttrModified,
string ItemType,
string PrimaryAttr,
string PrimaryValue,
long LowerPBSID)
Argument |
Type |
Description |
---|---|---|
AttrName |
string |
The attribute name that was selected in the rule definition. |
AttrValue |
string |
The value of the attribute name that was selected in the rule definition. |
AttrModified |
boolean |
Indicates if the selected attribute has been modified by a Smart Instrumentation user. |
Item Type |
string |
Represents the main Smart Instrumentation object that triggers the Rule engine. |
PrimaryAttr |
string |
Represents the primary attribute name. |
PrimaryValue |
string |
Represents the primary attribute value. |
LowerPBSID |
long |
Represents the lowest level plant hierarchy item <Unit ID> |
Argument |
Type |
---|---|
Return Value |
boolean |