To load precedence rules, use an XML-based configuration graph.
See XML-based configuration graphs for details about building a precedence rules graph.
Use the putPrecedenceRules operation of the Configuration Web Service to load precedence rules. The following code illustrates an typical example of the web services request to load precedence rules:
<config-service:configTransaction xmlns:config-service="http://www.endeca.com/MDEX/config/services/types/1/0" xmlns:mdex="http://www.endeca.com/MDEX/XQuery/2009/09"> <config-service:putPrecedenceRules> <mdex:precedenceRule key="ProvinceRule" triggerAttributeKey="DimGeography_StateProvinceName" triggerAttributeValue="Queensland" targetAttributeKey="DimGeography_City" isLeafTrigger="true"/> </config-service:putPrecedenceRules> </config-service:configTransaction>
This code is added to the Web Services Client component in the configuration graph.