Sample Publish Rules
Here is an example of publish rules XML file created for a subtype of part. In a single file, you can add conditions for multiple subtypes using the authoring-application tag.
<?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>
도움이 되셨나요?