输入 | ||
---|---|---|
属性名称 | 说明 | 属性类型 |
Input | 用于标识要从后端系统中获取的数据。 JSON 示例: { "version":"1.0.0", "data":[ { "adapter":{ "thingName":"PTC.WCAdapter", "instanceName":"windchill" }, "itemListsData":[ { "objectType":"PTC.ChangeMgmt.ChangeRequest", "items":[ { "id":{ "value":"OR:wt.change2.WTChangeRequest2:439476" } } ] } ] } ] } | CCO 格式的 JSON |
TailoringName | 用于唯一标识“属性”组件的实例。此值在内部使用,可供查找此特定实例的定制信息。 仅当自定义任务存在专用定制页面时,才使用此绑定属性。 | 字符串 |
SubComponentConfiguration | 当此组件用作另一组件内或内置混搭内的一个子组件时,会将配置绑定到此属性。 JSON 示例: { "implementationThingName":"PTC.Nav.AttributesGenericBusinessLogicThing", "configuration":{ "layout":{ "selectedKey":"horizontal", "additionalData":{ }, "version":"1.0.0" }, "attributes":{ "sets":[ { "data":{ "selectedValues":{ "data":[ { "itemListsData":[ { "items":[ { "id":"Role#Display", "ordinal":0 }, { "id":"Activity|Deadline", "ordinal":5 }, { "id":"Status#Display", "ordinal":4 } ], "objectType":"PTC.Workflow.WorkItem" }, { "items":[ { "id":"Category#Display", "ordinal":1 }, { "id":"RequestPriority#Display", "ordinal":3 } ], "objectType":"PTC.ChangeMgmt.ChangeRequest" } ], "adapter":{ "instanceName":"windchill", "thingName":"PTC.WCAdapter" } } ] } } } ] } } } | JSON |
属性名称 | 说明 | 属性类型 | 默认值 | 必需或可选 | |
---|---|---|---|---|---|
attributes | 需要从后端系统获取其数据的属性的列表。 对于 Windchill,这些属性名称必须与 Windchill REST Services EDM 定义的属性名称相同。 | 不适用 | 必需 | ||
isMultiLine | 确定内容是否应换行。选项:true、false。 此属性为 layout 的子属性,且仅当 layout 设置为 vertical 时,此属性才相关。其容器键为 isMultilineDefinition。 | 不适用 | 必需 | ||
layout | 用于确定属性在用户界面中的排列方式。可用选项包括: • vertical:属性纵向堆叠。 • horizontal:属性横向排列。 | 不适用 | 必需 | ||
maxHeight | 用户界面中属性的名称和值的最大高度。 如果内容超出 maxHeight 属性值,则系统会提供“显示更多/显示更少”链接或按钮。 此属性仅与以下两种情况有关: • 当 layout 设置为 horizontal 时。在这种情况下,此属性为 layout 的子属性。 • 当 layout 设置为 vertical,而 isMultiLine 设置为 true 时。在这种情况下,此属性为 isMultiLine 的子属性。 其容器键为 dimensionDefinition。 | 不适用 | 必需 | ||
maxWidth | 用户界面中属性的名称和值的最大宽度。 此属性仅与以下两种情况有关: • 当 layout 设置为 horizontal 时。在这种情况下,此属性为 layout 的子属性。 • 当 layout 设置为 vertical,而 isMultiLine 设置为 false 时。在这种情况下,此属性为 isMultiLine 的子属性。 其容器键为 dimensionDefinition。 | 不适用 | 必需 |
名称 | 说明 |
---|---|
GetConfigurations | 返回组件实施的可用配置。 参数:无 返回:JSON |
GetImplementationLabel | 返回此组件的本地化名称或可用于获取此本地化名称的标记。此本地化名称显示在 Mashup Builder 用户界面中。 参数:无 返回:字符串 |
ProcessAttributesConfiguration | 处理属性配置,并将属性拆分为预设属性和附加属性。 返回 JSON,其中包含下列形式的键值对: • OOTBAttributes : OOTB Attributes configuration CCO JSON • additionalAttributes : Additional Attributes configuration CCO JSON 系统会根据对象类型将属性拆分为预设属性和附加属性。对象类型以 .Custom.Adapter 或 Custom.Implementation 结尾的属性将被视为附加属性。而所有其他属性都将被视为预设属性。 参数: attributes (必需) - JSON,其中包含预设属性和附加属性的列表。 configuration (可选) - JSON,其中包含从“定制管理器”资源获得的最终合并配置。 返回:CCO 格式的 JSON |
GetAttributesValues | 返回具有属性及其值的 JSON。 参数: input (必需) - CCO 格式的 JSON,其中包含要从后端系统获取的数据的输入 ID,以及后端系统的适配器信息。 configuration (可选) - JSON,其中包含从“定制管理器”资源获得的最终合并配置。 attributes (必需) - JSON,其中包含预设属性和附加属性的列表。 返回:CCO 格式的 JSON |
GetAdditionalAttributesValues | 返回具有其他属性值的 JSON。此服务应通过组件实施来实现。 参数: input (必需) - CCO 格式的 JSON,其中包含要从后端系统获取的数据的输入 ID,以及后端系统的适配器信息。 configuration (可选) - JSON,其中包含从“定制管理器”资源获得的最终合并配置。 attributes (必需) - JSON,其中包含附加属性的列表。 返回:CCO 格式的 JSON |
GetAdditionalAttributes | 返回要添加至可用预设属性列表中的附加属性的列表。 参数:无 返回:JSON |
UpdateAvailableAttributes | 更新属性列表中的一个或多个属性,并返回最终列表。 参数: attributes (必需) - JSON,其中包含预设属性和附加属性的列表。 返回:JSON |