Databases Reference
In-Depth Information
Configuring the decision function
Before we write our rules, we need to make some changes to the default
configuration of our decision function. Within the rules editor, select the
Decision Functions tab, next select AuctionRulesDecisionService , and click
Edit (the pencil icon). This will open up the Edit Decision Function window,
as shown in the following screenshot:
Deselect Check Rule Flow
First uncheck the option Check Rule Flow (circled in the preceding screenshot).
By default, this is checked, which causes the rules author to check that all the input
and output facts are used in the ruleset. By used it means that each fact is directly
referenced by at least one rule in the ruleset and if not, the rule editor will flag an
error that will prevent you from deploying the ruleset.
Within our ruleset, we are not going to make any direct reference to the TBids fact;
rather our rules reference the TBid facts contained within the TBids fact.
Asserting the XML tree
The other subtlety we need to be aware of is that, by default, when you pass in an
XML fact based on a complex type, and if that complex type contains other complex
types, then it will only assert the top level XML element.
 
Search WWH ::




Custom Search