Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
The question pertains to determining what constitutes an event in Windchill PDMLink. We want to determine the value of having all server-side event-initiated publishing set to publish at high priority.
From http://support.ptc.com/WCMS/files/169117/en/WindchillVisualizationServicesGuide.pdf
Events that Trigger Publish Rules Evaluation
According to CS158347, publish jobs for events other than "create-representation", "checkin", and "schedule" will all have their source set to "0 - default/unknown/any source". This can be trapped and handled separately in your publish rules and also in your custom queue set filter.
Publish Rules Example
<publish on="create-representation" display-label="Manual Publish" />
<publish on="checkin" display-label="Check-in Publish" />
<publish on="schedule" display-label="Scheduled Publish" />
<!-- Publish when triggered by "Set State" or a Workflow Expression Robot. See CS158347 -->
<publish on="unknown-source" display-label="Workflow Publish" />
Publish Filter Example (code not tested - use at your own risk)
public class MyPublishHelper {
public static String[] filterQueueSet (Persistable object, java.lang.Integer rqstType, java.lang.Integer rqstSource, String rqstPriority, String rqstSet, String repName, String repDesc) {
String[] ret = {rqstPriority, rqstSet, repName, repDesc};
if (rqstSource == 0) {
ret[0] = "H";
}
else {
ret[0] = "L";
}
return ret;
}
}
See CS132318 for more information on how to create a custom queue set filter.
I just noticed this in the sample file from PTC (PublishJobUtil.java):
When publish.publishqueue.priorities.filtermethod is specified, one of the arguments it receives is the requestSource. There are situations when the System (i.e., Windchill) creates special publish jobs (identified via special jobSource values) and it would be best if a Site's filter were not allowed to override the default Windchill behavior. The following property identifies these special jobSource values. The value of the property is a comma separated list of integers where
0 - JOB_SOURCE_UNKNOWN
1 - JOB_SOURCE_MANUAL
2 - JOB_SOURCE_EVENT
3 - JOB_SOURCE_SCHEDULE
4 - JOB_SOURCE_MANUAL_POST
5 - JOB_SOURCE_SYSTEM
Thanks Tom. This is just the information we needed!