示例发布规则
下面是为部件子类型创建的发布规则 XML 文件的示例。在单个文件中,可以使用 authoring-application 标记为多个子类型添加条件。
<?xml version="1.0" encoding="UTF-8"?>
<rules xmlns="http://www.ptc.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.ptc.com PublishRulesSchema.xsd"
evaluate-rules-on-republish="true">
<authoring-application name="wt.part.WTPart|com.ptc.mpm.MPMManufacturingPart">
<if condition="is_valid_mfg_part">
<publish on="create-representation" generate-quickview-thumbnail="true"/>
<publish on="schedule" generate-quickview-thumbnail="true"/>
</if>
<condition name="is_valid_mfg_part">
<and>
<attribute name="part_lifeCycleName" value="Basic"/>
<attribute name="part_lifeCycleState" value="Released"/>
<attribute name="part_source" value="Buy"/>
<attribute name="part_phantom" value="false"/>
<attribute name="part_TRIGGERINGIBA" value="TRIGGERINGIBAVALUE"/>
<not>
<attribute name="part_partType" value="Component"/>
</not>
</and>
</condition>
</authoring-application>
</rules>