在 IMAN 中配置优先级
为每个束源提供了优先级,以便启用或禁用对任何对象的更新。具有最高优先级的源已被授权对具有相同或最低优先级源的对象进行任何更改,反过来则不然。具体可在定义源时通过 IMANConfig.xml 配置文件进行配置。优先级属性仅接受整数值。值越高,表示优先级越高。如果源试图更新或删除它不拥有的对象,则其优先级必须与当前所有者相同或高于当前所有者,否则将忽略此操作。
例如,名为 PL1 的部件属于源 FLW。由于 PTC 的优先级高于 FLW,因此,只要 PTC 源想要尝试更新部件,都可以进行更新。但是,如果 FLW 试图更新 PTC 所拥有的对象,那么由于其优先级低于 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>