"Generische Attribute" ist eine generische vordefinierte Konfiguration der Komponente "Attribute", die Sie als Ausgangspunkt für die Konfiguration der Komponente "Attribute" verwenden können. Da die generische Konfiguration keine Attribute festlegt, müssen Sie deren Konfiguration bearbeiten, um die Attribute hinzuzufügen.
Eine Liste aller verfügbaren Konfigurationseigenschaften für generische Attribute finden Sie in der Tabelle "Konfigurationseigenschaften" für die Komponente
Attribute. Die folgende Tabelle enthält zusätzliche Informationen, die für generische Attribute in Bezug auf die Konfigurationseigenschaften spezifisch sind.
Weitere Informationen zur Struktur der Konfiguration finden Sie unter
Konfigurationsstruktur von Komponenten.
Weitere Informationen zu Untereigenschaften finden Sie unter
Untereigenschaften und Container-Schlüssel.
Eigenschaftsname | Beschreibung | Eigenschaftstyp | Standardwert | Erforderlich oder optional |
|---|
attributes | Weitere Informationen finden Sie unter Attribute. Akzeptiert Attribute bestimmter Objekttypen, abhängig vom Objekttyp des Elements in den Eingabedaten. Details: • Die Eingabe mit dem Objekttyp PTC.Workflow.WorkItem oder PTC.ChangeMgmt.ChangeRequest akzeptiert Attribute des Objekttyps PTC.Workflow.WorkItem oder PTC.ChangeMgmt.ChangeRequest. Wenn z.B. das Element in den Eingabedaten den Objekttyp PTC.Workflow.WorkItem aufweist, kann diese Eigenschaft Attribute mit dem Objekttyp PTC.Workflow.WorkItem oder PTC.ChangeMgmt.ChangeRequest akzeptieren. • Die Eingabe mit dem Objekttyp PTC.ProdMgmt.Part akzeptiert Attribute mit dem Objekttyp PTC.ProdMgmt.Part. • Die Eingabe mit dem Objekttyp PTC.CADDocumentMgmt.CADDocument akzeptiert Attribute mit dem Objekttyp PTC.CADDocumentMgmt.CADDocument. | | -/- | Erforderlich |
• Beispielkonfiguration für ein horizontales Layout:
{
"layout": {
"selectedKey": "horizontal",
"additionalData": {
"isMultilineDefinition": {
"isMultiLine": {
"additionalData": {
"dimensionDefinition": {
"maxHeight": {
"version": "1.0.0",
"value": 200
}
}
},
"version": "1.0.0",
"value": true
}
}
},
"version": "1.0.0"
},
"attributes": {
"sets": [{
"data": {
"selectedValues": {
"data": [{
"itemListsData": [{
"items": [{
"id": "Description",
"ordinal": 0
}, {
"id": "ProposedSolution",
"ordinal": 1
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
},
"inTailoring": true,
"version": "1.0.0"
},
"name": ""
}
],
"inTailoring": true,
"filteredValues": {
"data": [{
"itemListsData": [{
"objectType": ""
}
],
"adapter": {
"instanceName": "",
"thingName": ""
}
}
]
},
"version": "1.0.0"
},
"messageWhenNoAttributes": {
"version": "1.0.0",
"value": "[[PTC.Nav.AttributesGeneric.NoAttributesMessage]]"
},
"baseConfigurationVersion": {
"value": "nav.2"
},
"implementationConfigurationVersion": {
"value": "nav.1"
},
"hideLabel": {
"value": false
}
}
• Beispielkonfiguration für ein vertikales Layout:
{
"layout": {
"selectedKey": "vertical",
"additionalData": {
"isMultilineDefinition": {
"isMultiLine": {
"additionalData": {
"dimensionDefinition": {
"maxHeight": {
"version": "1.0.0",
"value": 200
}
}
},
"version": "1.0.0",
"value": true
}
}
},
"version": "1.0.0"
},
"attributes": {
"sets": [{
"data": {
"selectedValues": {
"data": [{
"itemListsData": [{
"items": [{
"id": "Description",
"ordinal": 0
}, {
"id": "ProposedSolution",
"ordinal": 1
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
},
"inTailoring": true,
"version": "1.0.0"
},
"name": ""
}
],
"inTailoring": true,
"filteredValues": {
"data": [{
"itemListsData": [{
"objectType": ""
}
],
"adapter": {
"instanceName": "",
"thingName": ""
}
}
]
},
"version": "1.0.0"
},
"messageWhenNoAttributes": {
"version": "1.0.0",
"value": "[[PTC.Nav.AttributesGeneric.NoAttributesMessage]]"
},
"baseConfigurationVersion": {
"value": "nav.2"
},
"implementationConfigurationVersion": {
"value": "nav.1"
},
"hideLabel": {
"value": false
}
}
Zusätzlich zur Konfiguration unterstützt jede Komponente das Anpassen durch Erweitern ihrer Geschäftslogik. Die Geschäftslogik jeder Komponente umfasst überschreibbare Dienste in einer Dingvorlage, die Sie erweitern und überschreiben können. Die überschreibbaren Dienste für diese Komponente sind in der nachfolgenden Tabelle aufgeführt.
Beispiele für Rückgaben und Parameter für jeden Dienst finden Sie unter
Beispiele für Eingaben/Ausgaben für Anpassungsdienste.
Name | Beschreibung |
|---|
GetConfigurations | Gibt die verfügbaren Konfigurationen für die Implementierung von "Generische Attribute" zurück. Parameter: Keine Gibt zurück: JSON |
GetImplementationLabel | Gibt entweder den lokalisierten Namen der Komponente oder das Token zurück, die verwendet werden können, um den lokalisierten Namen abzurufen. Dieser lokalisierte Name wird in der Benutzeroberfläche von Mashup Builder angezeigt. Parameter: Keine Gibt zurück: Zeichenfolge |
GetAttributesValues | Gibt eine JSON mit Attributen und deren Werten zurück. Parameter: input (Erforderlich) – JSON im CCO-Format, das die Eingabe-ID für die aus dem Backend-System abzurufenden Daten sowie die Adapterinformationen für das Backend-System enthält configuration (Optional) – JSON mit der endgültigen zusammengeführten Konfiguration, die aus der Anpassungsmanager-Ressource abgerufen wurde attributes (Erforderlich) – JSON mit der Liste der standardmäßigen Attribute Gibt zurück: JSON im CCO-Format |
{
"array": [
{
"property": {},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {},
"properties": {
"additionalDefinition": [],
"updateServiceName": "",
"minimumSelectedAttributes": null,
"supportedTypes": {
"data": [
{
"itemListsData": [
{
"selectionGroupIds": [
"CR"
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
},
{
"selectionGroupIds": [
"WI"
],
"objectType": "PTC.Workflow.WorkItem"
},
{
"selectionGroupIds": [
"Part"
],
"objectType": "PTC.ProdMgmt.Part"
},
{
"selectionGroupIds": [
"CAD"
],
"objectType": "PTC.CADDocumentMgmt.CADDocument"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"allowSubsetForTailoring": true
},
"addServiceName": "",
"maximumSelectedAttributes": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.AttributesSetsSelector"
},
"mandatory": true,
"key": "attributes"
},
{
"property": {},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {},
"properties": {
"default": "vertical",
"options": [
{
"additionalDefinition": [
{
"directDefinition": [
{
"property": {},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {},
"properties": {
"default": true,
"true": {
"additionalDefinition": [
{
"directDefinition": [
{
"property": {},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {},
"properties": {
"minValue": null,
"default": null,
"maxValue": null,
"step": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Number"
},
"mandatory": false,
"key": "maxHeight"
}
],
"key": "dimensionDefinition"
}
],
"label": "[[PTC.Nav.Yes]]"
},
"false": {
"additionalDefinition": [
{
"directDefinition": [
{
"property": {},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {},
"properties": {
"minValue": null,
"default": null,
"maxValue": null,
"step": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Number"
},
"mandatory": false,
"key": "maxWidth"
}
],
"key": "dimensionDefinition"
}
],
"label": "[[PTC.Nav.No]]"
},
"label": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Toggle"
},
"mandatory": false,
"key": "isMultiLine"
}
],
"key": "isMultilineDefinition"
}
],
"description": "attribute name-value pairs are shown in the user interface vertically stacked one below the other",
"label": "[[PTC.Nav.Attributes.Layout.Vertical]]",
"key": "vertical"
},
{
"additionalDefinition": [
{
"directDefinition": [
{
"property": {},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {},
"properties": {
"minValue": null,
"default": null,
"maxValue": null,
"step": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Number"
},
"mandatory": false,
"key": "maxHeight"
},
{
"property": {},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {},
"properties": {
"minValue": null,
"default": null,
"maxValue": null,
"step": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Number"
},
"mandatory": false,
"key": "maxWidth"
}
],
"key": "dimensionDefinition"
}
],
"description": "attribute name-value pairs are shown in the user interface in column form, or horizontally stacked one next to the other",
"label": "[[PTC.Nav.Attributes.Layout.Horizontal]]",
"key": "horizontal"
}
],
"updateServiceName": null,
"addServiceName": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.RadioButton"
},
"mandatory": true,
"key": "layout"
},
{
"property": {},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {},
"properties": {}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Textbox"
},
"mandatory": false,
"key": "messageWhenNoAttributes"
},
{
"property": {},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {},
"properties": {
"default": false,
"true": {
"additionalDefinition": [],
"label": null
},
"false": {
"additionalDefinition": [],
"label": null
},
"label": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Toggle"
},
"mandatory": false,
"key": "hideLabel"
},
{
"property": {},
"value": {
"initializationData": {
"version": "1.0.0",
"constraints": {},
"properties": {}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Textbox"
},
"mandatory": false,
"key": "inputDisplay"
}
]
}