Operator Elements

True

<True/>

This operator always returns true when all nested operators return true. It is useful for declaring default (fall-back) rules. In a mapping engine that is using the early-out mode, make sure that this operator is only used at the end of the synchronization package with the lowest priority.

False

<False/>

Always returns false. You can use the False element to temporarily disable rules.

And

<And> 
    <!-- Operator -->
    <!-- Operator -->
    [... more operators ...]
</And>

Returns true when all nested operators return true.

The <And> operator is exclusive. This means that if the result of the first operator is false, the next operator is not evaluated. Use this operator to implement rules with higher performance by placing the simplest condition first and the most complex condition at the end.

Or

<Or> 
    <!-- Operator -->
    <!-- Operator -->
    [... more operators ...]
</Or>

Returns true if at least one of the operators returns true.

Not

<Not> 
    <!-- Operator -->
</Not>

Returns true if the operator does not return true.

The <Not> operator is exclusive. This means that evaluation stops as soon as a child operator returns true.

Exists

<Exists> 
    <!-- Operand -->
<Exists>

The value of the operand must not be null.

Is Node

<IsNode/>

True if the CI is imported as a node, which is the case if the CI type is listed in the nodetypes.xml file.

True if the element is a managed node in OM.

Is Root CI

<IsRootCI/>

True if the CI is a root CI (a root CI has no parent).

Equals

<Equals> 
    <!-- Operand -->
    <!-- Operand -->
    <!-- ... -->
</Equals>
<Equals ignoreCase="[true|false]"> 
    <!-- Operand -->
    <!-- Operand -->
    <!-- ... -->
</Equals>

The values of the operands must be equal. If there are more than two operands, all operands must be equal to each other. Using the optional attribute ignoreCase, you can also compare the string values of the operands independent of capitalization. By default the equals operator does not ignore case.

Starts With

<StartsWith> 
    <!-- Operand -->
    <!-- Operand -->
</StartsWith>

The string value of the first operand must start with the value of the second operand.

Ends With

<EndsWith> 
    <!-- Operand -->
    <!-- Operand -->
</EndsWith>

The string value of the first operand must end with the value of the second operand.

Matches

<Matches> 
    <!-- Operand -->
    <!-- Operand -->
</Matches>

The string value of the first operand must match the regular expression of the second operand.

Example:

<Matches>
    <Attribute>host_dnsname</Attribute>
    <Value>.*\.example\.com</Value>
</Matches>

For more information on applicable regular expressions, see:

http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html

Contains

<Contains> 
    <!-- Operand -->
    <!-- Operand -->
<Contains>

The value returned by the first operand must contain the value of the second operand. If the operand’s return type is a list, the list must contain at least one element that is equal to the second operand. If the operand’s return type is a string, the value of the second operand must be a substring of the first operand.

Is Deletion CI

<IsDeletionCI/>

True if the CI is used to delete CIs. This operator can be used only for dynamic topology synchronization, as basic topology synchronization uses a different mechanism to delete CIs. Basic topology synchronization ignores the IsDeletionCI operator.