Servigistics InService 發佈與載入 > 使用發佈與載入 > TAL 組態 > 配置識別管理 (IMAN)
  
配置識別管理 (IMAN)
IMANConfig.xml 組態檔案用來根據 SIM 資料類型,為配套來源的類型與來源,配置識別屬性和其他屬性。此檔案可讓 TAL 處理來自不同編寫系統的各種配套,並將識別指派給個別物件。屬性用來產生 IMAN ID。必須有此組態。此檔案位於 INSERVICE_HOME\InS_SW\Config\Applications\DataProcess\Config\Common\Templates\IMANIntegration
Servigistics InService 提供組態管理員公用程式來協助您建立及更新此組態檔案。組態管理員提供包含這些更新之 IMAN 內容的 TAL 實體。IMAN 內容可讓您重新命名或變更載入來源的優先順序。此作業在該內容的「來源」部份中完成。
下列來源為唯讀:
您可以使用加號圖示 新增組織的其他來源。這可複製 PTC 來源,並將新來源新增至 IMANConfig.xml。例如:
如需變更載入來源的優先順序,您可以按一下來源旁的圖示,然後按順序將該來源拖放至所需點:
請注意,您必須在組態管理員中發佈所做的任何 TAL 變更,且必須先重新啟動 JBoss 伺服器才能使得變更生效。如需有關組態管理員公用程式的詳細資訊,請參閱 《Servigistics InService 部署指南》 中的使用 Servigistics InService 部署組態管理員公用程式
某些 IMAN 組態無法在組態管理員中完成。下列章節將介紹該組態的詳細資訊。
在 IMAN 中配置來源名稱
配套加工品 PublishInfo.xml 包含參數 Bundle-Source,可識別配套擁有者。如果此內容不存在,TAL 預設為使用配套來源之 Rootobjects 中的內容 orgName。以下是範例 orgName
IMANConfig.xml 中,您必須定義 Source name 以及有關企業識別屬性的詳細資訊,以便區分不同資料類型。這些屬性可以是所有類型的企業物件通用,也可以每個物件有所不同。如果未配置來源,TAL 流程可能會失敗。
您通常可以使用配套來源組態找到物件。如果找不到物件 (因為相同物件已由不同來源載入),您可以配置要查詢哪些來源。通常,當兩個不同來源擁有兩個不同的識別屬性集時,會發生這種情況。
例如,請考慮這樣一種情境,即 PARTS 是從識別屬性標記為 orgNameobjNumber 的名為 SAP 的來源所載入。但是,現在我們要從識別屬性為 URI 的名為 PTC 的不同來源取得零件。在這種情況下,您不應尋找屬性為 URI 的任何零件,因為在 SAP 中不可以使用相同來源。系統甚至不應建立新零件。解決方案是執行串聯搜尋。
配置串聯搜尋的方式如下:
<Source name="com.cat.ncr">
<Type name="PARTS" CascadeSeq="SAP,PTC" >
<IdentifyingAttributes>
<Property name="uri"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
</OtherAttributes>
</Type>
</Source>
針對指定的 Type name,如果使用識別屬性在資料庫中找不到物件,則會使用串聯序列中所提供之來源的識別屬性執行搜尋。您必須確保所提到的作為串聯序列的來源只使用這些內容作為識別屬性 (可作為目前來源的識別屬性或其他屬性使用),否則,就會發生錯誤。
在上述案例中,如果 SAP 的 IdentifyingAttributes 包含 objNumberorgName,那麼它就是有效的使用案例。如果它包含 familyCode,則會發生錯誤,因為來源 PTC 沒有該屬性。
在 IMAN 中配置優先順序
組態管理員可讓您定義內容的主要來源。如果您需要定義其他來源,必須在 IMANConfig.xml 檔案中完成。在此情況下,複製 PTC 來源、變更來源 name,並將 SourceID 更新為 -1,如下所示:
<Source SourceID="-1" name="ABC" priority="3">
每個配套來源都隨附有啟用或禁用任何物件更新的優先順序。具有最高優先順序的來源有權變更具有相同或最低優先順序來源的物件,但反之則行不通。優先順序在定義來源時透過 IMANConfig.xml 組態檔案配置。優先順序屬性只接受整數值。值越大表示優先順序越高。如果來源嘗試更新或刪除並非其所有的物件,則該來源的優先順序必須等於或高於目前擁有者的優先順序,否則就會略過操作。
例如,名稱為 PL1 的零件屬於來源 ABC。那麼,當 PTC 來源嘗試更新該零件時,就會允許更新,因為 PTC 的優先順序高於 ABC。但是,如果 ABC 嘗試更新 PTC 擁有的物件,則不允許更新,因為其優先順序低於 PTC。
以下是 IMANConfig.xml 組態檔案的範例:
<IMANConfig>
<Source SourceID="4" name="CSV" priority="4">
<Type name="PDFM">
<IdentifyingAttributes>
<Property name="objNumber" primary="true" reference="PDF Code|Document Code"/>
<Property name="orgName" primary="true" reference="$$ORGNAME$$"/>
<Property name="PTC_DD_LANGUAGE" reference="File Name_|Description_"/>
<Property name="SIM.authoringLanguage" reference="$$AUTHORED_DOC_LANGUAGE$$"/>
</IdentifyingAttributes>
<OtherAttributes>
</OtherAttributes>
</Type>
<Type name="IEXML">
<IdentifyingAttributes>
<Property name="objNumber" primary="true" reference="XML Code|Document Code"/>
<Property name="orgName" primary="true" reference="$$ORGNAME$$"/>
<Property name="PTC_DD_LANGUAGE" reference="File Name_|Description_"/>
<Property name="SIM.authoringLanguage" reference="$$AUTHORED_DOC_LANGUAGE$$"/>
</IdentifyingAttributes>
<OtherAttributes>
</OtherAttributes>
</Type>
<Type name="GRAPHIC">
<IdentifyingAttributes>
<Property name="objNumber" primary="true" reference="GRAPHIC Code|Document Code"/>
<Property name="orgName" primary="true" reference="$$ORGNAME$$"/>
<Property name="PTC_DD_LANGUAGE" reference="File Name_|Description_"/>
<Property name="SIM.authoringLanguage" reference="$$AUTHORED_DOC_LANGUAGE$$"/>
</IdentifyingAttributes>
<OtherAttributes>
</OtherAttributes>
</Type>
<Type name="PARTS">
<IdentifyingAttributes>
<Property name="objNumber" reference="Part Code"/>
<Property name="orgName" reference="orgname|$$ORGNAME$$"/>
</IdentifyingAttributes>
<OtherAttributes>
</OtherAttributes>
</Type>
<Type name="PI">
<IdentifyingAttributes>
<Property name="objNumber" reference="concat(Model,'_',SN)"/>
<Property name="orgName" reference="$$ORGNAME$$"/>
</IdentifyingAttributes>
<OtherAttributes>
</OtherAttributes>
</Type>
<Type name="BOM">
<IdentifyingAttributes>
<Property name="objNumber" reference="Object Number"/>
</IdentifyingAttributes>
<OtherAttributes>
</OtherAttributes>
</Type>
<Type name="GROUP">
<IdentifyingAttributes>
<Property name="objNumber" reference="$$Part Code"/>
<Property name="orgName" reference="$$ORGNAME$$"/>
</IdentifyingAttributes>
<OtherAttributes>
</OtherAttributes>
</Type>
<Type name="IS">
<IdentifyingAttributes>
<Property name="objNumber" reference="Parent Entity Code"/>
<Property name="orgName" reference="$$ORGNAME$$"/>
</IdentifyingAttributes>
<OtherAttributes>
</OtherAttributes>
</Type>
<Type>
<IdentifyingAttributes>
<Property name="objNumber" reference="Document Code|Assembly Code"/>
<Property name="orgName" reference="$$ORGNAME$$"/>
</IdentifyingAttributes>
<OtherAttributes>
</OtherAttributes>
</Type>
</Source>
<Source SourceID="3" name="FLW" priority="3">
<Type name="PDFM">
<IdentifyingAttributes>
<Property name="uri"/>
<Property name="PTC_DD_LANGUAGE"/>
<Property name="SIM.authoringLanguage"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber" reference="number"/>
<Property name="orgName"/>
<Property name="SIM.lastUpdated"/>
<Property name="SIM.lastUpdatedSrc"/>
<Property name="SIM.lastUpdatedMeta"/>
<Property name="checksum"/>
<Property name="collectedDate"/>
</OtherAttributes>
</Type>
<Type name="IEXML">
<IdentifyingAttributes>
<Property name="uri"/>
<Property name="PTC_DD_LANGUAGE"/>
<Property name="SIM.authoringLanguage"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber" reference="number"/>
<Property name="orgName"/>
<Property name="SIM.lastUpdated"/>
<Property name="SIM.lastUpdatedSrc"/>
<Property name="SIM.lastUpdatedMeta"/>
<Property name="checksum"/>
<Property name="collectedDate"/>
</OtherAttributes>
</Type>
<Type name="SYMPTOMS">
<IdentifyingAttributes>
<Property name="uri"/>
<Property name="PTC_DD_LANGUAGE"/>
<Property name="SIM.authoringLanguage"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber" reference="number"/>
<Property name="orgName"/>
<Property name="SIM.lastUpdated"/>
<Property name="SIM.lastUpdatedSrc"/>
<Property name="SIM.lastUpdatedMeta"/>
<Property name="checksum"/>
<Property name="collectedDate"/>
</OtherAttributes>
</Type>
<Type CascadeSeq="SAP" name="PARTS">
<IdentifyingAttributes>
<Property name="uri"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
<Property name="PTC_DD_LANGUAGE_TL"/>
</OtherAttributes>
</Type>
<Type name="IS">
<IdentifyingAttributes>
<Property name="uri"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
<Property name="PTC_DD_LANGUAGE_TL"/>
</OtherAttributes>
</Type>
<Type name="PS">
<IdentifyingAttributes>
<Property name="uri"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
<Property name="PTC_DD_LANGUAGE_TL"/>
</OtherAttributes>
</Type>
<Type name="BOM">
<IdentifyingAttributes>
<Property name="objNumber"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="uri"/>
</OtherAttributes>
</Type>
<Type name="GRAPHIC">
<IdentifyingAttributes>
<Property name="uri"/>
<Property name="PTC_DD_LANGUAGE"/>
<Property name="SIM.authoringLanguage"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="orgName"/>
<Property name="CADName"/>
<Property name="SIM.lastUpdated"/>
<Property name="SIM.lastUpdatedSrc"/>
<Property name="SIM.lastUpdatedMeta"/>
<Property name="checksum"/>
<Property name="collectedDate"/>
</OtherAttributes>
</Type>
<Type name="ILLUSTRATION">
<IdentifyingAttributes>
<Property name="uri"/>
<Property name="PTC_DD_LANGUAGE"/>
<Property name="SIM.authoringLanguage"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="orgName"/>
<Property name="CADName"/>
<Property name="SIM.lastUpdated"/>
<Property name="SIM.lastUpdatedSrc"/>
<Property name="SIM.lastUpdatedMeta"/>
<Property name="checksum"/>
<Property name="collectedDate"/>
</OtherAttributes>
</Type>
<Type name="EMBEDDEDIMG">
<IdentifyingAttributes>
<Property name="uri"/>
<Property name="PTC_DD_LANGUAGE"/>
<Property name="SIM.authoringLanguage"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="CADName"/>
<Property name="orgName"/>
<Property name="SIM.lastUpdated"/>
<Property name="SIM.lastUpdatedSrc"/>
<Property name="SIM.lastUpdatedMeta"/>
<Property name="checksum"/>
<Property name="collectedDate"/>
</OtherAttributes>
</Type>
<Type name="P2CRELATION">
<IdentifyingAttributes>
<Property name="objNumber"/>
</IdentifyingAttributes>
</Type>
<Type CascadeSeq="CSV" name="GROUP">
<IdentifyingAttributes>
<Property name="uri"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
</OtherAttributes>
</Type>
<Type CascadeSeq="CSV" name="PARTSLIST">
<IdentifyingAttributes>
<Property name="uri"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber" reference="number"/>
<Property name="orgName"/>
<Property name="PTC_DD_LANGUAGE_TL"/>
</OtherAttributes>
</Type>
<Type>
<IdentifyingAttributes>
<Property name="uri"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="objNumber" reference="number"/>
<Property name="orgName"/>
</OtherAttributes>
</Type>
</Source>
<Source SourceID="2" name="KIT" priority="2">
<Type>
<IdentifyingAttributes>
<Property name="objNumber"/>
<Property name="orgName"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="uri"/>
</OtherAttributes>
</Type>
</Source>
<Source SourceID="1" name="SAP" priority="1">
<Type>
<IdentifyingAttributes>
<Property name="objNumber" xpath="OBJNUMBER"/>
<Property name="orgName" xpath="ORGNAME"/>
</IdentifyingAttributes>
<OtherAttributes>
<Property name="uri"/>
</OtherAttributes>
</Type>
</Source>
</IMANConfig>