RuleLab.Net BRE COM Object
With the BRE COM interface your Microsoft Windows application can utilize the BRE functionality locally, without having to run the BRE via the Web Service. The RuleLab.Net files that you compose online must be downloaded and passed to the BRE COM Object. The business users can still take advantage of the central rule repository and easy access to rules editing tools while your backend application is running the BRE locally without sacrificing the performance.
BRE COM implementation model is virtually identical to the BRE assembly’s. The interface methods are also very similar.
COM Methods
SetXMLReferences( Load XML References into the BRE
[in] BSTR XMLReferences, References XML document created with the Rules Designer
[out] BSTR* status); BRE status XML document
SetAtoms( Load Atoms into the BRE
[in] BSTR XMLAtoms, Atoms XML document created with the Rules Designer
[out] BSTR* status); BRE status XML document
SetFacts( Load Facts into the BRE
[in] BSTR XMLFacts, Facts XML document created with the Rules Designer
[out] BSTR* status); BRE status XML document
SetVocabulary( (Not implemented) Load the Vocabulary into the BRE
[in] BSTR XMLVocabulary, Vocabulary XML document created with the Rules Designer
[out] BSTR* status); BRE status XML document
SetRules( Load Rules into the BRE
[in] BSTR XMLRules, Rules XML document created with the Rules Designer
[out] BSTR* status); BRE status XML document
SetCurrencySymbol( Set currency symbol
[in] BSTR symbol) the default is ‘$’
IncludeRules( Add Rules document to the set of included Rules
[in] BSTR XMLRules, Rules XML document created with the Rules Designer
[in] long basePriority, Included Rules priority offset
[out] BSTR* status); BRE status XML document
EnableRuleEvaluationDetails() Enable collecting rule processing details under the <evaluatedRules> tag of BRE State
EnableRuleConflictsDetails() Enable collecting rule processing details under the <conflicts> tag of BRE State
RunBRE( Execute the BRE pass
[in] BSTR XMLAppData, Application data XML document
[in] BSTR XMLBREState, BRE State XML document,
must be set to empty string for the first pass of the BRE
[out] BSTR* outXMLAppData, Updated data document
[out] BSTR* outXMLBREState, Updated State document,
must be copied into XMLBREState for subsequent BRE pass calls
[out] BSTR* status); BRE status XML document
GetReasoning( Get the XML document showing the BRE reasoning process.
[in] BSTR varName, The variable (XML Reference name) that was assigned a value by the BRE.
[in] BSTR XMLBREState, State XML document returned by the BRE
[out] BSTR* outXMLReasoning, Reasoning XML document generated by the BRE
[out] BSTR* status); BRE status XML document
The use of the BRE Software is governed by the Licensing Agreement. You can purchase additional BRE Software Licenses via the “Subscription” screen. To accesses it, log into the Rules Designer at http://www.rulelab.net, click the “Your Account” button, click the “Subscription” tab. You must be a subscriber to the RuleLab.Net Service in order to purchase additional licenses and download BRE upgrades.
Related topics