cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Is there an available list of all publishing events in Windchill?

mbrown-nasa
10-Marble

Is there an available list of all publishing events in Windchill?

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.

3 REPLIES 3
TomU
23-Emerald IV
(To:mbrown-nasa)

From http://support.ptc.com/WCMS/files/169117/en/WindchillVisualizationServicesGuide.pdf

Events that Trigger Publish Rules Evaluation

  • As described in Enabling Publish Rules on page 149, Publish Rules Evaluation is triggered by the following events:
  • Checkin of the EPMDocument.
  • Scheduled publishing of the EPMDocument.
  • User selection of the Create Representation action on the EPMDocument’s Representations List (or its associated WTPart’s Representations List).
  • A publish job resulting from any other event, such as from a manual republish, republish on change, or workflow initiated.

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.

TomU
23-Emerald IV
(To:mbrown-nasa)

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!

Announcements


Top Tags