Influence of Missing Terms on the API results
Copy
Some variables or their constants may not be found within the target scope during transformations. In these cases, the term Missing Term is used. Missing Term is a Term which contains at least one ID that is not in the target Scope. Any Missing Terms transform into a “False” constant value while solving a Scope.
- Example
The target Scope contains the “Color” variable, which contains “Red” and “Black” Named Constants:
<Item type="Scope" id="ScopeId">
<name>ScopeName</name>
<Relationships>
<Item type="Variable" id="ColorVariableId">
<id>ColorVariableId</id>
<name>Color</name>
<Relationships>
<Item type="NamedConstant" id="NamedConstantId_1">
<id>NamedConstantId_1</id>
<name>Red</name>
</Item>
<Item type="NamedConstant" id="NamedConstantId_2">
<id>NamedConstantId_2</id>
<name>Black</name>
</Item>
</Relationships>
</Item>
</Relationships>
</Item>
Consider the following expression concerning the target Scope:
<expression>
<eq>
<variable id="ColorVariableId" />
<named-constant id="NamedConstantId_1" />
</eq>
<eq>
<variable id="ColorVariableId" />
<named-constant id="NamedConstantId_2" />
</eq>
<eq>
<variable id="ColorVariableId" />
<named-constant id="NamedConstantId_3" />
</eq>
</expression>
In this case, the following term from the expression is considered as a Missing Term:<eq><variable id="ColorVariableId” /><named-constant id="NamedConstantId_3" /></eq> As result, the whole expression will be converted to “False”.