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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Disable Publishing based on State

kirkwemple
10-Marble

Disable Publishing based on State

Is it possible to prevent publishing of Windchill parts, documents, or CAD based on state (e.g. disallow any Windchill object from being published if it is moved to Discontinued state via ECN)?

 

--Kirk Wemple

3 REPLIES 3

You can use Publish rules to control these types of things.

https://support.ptc.com/help/windchill/plus/r12.0.2.0/en/index.html#page/Windchill_Help_Center%2FWVSPublishRulesUsePubRules.html%23

 

Set a rule to not publish for the state of "Discontinued" such as:

 

<not>
<attribute name="epmdoc_lifeCycleState" value="Discontinued" />
</not>

Thanks for info.

Additional question -- is there a method to have publishing of Discontinued objects assigned a priority of L?

The short answer is YES.

There’s a properly that points to a method that returns a boolean.

You can point the property to any method. The method MUST return a boolean.

So you need a simple method that gets the state of the object. If the state is “Discontinued” the method returns false and the object it not published. Otherwise return true.

Your condition of returning true or false based on the state is about as simple as anything gets.

Should be no problem to implement this in a few minutes.

Announcements


Top Tags