部品 ID は、アイテム ID コンポーネントの定義済みコンフィギュレーションであり、部品または CAD ドキュメントに関する基本情報を含むパネルが表示されます。このパネルには、プライマリタイトルとセカンダリタイトル、イメージ、セカンダリアイコン、および ID 属性が表示されます。セカンダリアイコンは、そのアイテムタイプのアイコンを Windchill から使用して、アイテムタイプを示します。部品の場合、このパネルに表示されるデフォルトの属性は、「バージョン」、「ビュー」、「状態」、「最終修正日」、「コンテキスト」です。CAD ドキュメントの場合、このパネルに表示されるデフォルトの属性は、「ファイル名」、「バージョン」、「状態」、「最終修正日」、「コンテキスト」です。部品 ID のコンフィギュレーションには、「問題を報告」および「Windchill で表示」の操作も表示されます。
{
"primaryTitle":{
"selectedValues":{
"data":[
{
"itemListsData":[
{
"items":[
{
"numericIdentifier":1,
"id":"Number"
},
{
"numericIdentifier":2,
"id":"Name"
}
],
"objectType":"PTC.ProdMgmt.Part"
},
{
"items":[
{
"numericIdentifier":1,
"id":"Number"
},
{
"numericIdentifier":2,
"id":"Name"
}
],
"objectType":"PTC.CADDocumentMgmt.CADDocument"
}
],
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
}
}
]
},
"pattern":"%1, %2",
"filteredValues":{
"data":[
{
"itemListsData":[
{
"objectType":""
}
],
"adapter":{
"instanceName":"",
"thingName":""
}
}
]
}
},
"actionBarConfiguration":{
"value":{
}
},
"showSecondaryIcon":{
"version":"1.0.0",
"value":true
},
"secondaryTitle":{
"selectedValues":{
"data":[
{
"itemListsData":[
{
"items":[
{
"numericIdentifier":1,
"id":"ObjectType"
}
],
"objectType":"PTC.ProdMgmt.Part"
},
{
"items":[
{
"numericIdentifier":1,
"id":"TypeDisplayName"
}
],
"objectType":"PTC.CADDocumentMgmt.CADDocument"
}
],
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
}
}
]
},
"pattern":"%1",
"filteredValues":{
"data":[
{
"itemListsData":[
{
"objectType":""
}
],
"adapter":{
"instanceName":"",
"thingName":""
}
}
]
}
},
"attributes":{
"selectedValues":{
"data":[
{
"itemListsData":[
{
"items":[
{
"id":"Version",
"ordinal":0
},
{
"id":"View",
"ordinal":1
},
{
"id":"State#Display",
"ordinal":2
},
{
"id":"LastModified",
"ordinal":3
},
{
"id":"Context|Name",
"ordinal":4
}
],
"objectType":"PTC.ProdMgmt.Part"
},
{
"items":[
{
"id":"FileName",
"ordinal":0
},
{
"id":"Version",
"ordinal":1
},
{
"id":"State#Display",
"ordinal":2
},
{
"id":"LastModified",
"ordinal":3
},
{
"id":"Context|Name",
"ordinal":4
}
],
"objectType":"PTC.CADDocumentMgmt.CADDocument"
}
],
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
}
}
]
},
"inTailoring":true,
"filteredValues":{
"data":[
{
"itemListsData":[
{
"objectType":""
}
],
"adapter":{
"instanceName":"",
"thingName":""
}
}
]
}
},
"showImage":{
"additionalData":{
"itemIdentityShowImageDefinition":{
"defaultImagePath":{
"value":"/Thingworx/MediaEntities/PTC.Nav.ItemIdentity.ThumbnailPart"
}
}
},
"version":"1.0.0",
"value":true
},
"enableExpandCollapse":{
"version":"1.0.0",
"value":true
},
"baseConfigurationVersion": {
"value": "nav.1"
},
"implementationConfigurationVersion": {
"value": "nav.1"
}
}
コンフィギュレーションに加え、コンポーネントごとにビジネスロジックを拡張してコンポーネントをカスタマイズできます。各コンポーネントのビジネスロジックには、拡張およびオーバーライド可能な Thing Template 内のサービスが含まれています。次のテーブルは、このコンポーネントのオーバーライド可能なサービスの詳細を示しています。
各サービスの戻り値とパラメータの例については、
カスタマイズサービスの入力/出力の例を参照してください。
名前 | 説明 |
---|
GetConfigurations | 部品 ID の実装で使用可能なコンフィギュレーションを返します。 パラメータ: なし 戻り値: JSON |
GetImplementationLabel | コンポーネントのローカライズ名、またはローカライズ名を取得するために使用できるトークンを返します。このローカライズ名は Mashup Builder のユーザーインタフェースに表示されます。 パラメータ: なし 戻り値: String |
GetItemIdentityAttributes | コンフィギュレーションをチェックし、必要なその他の属性を追加してから、GetAttributeValues を呼び出して、バックエンドシステムからすべての属性値をフェッチします。 イメージまたはセカンダリアイコンが表示されるように設定されている場合、返される JSON にそれらが追加されるので、GetAttributeValues はバックエンドシステムからそれらの値もフェッチします。 パラメータ: input (必須) - バックエンドシステムからフェッチするデータの入力 ID およびバックエンドシステムのアダプタ情報を含む、 CCOフォーマットの JSON。 configuration (オプション) - 調整マネージャリソースから取得した最終マージコンフィギュレーションを含む JSON。 attributes (必須) - コンフィギュレーションで定義されているか、調整によって設定された、既成の属性のリストを含む JSON。 戻り値: JSON |
GetAttributesValues | 属性とその値を含む JSON を返します。 パラメータ: input (必須) - バックエンドシステムからフェッチするデータの入力 ID およびバックエンドシステムのアダプタ情報を含む、 CCOフォーマットの JSON。 configuration (オプション) - 調整マネージャリソースから取得した最終マージコンフィギュレーションを含む JSON。 attributes (必須) - 既成の属性と追加の属性のリストを含む JSON。 |
{
"array":[
{
"value":{
"initializationData":{
"constraints":{
},
"properties":{
"supportedTypes":{
"data":[
{
"adapter":{
"thingName":"PTC.WCAdapter",
"instanceName":"windchill"
},
"itemListsData":[
{
"objectType":"PTC.ProdMgmt.Part",
"selectionGroupIds":[
"PART"
]
},
{
"objectType":"PTC.CADDocumentMgmt.CADDocument",
"selectionGroupIds":[
"CAD"
]
}
]
}
],
"allowSubsetForTailoring":true
},
"updateServiceName":"",
"addServiceName":""
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.PatternSelector"
},
"mandatory":true,
"key":"primaryTitle"
},
{
"value":{
"initializationData":{
"constraints":{
},
"properties":{
"supportedTypes":{
"data":[
{
"adapter":{
"thingName":"PTC.WCAdapter",
"instanceName":"windchill"
},
"itemListsData":[
{
"objectType":"PTC.ProdMgmt.Part",
"selectionGroupIds":[
"PART"
]
},
{
"objectType":"PTC.CADDocumentMgmt.CADDocument",
"selectionGroupIds":[
"CAD"
]
}
]
}
],
"allowSubsetForTailoring":true
},
"updateServiceName":"",
"addServiceName":""
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.PatternSelector"
},
"mandatory":true,
"key":"secondaryTitle"
},
{
"value":{
"initializationData":{
"constraints":{
},
"properties":{
"supportedTypes":{
"data":[
{
"adapter":{
"thingName":"PTC.WCAdapter",
"instanceName":"windchill"
},
"itemListsData":[
{
"objectType":"PTC.ProdMgmt.Part",
"selectionGroupIds":[
"PART"
]
},
{
"objectType":"PTC.CADDocumentMgmt.CADDocument",
"selectionGroupIds":[
"CAD"
]
}
]
}
],
"allowSubsetForTailoring":true
},
"updateServiceName":"",
"addServiceName":"",
"maximumSelectedAttributes":5,
"minimumSelectedAttributes":null
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.AttributesSelector"
},
"mandatory":true,
"key":"attributes"
},
{
"property":{
},
"value":{
"initializationData":{
"constraints":{
},
"properties":{
"directDefinition":[
]
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.DefinitionGroup"
},
"mandatory":false,
"key":"actionBarConfiguration"
},
{
"value":{
"initializationData":{
"properties":{
},
"constraints":{
},
"additionalDefinition":[
{
"true":{
"label":"[[PTC.Nav.Yes]]",
"additionalDefinition":[
{
"key":"itemIdentityShowImageDefinitions",
"directDefinition":[
{
"property":{
},
"value":{
"initializationData":{
"constraints":{
},
"properties":{
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.Textbox"
},
"mandatory":false,
"key":"defaultImagePath"
}
]
}
]
},
"false":{
"label":"[[PTC.Nav.No]]",
"additionalDefinition":[
]
},
"default":false
}
]
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.Toggle"
},
"key":"showImage"
},
{
"property":{
},
"value":{
"initializationData":{
"version":"1.0.0",
"constraints":{
},
"properties":{
"default":false,
"true":{
"additionalDefinition":[
],
"label":"[[PTC.AccessApp.Yes]]"
},
"false":{
"additionalDefinition":[
],
"label":"[[PTC.AccessApp.No]]"
}
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.Toggle"
},
"mandatory":false,
"key":"showSecondaryIcon"
},
{
"property":{
},
"value":{
"initializationData":{
"version":"1.0.0",
"constraints":{
},
"properties":{
"default":true,
"true":{
"additionalDefinition":[
],
"label":"[[PTC.Nav.Yes]]"
},
"false":{
"additionalDefinition":[
],
"label":"[[PTC.Nav.No]]"
}
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.Toggle"
},
"mandatory":true,
"key":"enableExpandCollapse"
}
]
}