配置識別管理 (IMAN)
IMANConfig.xml 組態檔案用來根據 SIM 資料類型,為配套來源的類型與來源,配置識別屬性和其他屬性。此檔案可讓 TAL 處理來自不同編寫系統的各種配套,並將識別指派給個別物件。屬性用來產生 IMAN ID。必須有此組態。
可使用此檔案來配置指定 objectType 和來源的識別屬性。objectType 是針對資料 (例如 PDFM、IEXML 等) 定義的 Servigistics InService 內容類型。來源是輸入資料的起源。這在 PublishInfo.xml 檔案的 bundle-source 內容中設定。如果未在此檔案中配置 objectType,將會使用預設組態。
以下是 IMANConfig.xml 檔案項目的範例:
<Source name="com.acme.pro" priority="4">
<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>
<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>
Source 標籤是項目的外部標籤。其具有下列屬性:
• name - 提供資料來源。
此屬性中的值來自 PublishInfo.xml 檔案中的 bundle-source 內容。
• priority - 決定是否授權來源更新物件類型。
此屬性決定哪個來源可以更新物件類型。如果未設定 priority,將會使用預設值 0。
例如,請考慮下列兩個來源:
<Source name="com.acme.pro" priority="4">
…
</Source>
<Source name="PTC" priority="3">
…
</Source>
PARTSLIST 物件 PL1 屬於來源 PTC。來源 com.acme.pro 嘗試更新物件。由於 com.acme.pro 具有等於或大於 PTC 的 priority 值,因此,Servigistics InService 允許更新。但是,如果 PTC 嘗試更新 com.acme.pro 所擁有的物件,則不允許更新。
Type 標籤包含在 Source 標籤中。若此標籤沒有屬性,則針對未在檔案中明確定義之任何來源的 objectType 值,它都是預設設定。範例檔案中的最後一個 Type 項目顯示了預設設定。
Type 具有下列屬性:
• name - 指定針對其提供設定的 objectType。
• CascadeSeq - 指定要用於第二層級搜尋的來源。
依預設,Servigistics InService 會使用在 IdentifyingAttributes 標籤中定義的屬性搜尋指定 objectType。如果搜尋失敗,並在 CascadeSeq 中定義了替代來源,Servigistics InService 會根據 objectType 值的 IdentifyingAttributes 在 IMANConfig.xml 項目 (且該項目為在 CascadeSeq 屬性中指定之來源的項目) 中定義的方式執行第二層級搜尋。
在範例檔案中,PARTS 物件類型的 CascadeSeq 設定為 FLW,識別屬性設定為 uri。針對 FLW 來源,PARTS 物件類型的識別屬性設定為 objNumber 與 orgName。對於 PARTS 物件進行的第一層級搜尋根據 uri 完成。如果該搜尋失敗,將會根據 objNumber 與 orgName 的組合進行第二層級搜尋。
在任何情況下,如果搜尋最終失敗,都會針對該物件類型在 IMAN 表中建立物件的新項目。
Type 標籤還包含下列標籤:
• IdentifyingAttributes - 指定搜尋物件類型時要使用的屬性。
此標籤包含一或多個 Property 標籤。其中每個標籤都具有 name 屬性,且該屬性包含屬性的名稱
• OtherAttributes - 指定與物件類型關聯的其他屬性。
此標籤也包含一或多個 Property 標籤。