アイデンティティ管理 (IMAN) の設定
コンフィギュレーションファイル IMANConfig.xml は、SIM データタイプに基づいてバンドルソースのタイプとソースにアイデンティティ属性やその他の属性を設定するときに使用します。これにより、さまざまなオーサリングシステムで作成されたバンドルを TAL で処理して、オブジェクトに個別にアイデンティティを割り当てることができます。属性は IMAN ID の生成に使用されます。この設定は必須です。このファイルは、INSERVICE_HOME\InS_SW\Config\Applications\DataProcess\Config\Common\Templates\IMANIntegration にあります。
Servigistics InService では、コンフィギュレータユーティリティを使用して、この設定ファイルを作成および更新できます。コンフィギュレータは、「IMAN」プロパティを含む TAL エンティティを更新向けに提供しています。「IMAN」プロパティを使用することにより、名前の変更やソースのロード優先度の変更を実施できます。この変更は、プロパティの「Sources」セクションで行います。
次のソースは読み取り専用です。
+ アイコン

を使用して、組織に応じたソースを追加できます。これにより、PTC ソースがコピーされ、
IMANConfig.xml に新しいソースが追加されます。以下に例を示します。
ソースの横にあるアイコンをクリックし、目的の順序にソースをドラッグアンドドロップすることで、ソースのロード優先度を変更できます。
コンフィギュレータで行った TAL の変更をパブリッシングし、JBoss サーバーを再起動しなければ、これらの変更は適用されないことに注意してください。コンフィギュレータユーティリティの詳細については、Servigistics InService Deployment Guide の「Servigistics InService 展開コンフィギュレータユーティリティの使用」を参照してください。
一部の IMAN 設定は、コンフィギュレータでは実行できません。この設定の詳細については、この後のセクションで説明します。
IMAN でのソース名の設定
バンドルコンポーネントの PublishInfo.xml には、バンドルのオーナーを識別するための Bundle-Source というパラメータがあります。このプロパティがない場合、TAL ではバンドルソースの Rootobjects にある orgName プロパティがデフォルトで使用されます。次に例を示します。orgName
IMANConfig.xml で、各データタイプのビジネス識別属性に関する Source name および詳細を定義する必要があります。これらの属性は、すべてのタイプのビジネスオブジェクトで共通にすることも、オブジェクトごとに変更することもできます。ソースが設定されていない場合は、TAL プロセスが失敗する可能性があります。
通常は、バンドルソースの設定を使用してオブジェクトを検索できます。オブジェクトが見つからない (別のソースにより同じオブジェクトがすでにロードされている) 場合は、検索するソースを設定できます。通常、このケースが発生するのは、2 つのソースに異なる識別情報のセットが含まれている場合です。
たとえば、PARTS が SAP という名前のソースからロードされていて、その識別属性が orgName および objNumber としてマークされている場合を考えます。このとき、識別情報が URI である PTC という名前の別のソースから部品を取得しようとしたとします。この場合、SAP では同じソースを利用できないため、識別情報が URI の部品は検索できません。新規部品を作成することもできません。これを解決するには、カスケードサーチを実行します。
カスケードサーチを設定するには、次の手順を実行します。
<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 に objNumber と orgName が含まれていれば有効です。familyCode が含まれている場合は、ソースの PTC にこの属性がないためエラーが発生します。
IMAN での優先度の設定
コンフィギュレータで定義できるのは、コンテンツのプライマリソースです。その他のソースを定義しなければならない場合、IMANConfig.xml ファイルで設定を行います。この場合、PTC ソースをコピーしてから、次のように、ソースの name を変更し、SourceID を -1 に変更します。
<Source SourceID="-1" name="ABC" priority="3">
各バンドルソースには、オブジェクトの更新を有効または無効にするために優先度が指定されます。優先度の最も高いソースは、ソースの優先度が同じまたはそれ以下であるオブジェクトを変更できますが、優先度が逆の場合は変更できません。この優先度は、ソースの定義中に IMANConfig.xml コンフィギュレーションファイルで設定します。優先度属性には整数値のみを指定できます。値が大きいほど、優先度が高いことを意味します。自身が所有していないオブジェクトを更新または削除しようとするソースには、現在のオーナーと同じかそれ以上の優先度が必要です。そうでない場合、操作は無視されます。
たとえば、PL1 という名前の部品がソース ABC に属しているとします。PTC ソースが部品を更新しようとした場合、PTC の優先度は ABC よりも大きいため、更新は常に許可されます。ただし、PTC が所有するオブジェクトを ABC が更新しようとした場合は、ABC の優先度が 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>