其他 Windchill 功能 > 服务信息管理 > 配置 Windchill Service Information Manager and Service Parts > 服务发布设置 > 束发布输出
  
束发布输出
束是一种用作 InService 的输入的输出类型。从 WVS 发送的文件称为有效载荷,其中包含 Arbortext Publishing Engine 要处理的内容和元数据。然后,系统将基于 XHTML 或 XML 以 InService 使用的格式生成束。
束要求在用户选择的发布规则中指定要在发布期间应用的输出类型和参数。有关详细信息,请参阅创建服务发布规则服务工作器参数
XML 束的发布规则指定为 output="xmlbundle"。XML 束发布过程将生成 XML 格式的内容。
* 
有关 Servigistics InService 如何使用捆绑的信息在其文档中提供。
束文件可以包含多个文件和一个内容清单。有关有效载荷内容的信息,请参阅有效载荷和内容清单
设置服务有效性数据格式
默认情况下,对于束版本 2.2 及更早版本,服务有效性数据会作为目标 Object 元素的多个属性,存储在位于 manifest.xml 的有效负载中。例如:
<Object uri=...">
...
<Metadata id="ServiceEffectivity_183695" source="...">
<Property token="thePersistInfo.updateStamp">
<Value>2016-06-121 18:12:44.0</Value>
</Property>
<Property token="beginDateRange">
<Value>2016-06-21 00:00:00.0</Value>
</Property>
<Property token="thePersistInfo.modifyStamp">
<Value>2016-06-21 18:12:44.0</Value>
</Property>
<Property token="effTarget">
<Value>EPMDocument_183639</Value>
</Property>
<Property token="effectivityType">
<Value>date</Value>
</Property>
<Property token="effContextReference">
<Value ref="x-wc://3f81b557fbc1da98:wt.part.WTPartMaster:0000000003"/>
</Property>
</Metadata>
...
</Object>
或者,您可以选择以 APEX 格式存储服务有效性数据。要执行此操作,请将 Windchill site.xconf 文件中的 useApexServiceEffectivity 属性设置为“true”,如下所示:
<Property name="com.ptc.arbortext.windchill.publisher.toggle.
useApexServiceEffectivity" overridable="true" default="true" />
useApexServiceEffectivity 属性设置为“true”会将有效性数据以 APEX 格式存储在目标 Object 元素的第一个 Metadata 元素中。例如:
<Object uri=...">
<Metadata id="EPMDocument_183639" source="...">
...
<Property token="ServiceEffectivity">
<Value>(AND (PRODUCT 'x-wc://3f81b557fbc1da98:wt.part.WTPartMaster:0000000003')
(DATE_RANGE '2015-12-01 00:00:00.0' ''))</Value>
</Property>
...
</Metadata>
...
</Object>
请注意,以下属性不会以 APEX 格式显示:
thePersistInfo.updateStamp
thePersistInfo.modifyStamp
effTarget
effTarget 属性的值与“APEX 服务”有效性数据所在的 Metadata 元素的 id 属性相同。thePersistInfo.updateStampthePersistInfo.modifyStamp 属性不会显示在有效负载中。
要以束版本 2.2 使用 APEX 格式有效性数据,必须将 useApexServiceEffectivity 设置为“true”。对于晚于 2.2 的束版本,APEX 格式有效性数据为默认值。对于那些版本,请将 useApexServiceEffectivity 设置为“false”以避免使用 APEX 格式的有效性数据。