Each precedence rule is represented as a single record in the MDEX Engine.
<mdex:precedenceRule key="ruleName" triggerAttributeKey="triggerAttrName" triggerAttributeValue="mval|sval" targetAttributeKey="targetAttrName" isLeafTrigger="true|false"/>
precedenceRule attribute | Meaning |
---|---|
key | Specifies a unique identifier for the precedence rule (that is, it is the name of the rule). The identifier is a string, which does not have to follow the NCName format. |
triggerAttributeKey | Specifies the name of the Endeca standard attribute or managed attribute that will trigger the precedence rule. That is, the specified attribute must be selected before the user can see the target attribute. |
triggerAttributeValue | Optional. If used, specifies the attribute value (either managed value spec or standard attribute value) that must be selected before the user can see the target attribute. If not used, then any value in the trigger attribute will trigger the rule. Use of triggerAttributeValue in effect further refines the trigger to a specific standard or managed value. |
targetAttributeKey | Specifies the name of the Endeca standard or managed attribute that appears after the trigger attribute value is selected. |
isLeafTrigger | If the trigger is a managed attribute,
isLeafTrigger specifies a Boolean value
(that must be in lower case) that denotes the type of the trigger attribute
value:
Note that isLeafTrigger does not apply to Endeca standard attributes. You must specify it when you create a precedence rule, but whichever value you use is ignored by the MDEX Engine when the precedence rule is run. |
<config-service:configTransaction xmlns:config-service="http://www.endeca.com/MDEX/config/services/types" 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>
Note that this example does not use the optional outerTransactionId attribute for the operation. This operation can be placed in a request structure of a WebServiceClient component.