IMAN での優先度の設定
各バンドルソースには、オブジェクトの更新を有効または無効にするために優先度が指定されます。優先度の最も高いソースは、ソースの優先度が同じまたはそれ以下であるオブジェクトを変更できますが、優先度が逆の場合は変更できません。この優先度は、ソースの定義中に IMANConfig.xml コンフィギュレーションファイルで設定します。優先度属性には整数値のみを指定できます。値が大きいほど、優先度が高いことを意味します。自身が所有していないオブジェクトを更新または削除しようとするソースには、現在のオーナーと同じかそれ以上の優先度が必要です。そうでない場合、操作は無視されます。
たとえば、PL1 という名前の部品がソース FLW に属しているとします。PTC ソースが部品を更新しようとした場合、PTC の優先度は FLW よりも大きいため、更新は常に許可されます。ただし、PTC が所有するオブジェクトを FLW が更新しようとした場合は、FLW の優先度が PTC の優先度よりも低いため、更新は許可されません。
次に、IMANConfig.xml コンフィギュレーションファイルの例を示します。
<IMANConfig>
<!-
OOTB bundle source “PTC” with priority 3. Even it specifies
identifying attributes per type
-->
<Source name="PTC" priority="3">
<Type name="PH">
<IdentifyingAttributes>
<Property name="uri"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
</OtherAttributes>
</Type>
<Type name="PDFM">
<IdentifyingAttributes>
<Property name="uri"/>
<Property name="PTC_DD_LANGUAGE"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
<Property name="SIM.authoringLanguage"/>
<Property name="SIM.lastUpdated"/>
</OtherAttributes>
</Type>
<Type name="IEXML">
<IdentifyingAttributes>
<Property name="uri"/>
<Property name="PTC_DD_LANGUAGE"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
<Property name="SIM.authoringLanguage"/>
<Property name="SIM.lastUpdated"/>
</OtherAttributes>
</Type>
<!-
Configuration for cascade sequence search.
If PARTS is not found, based on identifying attributes specified
in this Source; then the identifying mechanism will look for bundle
sources defined in the cascade sequence.
-->
<Type name="PARTS" CascadeSeq="FLW">
<IdentifyingAttributes>
<Property name="uri"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
</OtherAttributes>
</Type>
<Type>
<IdentifyingAttributes>
<Property name="uri"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
</OtherAttributes>
</Type>
</Source>
<!-
OOTB bundle source “FLW” with priority 1.
For all types of objects present in FLW bundles, the
identifying criterion is always the same.
-->
<Source name="FLW" priority="1">
<Type>
<IdentifyingAttributes>
<Property name="objNumber" xpath="OBJNUMBER"/>
<Property name="orgName" xpath="ORGNAME"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="uri"/>
</OtherAttributes>
</Type>
</Source>
</IMANConfig>