カスタマイズポイント
拡張可能なクラス
このドキュメントの「リソースのパブリッシング」のセクションで説明されているレンダラークラスを拡張した場合、その拡張を ESI サービスのプロパティファイルで定義する必要があります。以下のクラスはカスタマイズ担当者による拡張の対象です。
ESIResourceRenderer
サービスプロパティ名: com.ptc.windchill.esi.rnd.ESIRenderer
<Option> エレメントの属性のデフォルト値: cardinality="duplicate"
requestor="java.lang.Object"
selector="RESOURCE"
serviceClass=" com.ptc.windchill.esi.mpml.resource.ESIResourceRenderer"
ESIProcessMaterialRenderer
サービスプロパティ名: com.ptc.windchill.esi.rnd.ESIRenderer
<Option> エレメントの属性のデフォルト値: cardinality="duplicate"
requestor="com.ptc.windchill.mpml.resource.MPMProcessMaterial"
selector="PROCESSMATERIAL"
serviceClass="com.ptc.windchill.esi.mpml.resource.ESIProcessMaterialRenderer"
ESIToolingRenderer
サービスプロパティ名: com.ptc.windchill.esi.rnd.ESIRenderer
<Option> エレメントの属性のデフォルト値: cardinality="duplicate"
requestor="com.ptc.windchill.mpml.resource.MPMTooling"
selector="TOOLING"
serviceClass="com.ptc.windchill.esi.mpml.resource.ESIToolingRenderer"
ESISkillRenderer
サービスプロパティ名: com.ptc.windchill.esi.rnd.ESIRenderer
<Option> エレメントの属性のデフォルト値: cardinality="duplicate"
requestor="com.ptc.windchill.mpml.resource.MPMSkill"
selector="SKILL"
serviceClass="com.ptc.windchill.esi.mpml.resource.ESISkillRenderer"
ESIPlantStructureRenderer
サービスプロパティ名: com.ptc.windchill.esi.rnd.ESIRenderer
<Option> エレメントの属性のデフォルト値: cardinality="duplicate"
requestor="java.lang.Object"
selector="PLANT"
serviceClass="com.ptc.windchill.esi.mpml.resource.ESIPlantStructureRenderer"
ESIResourceGroupStructureRenderer
サービスプロパティ名: com.ptc.windchill.esi.rnd.ESIRenderer
<Option> エレメントの属性のデフォルト値: cardinality="duplicate"
requestor="java.lang.Object"
selector="RESOURCEGROUP"
serviceClass="com.ptc.windchill.esi.mpml.resource.ESIResourceGroupStructureRenderer"
ESIWorkCenterRenderer
サービスプロパティ名: com.ptc.windchill.esi.rnd.ESIRenderer
<Option> エレメントの属性のデフォルト値: cardinality="duplicate"
requestor="java.lang.Object"
selector="WORKCENTER"
serviceClass="com.ptc.windchill.esi.mpml.resource.ESIWorkCenterRenderer"
ESIResourceUsageLinkRenderer
サービスプロパティ名: com.ptc.windchill.esi.rnd.ESIRenderer
<Option> エレメントの属性のデフォルト値: cardinality="duplicate"
requestor="java.lang.Object"
selector="RESOURCEUSAGELINK"
serviceClass="com.ptc.windchill.esi.mpml.resource.ESIResourceUsageLinkRendere"
ESIAlternateUnitOfMeasureRenderer
サービスプロパティ名: com.ptc.windchill.esi.rnd.ESIRenderer
<Option> エレメントの属性のデフォルト値: cardinality="duplicate"
requestor="java.lang.Object"
selector="AUM"
serviceClass="com.ptc.windchill.esi.aum.ESIAlternateUnitOfMeasureRenderer"
3.10.3.2 コンフィギュレーション可能なオプション
Windchill ESI プリファレンスは、リソースとその関連オブジェクトのパブリッシングにおいて役割を果たす、いくつかのコンフィギュレーション可能なオプションを制御します。以下のオプションがあります。
パブリッシング対象のツーリングの属性を Windchill データベースに照会するときに使用する I*E タスクの名前を定義します。
プリファレンス名: ツーリング照会タスク
デフォルト値: com/ptc/windchill/esi/QueryObject.xml
パブリッシング対象のツーリングに作成されているリリースアクティビティオブジェクトのリリースクラス属性を定義します。
プリファレンス名: ツーリングリリースクラス
デフォルト値: com.ptc.windchill.esi.mpml.Tooling
ツーリングを表す Java クラスの完全修飾名を定義します。
プリファレンス名: ツーリングクラス
デフォルト値: com.ptc.windchill.mpml.resource.MPMTooling
ツーリングマスターを表す Java クラスの完全修飾名を定義します。
プリファレンス名: ツーリングマスタークラス
デフォルト値: com.ptc.windchill.mpml.resource.MPMToolingMaster
ツーリングのパブリッシングがトリガーされるライフサイクル状態の値を定義します。
プリファレンス名: ツーリングコンフィギュレーション仕様の状態
デフォルト値:RELEASED
パブリッシング対象の加工材料の属性を Windchill データベースに照会するときに使用する I*E タスクの名前を定義します。
プリファレンス名: 照会加工材料タスク
デフォルト値: com/ptc/windchill/esi/QueryObject.xml
パブリッシング対象の加工材料に作成されているリリースアクティビティオブジェクトのリリースクラス属性を定義します。
プリファレンス名: 加工材料リリースクラス
デフォルト値: com.ptc.windchill.esi.mpml.ProcessMaterial
加工材料を表す Java クラスの完全修飾名を定義します。
プリファレンス名: 加工材料クラス
デフォルト値: com.ptc.windchill.mpml.resource.MPMProcessMaterial
加工材料マスターを表す Java クラスの完全修飾名を定義します。
プリファレンス名: 加工品目マスタークラス
デフォルト値: com.ptc.windchill.mpml.resource.MPMProcessMaterialMaster
加工材料のパブリッシングがトリガーされるライフサイクル状態の値を定義します。
プリファレンス名: 加工材料コンフィギュレーション仕様状態
デフォルト値:RELEASED
パブリッシング対象の技能の属性を Windchill データベースに照会するときに使用する I*E タスクの名前を定義します。
プリファレンス名: 技能照会タスク
デフォルト値: com/ptc/windchill/esi/QueryObject.xml
技能のリリースクラスの名前を定義します。
プリファレンス名: 技能リリースクラス
デフォルト値: com.ptc.windchill.esi.mpml.Skill
技能を表す Java クラスの完全修飾名を定義します。
プリファレンス名: 技能クラス
デフォルト値: com.ptc.windchill.mpml.resource.MPMSkill
技能マスターを表す Java クラスの完全修飾名を定義します。
プリファレンス名: 技能マスタークラス
デフォルト値: com.ptc.windchill.mpml.resource.MPMSkillMaster
技能のパブリッシングがトリガーされるライフサイクル状態の値を定義します。
プリファレンス名: 技能コンフィギュレーション仕様状態
デフォルト値:RELEASED
リソース構造のパブリッシングの詳細については、Windchill ヘルプセンターの「配布ターゲット属性」のトピックにある、各オブジェクトに関する以下のセクションを参照してください。
変更通知に関する属性
BOM に関する属性
プロセス計画に関する属性
製造リソースに関する属性
これらの属性については、Windchill Enterprise Systems Integration Installation and Configuration Guide - Oracle の「その他のコンフィギュレーション可能属性」のセクションを参照してください。
ESI 応答でエンタープライズデータオブジェクトを別個のエレメントにレンダリングするための MPMResource レンダリングの設定
設定する手順は以下のとおりです。
1. EnterpriseData オブジェクトを別個にレンダリングするために ESI ResponseMetaInfo.xml を更新します。このファイルの修正方法については、このガイドのESI 応答メタ情報ファイルの修正のセクションを参照してください。
2. 既成のコードには 2 つのマップが追加されています。たとえば、EnterpriseData オブジェクトタイプ「共通エンタープライズデータ」および「ビュー特有のエンタープライズデータ」が ESICommonEnterpriseData および ESIPlantSpecificEnterpriseData として追加されています。ほかのオブジェクトと同様に、必要に応じてこれらのタイプのマップオブジェクトを作成できます。
<!-- ESI Common Enterprise Data Mapping -->
<esi:Map id="ESICommonEnterpriseDataEx1">
<esi:attributeMapping sourceAttribute="obid">ObjectID</esi:attributeMapping>
<esi:attributeMapping sourceAttribute="xxxx" defaultValue="com.ptc.windchill.esi.CommonEnterpriseData">Class</esi:a ttributeMapping>
<esi:attributeMapping sourceAttribute="versionInfo.identifier.versionId">Version</esi:attrib uteMapping>
<esi:attributeMapping sourceAttribute="iterationInfo.identifier.iterationId">Iteration</esi: attributeMapping>
<esi:attributeMapping sourceAttribute="PreviousVersion">PreviousVersion</esi:attributeMapping>
<esi:attributeMapping sourceAttribute="MaterialGroup">MaterialGroup</esi:attributeMapping>
</esi:Map>
<!-- ESI Plant Specific Enterprise Data Mapping -->
<esi:Map id="ESIPlantSpecificEnterpriseDataEx1">
<esi:attributeMapping sourceAttribute="obid">ObjectID</esi:attributeMapping>
<esi:attributeMapping sourceAttribute="xxxx" defaultValue="com.ptc.windchill.esi.PlantSpecificEnterpriseData">Class
</esi:attributeMapping>
<esi:attributeMapping sourceAttribute="view">View</esi:attributeMapping>
<esi:attributeMapping sourceAttribute="StorageLocation">StorageLocation</esi:attributeMapping>
</esi:Map>
3. MapInformation オブジェクトを修正して、CommonData や ViewSpecificData などの異なる elementMetaName を指定します。
<!-- ESI Enterprise Data Mapping Information -->
<esi:MapInformation id="ESICommonEnterpriseDataInfoEx01">
<esi:typedef>com.ptc.windchill.enterprise.data.EnterpriseData|com.ptc.windchi ll.enterprise.data.enterpriseData.CommonEnterpriseData</esi:typedef>
<esi:elementMetaName>CommonData</esi:elementMetaName>
<esi:keyAttribute>ObjectID</esi:keyAttribute>
<esi:keyAttribute>Version</esi:keyAttribute>
<esi:mapRef>ESICommonEnterpriseDataEx01</esi:mapRef>
</esi:MapInformation>
<!-- ESI Enterprise Data Mapping Information -->
<esi:MapInformation id="ESIPlantSpecificEnterpriseDataInfoEx01">
<esi:typedef>com.ptc.windchill.enterprise.data.EnterpriseData|com.ptc.windchi ll.enterprise.data.enterpriseData.PlantSpecificEnterpriseData</esi:typedef>
<esi:elementMetaName>ViewSpecificData</esi:elementMetaName>
<esi:keyAttribute>ObjectID</esi:keyAttribute>
<esi:keyAttribute>Version</esi:keyAttribute>
<esi:mapRef>ESIPlantSpecificEnterpriseDataEx01</esi:mapRef>
</esi:MapInformation>
4. 適切な MPMResource の MapInformation オブジェクトを修正して、isEnterpriseDataMergeWithElement タグを false に指定します。これは、ESI レンダラーによって EnterpriseData を別個のオブジェクトとしてレンダリングすることを示しています。この属性のデフォルト値は true であり、EnterpriseData オブジェクト属性が Resource エレメントにマージされます。
たとえば、ツーリングの場合、ToolingInfo は次のように更新できます。
<!-- ESI Tooling Mapping Information -->
<esi:MapInformation id="ToolingInfo">
<esi:typedef>com.ptc.windchill.mpml.resource.MPMTooling</esi:typedef>
<esi:elementMetaName>Tooling</esi:elementMetaName>
<esi:keyAttribute>ObjectID</esi:keyAttribute>
<esi:mapRef>Tooling</esi:mapRef>
<esi:isEnterpriseDataMergeWithElement>false</esi:isEnterpriseDataMergeWit hElement>
</esi:MapInformation>
* 
上記の例では、エンタープライズデータはツーリングリソースでのみ別個のエレメントとしてレンダリングされます。その他のリソースでは、エンタープライズデータは属性を適切なリソースエレメントにマージすることによってレンダリングされます。したがって、部品、リソースに関連付けられているエンタープライズデータを別個にレンダリングする必要がある場合、ESIResponseMetaInfo.xml 内の各 MapInformation オブジェクトを適宜更新する必要があります。
5. 必要に応じて「配布ターゲットを作成」/「配布ターゲットを編集」 UI を使用して、新規または既存のターゲットにこの新しく修正されたメタ情報ファイルを指定します。
6. エンタープライズデータオブジェクトが別個のオブジェクトとしてレンダリングされる場合、WTDocument/EPMDocument などの関連オブジェクトのリンクも、これらの新規エレメントのデータを参照するようにレンダリングされます。そうでない場合、デフォルトで、EnterpriseData のドキュメントリンクは、EnterpriseData が関連付けられている部品との関連付けの詳細を表すようにレンダリングされます。
これは役に立ちましたか?