Working With BSM Connector > Collecting and Mapping Topology Data > Use Topology Synchronization Rules to Map Data > Mapping Syntax > Mapping File Syntax > Relation Mapping

Relation Mapping

Using the relation mapping you can create relations between CIs.

<RelationTo>
  <To>
     [Operand]
  </To>
  <Type>[RelationType]</Type>
</RelationTo>

Define a relation from the current CI to the CI that is returned by the operand. The operand may either return a string, an instance of a CI, a list of CIs or a list of strings. String values must match the OM ID of the CI to which the relation is created. In the case of a list, a relation is created for each item (that is in turn either a string or a CI) contained in the list.

The relation has the type specified by [RelationType]. This type is the name of the relation, not the label.

<RelationFrom>
  <From>
     [Operand]
  </From>
  <Type>[RelationType]</Type>
</RelationFrom>

Works just as the previous mapping, but in the opposite direction.