<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automatic revision during promotion - no publish from the Released objects in Windchill</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830516#M68723</link>
    <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/452322"&gt;@N-Pyn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The autorevision is done here in the process&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_0-1665750603668.png" style="width: 633px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/67162iC966A3EDFF5117BE/image-dimensions/633x192?v=v2" width="633" height="192" role="button" title="HelesicPetr_0-1665750603668.png" alt="HelesicPetr_0-1665750603668.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 12:30:18 GMT</pubDate>
    <dc:creator>HelesicPetr</dc:creator>
    <dc:date>2022-10-14T12:30:18Z</dc:date>
    <item>
      <title>Automatic revision during promotion - no publish from the Released objects</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830418#M68717</link>
      <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use a lifecycle template where an object uses numeric revision scheme when it is in the Development state but when it is Promoted to be released to production, it's automatically revised and the revisioning scheme is changed to alphabetical series.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a pic from the PTC help describing a similar process:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AutoRevise.png" style="width: 703px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/67110iA6BAAC5876F8AFD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="AutoRevise.png" alt="AutoRevise.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Otherwise the lifecycle works fine, but for some reason when an object is released to production through promote and auto-revise, it is not sent to the publisher and we don't get any visualizations or representations of it. The user needs to manually send the objects to the publisher in order to get PDF's and STEP's which is not great.&lt;BR /&gt;&lt;BR /&gt;I found this article which tells some settings to enable publish on State Change:&lt;BR /&gt;&lt;A href="https://www.ptc.com/en/support/article/CS115536" target="_blank" rel="noopener"&gt;https://www.ptc.com/en/support/article/CS115536&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But we already have all those three wvs.properties set to &lt;STRONG&gt;true&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;A colleague told that the Auto-Revise doesn't register as a State Change and for that reason those settings won't help with this situation.&lt;BR /&gt;&lt;BR /&gt;Am I missing something or is this automatic revisioning feature just incomplete/broken?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 07:14:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830418#M68717</guid>
      <dc:creator>N-Pyn</dc:creator>
      <dc:date>2022-10-14T07:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic revision during promotion - no publish from the Released objects</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830501#M68719</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/452322"&gt;@N-Pyn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is normal OOTB behavior.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the autorevision is used you have to add a specific code to a workflow to send the object to publish queue.&lt;/P&gt;
&lt;P&gt;Following code can help to solve your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;try
{
	//H queue
	com.ptc.wvs.common.ui.PublisherAction pa = new com.ptc.wvs.common.ui.PublisherAction(com.ptc.wvs.common.ui.PublisherAction.QUEUEPRIORITY, "H");
	//all target object
	wt.fc.QueryResult promotables = wt.maturity.MaturityHelper.getService().getPromotionTargets((wt.maturity.PromotionNotice)primaryBusinessObject);
	while (promotables.hasMoreElements())
	{
		Object obj = (Object) promotables.nextElement();

		if (obj instanceof wt.epm.EPMDocument)
		{
			wt.epm.EPMDocument epmdoc = (wt.epm.EPMDocument) obj;

			//search latest version !!!!
			wt.vc.config.ConfigSpec configSpec =  wt.vc.config.ConfigHelper.service.getDefaultConfigSpecFor(wt.epm.EPMDocument.class);
			wt.fc.QueryResult qr =  wt.vc.config.ConfigHelper.service.filteredIterationsOf(epmdoc.getMaster(), configSpec);
			if (qr != null)
			{
				while (qr.hasMoreElements())
				{
					epmdoc = (wt.epm.EPMDocument)qr.nextElement();
				}
			}
			//get obj EPMDocument
			java.lang.String objRef;
			objRef = wt.fc.ObjectReference.newObjectReference(epmdoc).toString();
			//create publisher
			com.ptc.wvs.common.ui.Publisher pub = new com.ptc.wvs.common.ui.Publisher();
			//run publisher
			result = pub.doPublish(false, true, objRef, (wt.vc.config.ConfigSpec) null, (wt.vc.config.ConfigSpec) null, true, null, null, com.ptc.wvs.common.ui.Publisher.EPM, pa.toString(), 0);
		}//if
	}//while
} catch (wt.util.WTException e)
{
	e.printStackTrace();
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 12:11:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830501#M68719</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2022-10-14T12:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic revision during promotion - no publish from the Released objects</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830508#M68720</link>
      <description>&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's unfortunate that the publish process has not been taken into account when the auto-revise feature has been added. I think that it's a very crucial function of the PLM system to have up to date content on the objects at all times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What workflow should I add this custom publish operation to?&lt;BR /&gt;&lt;BR /&gt;I don't think adding this to the Promotion Approval Process workflow would work correctly because the automatic revisioning is happening &lt;STRONG&gt;after&lt;/STRONG&gt; the promotion promotion process has been completed. So if I add this code to the end of the promotion process, the publish operation will be done to the object in the promotion process but then the object will be revised automatically to the new revision schema and that new revision will not have a representation.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 12:23:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830508#M68720</guid>
      <dc:creator>N-Pyn</dc:creator>
      <dc:date>2022-10-14T12:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic revision during promotion - no publish from the Released objects</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830512#M68721</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/452322"&gt;@N-Pyn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes it is shame that autorevision does not care about visualization :D.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Autorevision is done in the Approval Promotion Workflow&lt;/P&gt;
&lt;P&gt;so if you add the code to the end of process then it will find latest revision and send it to publish queue with "H" priority&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trust me &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 12:27:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830512#M68721</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2022-10-14T12:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic revision during promotion - no publish from the Released objects</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830514#M68722</link>
      <description>&lt;P&gt;Okay, I'll have to test it then. I'll report how it went. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 12:29:50 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830514#M68722</guid>
      <dc:creator>N-Pyn</dc:creator>
      <dc:date>2022-10-14T12:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic revision during promotion - no publish from the Released objects</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830516#M68723</link>
      <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/452322"&gt;@N-Pyn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The autorevision is done here in the process&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HelesicPetr_0-1665750603668.png" style="width: 633px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/67162iC966A3EDFF5117BE/image-dimensions/633x192?v=v2" width="633" height="192" role="button" title="HelesicPetr_0-1665750603668.png" alt="HelesicPetr_0-1665750603668.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 12:30:18 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830516#M68723</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2022-10-14T12:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic revision during promotion - no publish from the Released objects</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830527#M68724</link>
      <description>&lt;P&gt;I just implemented this additional publish expression and tested it. Seems to be working great!&lt;BR /&gt;&lt;BR /&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 13:01:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830527#M68724</guid>
      <dc:creator>N-Pyn</dc:creator>
      <dc:date>2022-10-14T13:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic revision during promotion - no publish from the Released objects</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830639#M68732</link>
      <description>&lt;P&gt;Just to add a note - Revise creates a new Revision object, but doesn't create a new Primary file. Because of this, the system determines there is nothing new to publish.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In past companies, we always set the first Iteration to .0 (due to coming from Intralink 3 where this was true).&amp;nbsp; Given that, nothing could be released unless it was .1 or higher, forcing someone to check out / edit as needed / check in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not suggesting this as a practice, but providing one part of the explanation why no publish occurred by default.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 20:42:28 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/830639#M68732</guid>
      <dc:creator>MikeLockwood</dc:creator>
      <dc:date>2022-10-14T20:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic revision during promotion - no publish from the Released objects</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/844526#M69481</link>
      <description>&lt;P&gt;I tried implementing your code as shown on this thread but I am running in to a error that I can't diagnose. Where can I find and view the output from e.printStackTrace() in the catch exception or your code? I've enabled verbose workers and looked though all the logs I know to search (methodserver, monitor, helper, and worker) but can't find any mention of an error. The process manager show a health of Error: Stalled but doesn't indicate why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Windchill 12.0.2.7.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 19:25:43 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/844526#M69481</guid>
      <dc:creator>Ben_A</dc:creator>
      <dc:date>2022-12-15T19:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic revision during promotion - no publish from the Released objects</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/844875#M69511</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/562088"&gt;@Ben_A&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error is presented in the log file of the Methodserver.&lt;/P&gt;
&lt;P&gt;The workflow process is usually run under the BackroundMethodServer so you need to open the BackgroundMethodServer log file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are almost all errors from workflows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't configure backgroudMethodServer then standard Windchill log should contains all information what you need to diagnose the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS&amp;gt; &amp;lt;WT_HOME&amp;gt;/logs are the log files located.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 06:53:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Automatic-revision-during-promotion-no-publish-from-the-Released/m-p/844875#M69511</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2022-12-19T06:53:19Z</dc:date>
    </item>
  </channel>
</rss>

