Table of Contents

Search

  1. Preface
  2. Part 1: Concepts and Models
  3. Part 2: Custom XConnect Created with a Load Template
  4. Appendix A: Resource Configuration File

Metadata Manager Custom Metadata Integration Guide

Metadata Manager Custom Metadata Integration Guide

Sample Rule Set Definition Files to Link Non-Endpoints

Sample Rule Set Definition Files to Link Non-Endpoints

The following code shows a sample rule set definition file that defines two linking rules between a pair of custom models:
<?xml version="1.0" encoding="UTF-8"?> <ruleSetDefinition name="MAL_NEP_def_custom_to_custom_string_link"> <sourceModel name="Custom_Dataset_MAL"/> <targetModel name="Custom_Dataset_Rel_MAL"/> <param name="Desc_string1" description="The description string value" type="string" /> <param name="Desc_string2" description="The description string value" type="string" /> <rule name="SC_to_SC_Rel_RBL_NEP_12_down" direction="TargetToSource"> <sourceFilter> <element class="Class_lin"> <element class="SubClass_lin"/> </element> </sourceFilter> <targetFilter> <element class="Class_lin_Rel"> <element class="SubClass_lin_Rel"/> </element> </targetFilter> <link condition="source.Name=target.Description AND source.parent.Description=${Desc_string1} AND source.parent.Name=target.parent.Description AND target.parent.Label=${Desc_string1}"/> </rule> <rule name="SC_to_SC_Rel_RBL_NEP_12_up" direction="SourceToTarget"> <sourceFilter> <element class="Class_lin"> <element class="SubClass_lin"/> </element> </sourceFilter> <targetFilter> <element class="Class_lin_Rel"> <element class="SubClass_lin_Rel"/> </element> </targetFilter> <link condition="source.Name=target.Description AND source.parent.Description=${Desc_string2} AND source.parent.Name=target.parent.Description AND target.parent.Label=${Desc_string2}"/> </rule> </ruleSetDefinition>
The following code shows a sample of a rule set parameter file that defines the source and target resources and the parameter values for the rule set definition file:
<?xml version="1.0" encoding="UTF-8"?> <ruleSetParams definition="MAL_NEP_def_custom_to_custom_string_link" name="param_custom_string_link_res1" description="testing string parameter"> <sourceResource name="Custom_Test_MBL" /> <targetResource name="Custom_Test_MBL_Rel" /> <param name="Desc_string1" value="grp3" /> <param name="Desc_string2" value="grp4" /> </ruleSetParams>

0 COMMENTS

We’d like to hear from you!