解决方案
使用预设配置和自定义挂接来提取参考对象。
必备知识
要实现此目标,需要了解以下内容:
涉及 Java 的基本开发。
Windchill xconfmanager 和委派概念。
解决方案元素
ObjectReferenceAttributeSearchDelegate:用于定义自定义委派或默认委派的接口。 您可以扩展此接口或随后的 DefaultObjectReferenceAttributeSearchDelegate 类。
DefaultObjectReferenceAttributeSearchDelegateObjectReferenceAttributeSearchDelegate 的默认实现。
以下为预设配置的示例。配置的 xconf 文件 associativity.service.properties.xconf 位于 codebase\com\ptc\windchill\associativity\xconfs
<!-- ObjectReference attribute search delegate -->
<Service context="default" name="com.ptc.windchill.baseclient.server.delegate.ObjectReferenceAttributeSearchDelegate">
<Option cardinality="duplicate" requestor="null" serviceClass="com.ptc.windchill.baseclient.server.delegate.DefaultObjectReferenceAttributeSearchDelegate" selector="com.ptc.windchill.enterprise.data.EnterpriseData|com.ptc.windchill.enterprise.data.enterpriseData.PlantSpecificEnterpriseData|org.rnd.Pune~alternateobjref" />
</Service>
这对您有帮助吗?