Priorität in IMAN konfigurieren
Jede Bündelquelle wird mit einer Priorität bereitgestellt, um Aktualisierungen an einem Objekt zu aktivieren oder zu deaktivieren. Eine Quelle mit der höchsten Priorität ist berechtigt, beliebige Änderungen am Objekt mit einer Quelle gleicher oder niedrigster Priorität vorzunehmen, das Umgekehrte gilt jedoch nicht. Dies wird mit der Konfigurationsdatei IMANConfig.xml beim Definieren einer Quelle konfiguriert. Prioritätsattribute akzeptieren nur Ganzzahlwerte. Ein höherer Wert bedeutet eine höhere Priorität. Wenn eine Quelle versucht, ein Objekt zu aktualisieren oder zu löschen, das sie nicht besitzt, muss sie die gleiche oder eine höhere Priorität haben als der aktuelle Besitzer; andernfalls wird die Operation ignoriert.
Beispiel: Ein Teil namens PL1 gehört zur Quelle FLW. Aktualisierungen des Teils durch die PTC Quelle sind immer zulässig, da PTC eine höhere Priorität hat als FLW. Wenn jedoch FLW versucht, ein Objekt im Besitz von PTC zu aktualisieren, ist dies nicht zulässig, da die Priorität dieser Quelle niedriger ist als die von PTC.
Im Folgenden finden Sie ein Beispiel für eine IMANConfig.xml-Konfigurationsdatei:
<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>