GetFromFile Method (.NET)

The GetFromFile method returns a RuleEngine instance from the specified XML file name. The file name must contain a fully qualified path. There is a robust backing cache so calling this method frequently is fine, and there is no need to do any caching on your own.  The same RuleEngine instance can be used simultaneously in multiple threads.

 

Syntax:

RuleEngine engine = RuleEngine.GetFromFile(string fullPathAndFileName);

fullPathAndFileName: The fully qualified path and file name to the XML file which contains the rules to be executed.  The file must conform to the RET file format standards, as specified in the Rules Enforcement Technology Users Guide (distributed separately).

 

Returns:

engine: A RuleEngine instance ready for execution.

 

C# Example:

        <%

        ...

        RuleEngine engine = RuleEngine.GetFromFile(Server.MapPath("~/xml/rules.xml"));;

        ...

       %>

 

Tip: See the numerous RET samples included with BrowserHawk and the Rules Enforcement Technology Users Guide (available separately) for more information.

 

Note: This method requires the Enterprise Edition of BrowserHawk.

 

See Also:

GetDataSet Method (.NET)

RuleEngine GetExtendedOptions Method (.NET)

GetFromString Method (.NET)

GetLogOptions Method (.NET)

GetResult Method (.NET)

About the RuleEngineResult Class

About the RuleEngine Class

About Rule Enforcement Technology (RET)